openvswitch: Fix serialization of non-masked set actions.
authorJoe Stringer <joestringer@nicira.com>
Tue, 3 Mar 2015 02:49:56 +0000 (18:49 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Mar 2015 19:38:57 +0000 (14:38 -0500)
commitf4f8e73850589008095b1da3c8c17cf68bd1c62a
tree4b3235950784104c3a4b369d8a26a5c88bdbd3f2
parent0ae93b2cccbcc060899800a6bac7905a7d754448
openvswitch: Fix serialization of non-masked set actions.

Set actions consist of a regular OVS_KEY_ATTR_* attribute nested inside
of a OVS_ACTION_ATTR_SET action attribute. When converting masked actions
back to regular set actions, the inner attribute length was not changed,
ie, double the length being serialized. This patch fixes the bug.

Fixes: 83d2b9b ("net: openvswitch: Support masked set actions.")
Signed-off-by: Joe Stringer <joestringer@nicira.com>
Acked-by: Jarno Rajahalme <jrajahalme@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/flow_netlink.c