openvswitch: include datapath actions with sampled-packet upcall to userspace
authorNeil McKee <neil.mckee@inmon.com>
Wed, 27 May 2015 03:59:43 +0000 (20:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 Jun 2015 22:05:40 +0000 (15:05 -0700)
commitccea74457bbdafe33dce8bffcb5cb183aeb5f2bb
treeb8c195485a704d7360a59f6a42c02f820c2c4a46
parentbdef7de4b8d9be4cf7bf5aea977f827310ab3ff0
openvswitch: include datapath actions with sampled-packet upcall to userspace

If new optional attribute OVS_USERSPACE_ATTR_ACTIONS is added to an
OVS_ACTION_ATTR_USERSPACE action, then include the datapath actions
in the upcall.

This Directly associates the sampled packet with the path it takes
through the virtual switch. Path information currently includes mangling,
encapsulation and decapsulation actions for tunneling protocols GRE,
VXLAN, Geneve, MPLS and QinQ, but this extension requires no further
changes to accommodate datapath actions that may be added in the
future.

Adding path information enhances visibility into complex virtual
networks.

Signed-off-by: Neil McKee <neil.mckee@inmon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/openvswitch.h
net/openvswitch/actions.c
net/openvswitch/datapath.c
net/openvswitch/datapath.h