diff options
author | Jarno Rajahalme <jarno@ovn.org> | 2016-07-29 16:52:03 -0700 |
---|---|---|
committer | Jarno Rajahalme <jarno@ovn.org> | 2016-07-29 16:52:03 -0700 |
commit | 5cd4ead5c9fb0e0b60ec1bfd5063b25c20124830 (patch) | |
tree | a528addd8cb3526b2930c5e0fd7ef7346cec59ce /include/openvswitch/meta-flow.h | |
parent | c3ab15585dcb2d2558f409d2f7893f00c095e414 (diff) | |
download | openvswitch-5cd4ead5c9fb0e0b60ec1bfd5063b25c20124830.tar.gz |
meta-flow: Add mf_mask_field_masked().
Having a masked version allows generating better wildcarding.
Signed-off-by: Jarno Rajahalme <jarno@ovn.org>
Acked-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'include/openvswitch/meta-flow.h')
-rw-r--r-- | include/openvswitch/meta-flow.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/openvswitch/meta-flow.h b/include/openvswitch/meta-flow.h index 533a4e6ac..900cd6ad0 100644 --- a/include/openvswitch/meta-flow.h +++ b/include/openvswitch/meta-flow.h @@ -2090,7 +2090,9 @@ void mf_set_flow_value_masked(const struct mf_field *, struct flow *); bool mf_is_tun_metadata(const struct mf_field *); bool mf_is_set(const struct mf_field *, const struct flow *); -void mf_mask_field(const struct mf_field *, struct flow *); +void mf_mask_field(const struct mf_field *, struct flow_wildcards *); +void mf_mask_field_masked(const struct mf_field *, const union mf_value *mask, + struct flow_wildcards *); int mf_field_len(const struct mf_field *, const union mf_value *value, const union mf_value *mask, bool *is_masked); |