meta-flow: Fix and simplify mf_get_mask().
authorBen Pfaff <blp@nicira.com>
Tue, 18 Dec 2012 17:45:02 +0000 (09:45 -0800)
committerBen Pfaff <blp@nicira.com>
Tue, 18 Dec 2012 17:45:02 +0000 (09:45 -0800)
commitfb15feb0e4d65f52d2b8846e3d2a6ddba8033df9
tree4791ae4e3312e590bf5f5481cffd41870aae98a7
parent48841e2dc38619a36911ba859bf0307431adb0f9
meta-flow: Fix and simplify mf_get_mask().

This function can be implemented as a trivial wrapper around
mf_get_value(), which I hadn't noticed before, so it's better to do it
that way.  Also, examining the code that is removed, it had some bugs in
it (for example, all MFF_TUN_* fields were treated as if they were
MFF_TUN_ID) which mf_get_value() does not have, so this fixes bugs too.

Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/meta-flow.c