datapath: Avoid NULL mask check while building mask
authorPravin B Shelar <pshelar@nicira.com>
Fri, 8 Aug 2014 04:26:35 +0000 (21:26 -0700)
committerPravin B Shelar <pshelar@nicira.com>
Fri, 8 Aug 2014 22:52:55 +0000 (15:52 -0700)
commitf3ccd17db38d7f574fa26c1615c96b6b207c19df
tree4553fe896d028f74e343856602b1263fe0a4efc5
parente16138e224014922e478b4789359b1746858d1f9
datapath: 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>
datapath/flow_netlink.c