mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
bdef7de4b8
commit
ccea74457b
4 changed files with 37 additions and 10 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue