diff options
author | Wenyu Zhang <wenyuz@vmware.com> | 2014-11-06 17:51:24 +0300 |
---|---|---|
committer | Pravin B Shelar <pshelar@nicira.com> | 2014-11-10 05:58:44 +0300 |
commit | 8f0aad6f35f7e8b3118b7b8a65e8e76b135cc4cb (patch) | |
tree | 5f3dd8374c3c1584cb2b516f4191e70b82472f68 /net/openvswitch/flow_netlink.h | |
parent | 9ba559d9ca3711940be3e7207dac13c4f0654d43 (diff) | |
download | linux-8f0aad6f35f7e8b3118b7b8a65e8e76b135cc4cb.tar.xz |
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/flow_netlink.h')
-rw-r--r-- | net/openvswitch/flow_netlink.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/openvswitch/flow_netlink.h b/net/openvswitch/flow_netlink.h index eb0b177300ad..90bbe3785504 100644 --- a/net/openvswitch/flow_netlink.h +++ b/net/openvswitch/flow_netlink.h @@ -37,6 +37,7 @@ #include "flow.h" +size_t ovs_tun_key_attr_size(void); size_t ovs_key_attr_size(void); void ovs_match_init(struct sw_flow_match *match, @@ -49,6 +50,8 @@ int ovs_nla_get_flow_metadata(const struct nlattr *, struct sw_flow_key *); int ovs_nla_get_match(struct sw_flow_match *match, const struct nlattr *, const struct nlattr *); +int ovs_nla_put_egress_tunnel_key(struct sk_buff *, + const struct ovs_tunnel_info *); int ovs_nla_copy_actions(const struct nlattr *attr, const struct sw_flow_key *key, |