]> 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)
commit9b2dac1acbcef58072f71e7d413de8a42e91b657
tree356dfca674a530318e60bfc3c33f90ea07e0e528
parent170b2d9cedce03ccafacab69f2211006dbffc40d
openvswitch: Simplify labels length logic.

Since e784fb8a0561 ("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