diff options
author | Wenyu Zhang <wenyuz@vmware.com> | 2014-08-17 20:19:36 -0700 |
---|---|---|
committer | Pravin B Shelar <pshelar@nicira.com> | 2014-08-18 01:01:10 -0700 |
commit | 8b7ea2d4803381c249f5886aac80f8dbe51ba771 (patch) | |
tree | dc30224f9405a00d13f59c02b91bdd8453198277 /include/sparse | |
parent | 84067a4c1a5033ad43ed444d1cb7f40ebddbf2e3 (diff) | |
download | openvswitch-8b7ea2d4803381c249f5886aac80f8dbe51ba771.tar.gz |
Extend OVS IPFIX exporter to export tunnel headers
Extend IPFIX exporter to export tunnel headers when both input and output
of the port.
Add three other_config options in IPFIX table: enable-input-sampling,
enable-output-sampling and enable-tunnel-sampling, to control whether
sampling tunnel info, on which direction (input or output).
Insert sampling action before output action and the output tunnel port
is sent to datapath in the sampling action.
Make datapath collect output tunnel info and send it back to userpace
in upcall message with a new additional optional attribute.
Add a tunnel ports map to make the tunnel port lookup faster in sampling
upcalls in IPFIX exporter. Make the IPFIX exporter generate IPFIX template
sets with enterprise elements for the tunnel info, save the tunnel info
in IPFIX cache entries, and send IPFIX DATA with tunnel info.
Add flowDirection element in IPFIX templates.
Signed-off-by: Wenyu Zhang <wenyuz@vmware.com>
Acked-by: Romain Lenglet <rlenglet@vmware.com>
Acked-by: Ben Pfaff <blp@nicira.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
Diffstat (limited to 'include/sparse')
-rw-r--r-- | include/sparse/netinet/in.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sparse/netinet/in.h b/include/sparse/netinet/in.h index c63dca70d..83ad2cc58 100644 --- a/include/sparse/netinet/in.h +++ b/include/sparse/netinet/in.h @@ -66,6 +66,7 @@ struct sockaddr_in6 { #define IPPROTO_UDP 17 #define IPPROTO_ROUTING 43 #define IPPROTO_FRAGMENT 44 +#define IPPROTO_GRE 47 #define IPPROTO_AH 51 #define IPPROTO_ICMPV6 58 #define IPPROTO_NONE 59 |