]> git.karo-electronics.de Git - karo-tx-linux.git/commit
openvswitch: Serialize acts with original netlink len
authorJoe Stringer <joestringer@nicira.com>
Wed, 26 Aug 2015 18:31:44 +0000 (11:31 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Aug 2015 18:40:42 +0000 (11:40 -0700)
commit8e2fed1c0cfbb29995a4301060acc0ef4ee84420
tree28065bc159acf883b1b225b7a37742a1793b5ae4
parent538e4563198cd3d1a8e74c47fee3e49dc93e4a95
openvswitch: Serialize acts with original netlink len

Previously, we used the kernel-internal netlink actions length to
calculate the size of messages to serialize back to userspace.
However,the sw_flow_actions may not be formatted exactly the same as the
actions on the wire, so store the original actions length when
de-serializing and re-use the original length when serializing.

Signed-off-by: Joe Stringer <joestringer@nicira.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
Acked-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/datapath.c
net/openvswitch/flow.h
net/openvswitch/flow_netlink.c