aboutsummaryrefslogtreecommitdiffstats
path: root/net/openvswitch/datapath.h
diff options
context:
space:
mode:
authorWenyu Zhang <wenyuz@vmware.com>2014-11-06 09:51:24 -0500
committerPravin B Shelar <pshelar@nicira.com>2014-11-09 21:58:44 -0500
commit8f0aad6f35f7e8b3118b7b8a65e8e76b135cc4cb (patch)
tree5f3dd8374c3c1584cb2b516f4191e70b82472f68 /net/openvswitch/datapath.h
parent9ba559d9ca3711940be3e7207dac13c4f0654d43 (diff)
openvswitch: Extend packet attribute for egress tunnel info
OVS vswitch has extended IPFIX exporter to export tunnel headers to improve network visibility. To export this information userspace needs to know egress tunnel for given packet. By extending packet attributes datapath can export egress tunnel info for given packet. So that userspace can ask for egress tunnel info in userspace action. This information is used to build IPFIX data for given flow. Signed-off-by: Wenyu Zhang <wenyuz@vmware.com> Acked-by: Romain Lenglet <rlenglet@vmware.com> Acked-by: Ben Pfaff <blp@nicira.com> Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
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 1c56a80d6677..2bc577bf9b31 100644
--- a/net/openvswitch/datapath.h
+++ b/net/openvswitch/datapath.h
@@ -114,12 +114,14 @@ struct ovs_skb_cb {
114 * @pid: Netlink PID to which packet should be sent. If @pid is 0 then no 114 * @pid: Netlink PID to which packet should be sent. If @pid is 0 then no
115 * packet is sent and the packet is accounted in the datapath's @n_lost 115 * packet is sent and the packet is accounted in the datapath's @n_lost
116 * counter. 116 * counter.
117 * @egress_tun_info: If nonnull, becomes %OVS_PACKET_ATTR_EGRESS_TUN_KEY.
117 */ 118 */
118struct dp_upcall_info { 119struct dp_upcall_info {
119 u8 cmd; 120 u8 cmd;
120 const struct sw_flow_key *key; 121 const struct sw_flow_key *key;
121 const struct nlattr *userdata; 122 const struct nlattr *userdata;
122 u32 portid; 123 u32 portid;
124 const struct ovs_tunnel_info *egress_tun_info;
123}; 125};
124 126
125/** 127/**