diff options
author | Neil McKee <neil.mckee@inmon.com> | 2015-05-26 20:59:43 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-06-01 15:05:40 -0700 |
commit | ccea74457bbdafe33dce8bffcb5cb183aeb5f2bb (patch) | |
tree | b8c195485a704d7360a59f6a42c02f820c2c4a46 /net/openvswitch/datapath.h | |
parent | bdef7de4b8d9be4cf7bf5aea977f827310ab3ff0 (diff) | |
download | linux-ccea74457bbdafe33dce8bffcb5cb183aeb5f2bb.tar.bz2 |
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.h | 2 |
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 { struct dp_upcall_info { const struct ovs_tunnel_info *egress_tun_info; const struct nlattr *userdata; + const struct nlattr *actions; + int actions_len; u32 portid; u8 cmd; }; |