]> 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)
commitbab3ef398c2ec7c5c3125ff22506861246c30cb2
tree4b3235950784104c3a4b369d8a26a5c88bdbd3f2
parentb4d77b7575a7ffc7b787140c14899ce4d74e2561
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: 69ddf22 ("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