]> git.baikalelectronics.ru Git - kernel.git/commit
openvswitch: Simplify labels length logic.
authorJarno Rajahalme <jarno@ovn.org>
Thu, 9 Feb 2017 19:21:56 +0000 (11:21 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Feb 2017 03:59:34 +0000 (22:59 -0500)
commit7f1e4571dda06735d95b3b80d10e643bd97428bb
tree356dfca674a530318e60bfc3c33f90ea07e0e528
parentc98432b3b29ddc8472a38878a74eff3c66ac8326
openvswitch: Simplify labels length logic.

Since 3ff27d317c78 ("netfilter: conntrack: support a fixed size of 128
distinct labels"), the size of conntrack labels extension has fixed to
128 bits, so we do not need to check for labels sizes shorter than 128
at run-time.  This patch simplifies labels length logic accordingly,
but allows the conntrack labels size to be increased in the future
without breaking the build.  In the event of conntrack labels
increasing in size OVS would still be able to deal with the 128 first
label bits.

Suggested-by: Joe Stringer <joe@ovn.org>
Signed-off-by: Jarno Rajahalme <jarno@ovn.org>
Acked-by: Pravin B Shelar <pshelar@ovn.org>
Acked-by: Joe Stringer <joe@ovn.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/conntrack.c