datapath: Serialize acts with original netlink len
authorJoe Stringer <joestringer@nicira.com>
Thu, 3 Dec 2015 07:53:49 +0000 (23:53 -0800)
committerJoe Stringer <joe@ovn.org>
Fri, 4 Dec 2015 01:17:25 +0000 (17:17 -0800)
commitc3bb15b38a9532081ca104af4eee894af8e5b18c
tree7bd19268fdc0d7bf25de305850479297674c9712
parente281bb239815ae6797c7f28cf26a038f02485335
datapath: 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.

Upstream: 8e2fed1 "openvswitch: Serialize acts with original netlink len"
Signed-off-by: Joe Stringer <joestringer@nicira.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
datapath/datapath.c
datapath/flow.h
datapath/flow_netlink.c