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 18:12:54 +0000 (10:12 -0800)
commitfa691fab1caa836f2cd158e4a40d62bdc015b47a
treed5e730cc486978b7e0d5a7ecb99c6de527d38e52
parent2ab69d5132b81cc6172181bef37a6db4ab04bd92
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