]> 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)
commitef51723998ff95fbc6a42deca28289fb34570533
tree28065bc159acf883b1b225b7a37742a1793b5ae4
parent0d071072d7efddbdac8d0c555032795d3d8326c3
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