mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-11 07:39:47 +00:00
openvswitch: Reset key metadata for packet execution.
Userspace packet execute command pass down flow key for given packet. But userspace can skip some parameter with zero value. Therefore kernel needs to initialize key metadata to zero. Fixes: 0714812134 ("openvswitch: Eliminate memset() from flow_extract.") Signed-off-by: Pravin B Shelar <pshelar@nicira.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
673e2baaa6
commit
b35725a285
@ -717,6 +717,8 @@ int ovs_flow_key_extract_userspace(const struct nlattr *attr,
|
||||
{
|
||||
int err;
|
||||
|
||||
memset(key, 0, OVS_SW_FLOW_KEY_METADATA_SIZE);
|
||||
|
||||
/* Extract metadata from netlink attributes. */
|
||||
err = ovs_nla_get_flow_metadata(attr, key, log);
|
||||
if (err)
|
||||
|
Loading…
x
Reference in New Issue
Block a user