]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1c1d044b88012c5da2dec0fd38e798106987b5d0
tree4b3235950784104c3a4b369d8a26a5c88bdbd3f2
parent30ef0479da207ff1f13f78b89b4c724d9b17daf0
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: 14d1000 ("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