aboutsummaryrefslogtreecommitdiffstats
path: root/net/openvswitch/datapath.h
diff options
context:
space:
mode:
authorNeil McKee <neil.mckee@inmon.com>2015-05-26 23:59:43 -0400
committerDavid S. Miller <davem@davemloft.net>2015-06-01 18:05:40 -0400
commitccea74457bbdafe33dce8bffcb5cb183aeb5f2bb (patch)
treeb8c195485a704d7360a59f6a42c02f820c2c4a46 /net/openvswitch/datapath.h
parentbdef7de4b8d9be4cf7bf5aea977f827310ab3ff0 (diff)
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>
Diffstat (limited to 'net/openvswitch/datapath.h')
-rw-r--r--net/openvswitch/datapath.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/openvswitch/datapath.h b/net/openvswitch/datapath.h
index 4ec4a480b147..cd691e935e08 100644
--- a/net/openvswitch/datapath.h
+++ b/net/openvswitch/datapath.h
@@ -116,6 +116,8 @@ struct ovs_skb_cb {
116struct dp_upcall_info { 116struct dp_upcall_info {
117 const struct ovs_tunnel_info *egress_tun_info; 117 const struct ovs_tunnel_info *egress_tun_info;
118 const struct nlattr *userdata; 118 const struct nlattr *userdata;
119 const struct nlattr *actions;
120 int actions_len;
119 u32 portid; 121 u32 portid;
120 u8 cmd; 122 u8 cmd;
121}; 123};