]> git.baikalelectronics.ru Git - kernel.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)
commit7a44729df57945f987d431e526e72ec15eba9549
tree28065bc159acf883b1b225b7a37742a1793b5ae4
parenta45ea666d5e1ebda0901578c28c73b37c2495b8d
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