]> git.proxmox.com Git - mirror_ovs.git/commit - lib/bundle.h
lib: Check match and action prerequisities with 'match'.
authorJarno Rajahalme <jarno@ovn.org>
Thu, 9 Mar 2017 01:18:22 +0000 (17:18 -0800)
committerJarno Rajahalme <jarno@ovn.org>
Thu, 9 Mar 2017 01:22:27 +0000 (17:22 -0800)
commit67210a5510703df8311ce5e836c3c7ac92505cae
tree93bf36f989b979a85ba47a7d3b9db931898df9d1
parentfcbf7e1ed3ef7d3f144fbd3c1ae3064939e8dfb5
lib: Check match and action prerequisities with 'match'.

Supply the match mask to prerequisities checking when available.  This
allows checking for zero-valued matches.  Non-zero valued matches
imply the presense of corresponding mask bits, but for zero valued
matches we must explicitly check the mask, too.

This is required now only for conntrack validity checking due to the
conntrack state having and 'invalid' bit, but not 'valid' bit.  One
way to match an valid conntrack state is to match on the 'tracked' bit
being one and 'invalid' bit being zero.  The latter requires the
corresponding mask bit be verified.

Signed-off-by: Jarno Rajahalme <jarno@ovn.org>
Acked-by: Joe Stringer <joe@ovn.org>
17 files changed:
include/openvswitch/meta-flow.h
include/openvswitch/ofp-actions.h
lib/bundle.c
lib/bundle.h
lib/learn.c
lib/learn.h
lib/meta-flow.c
lib/multipath.c
lib/multipath.h
lib/nx-match.c
lib/nx-match.h
lib/ofp-actions.c
lib/ofp-parse.c
lib/ofp-util.c
ofproto/ofproto-dpif-trace.c
ofproto/ofproto.c
utilities/ovs-ofctl.c