]> git.baikalelectronics.ru Git - kernel.git/commit
openvswitch: Avoid NULL mask check while building mask
authorPravin B Shelar <pshelar@nicira.com>
Sun, 19 Oct 2014 19:03:40 +0000 (12:03 -0700)
committerPravin B Shelar <pshelar@nicira.com>
Thu, 6 Nov 2014 07:52:35 +0000 (23:52 -0800)
commit4ccab43e9679cddd2614b0b6e30c52a841d4529d
treeff8b3d0e0d3a7da142d371ade5a5bb9c065cd07b
parent82ba3c0e246dcd2dc766615976cb5002891f13cd
openvswitch: Avoid NULL mask check while building mask

OVS does mask validation even if it does not need to convert
netlink mask attributes to mask structure.  ovs_nla_get_match()
caller can pass NULL mask structure pointer if the caller does
not need mask.  Therefore NULL check is required in SW_FLOW_KEY*
macros.  Following patch does not convert mask netlink attributes
if mask pointer is NULL, so we do not need these checks in
SW_FLOW_KEY* macro.

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Acked-by: Daniele Di Proietto <ddiproietto@vmware.com>
Acked-by: Andy Zhou <azhou@nicira.com>
net/openvswitch/flow_netlink.c