diff options
author | Shwetha <shwethab@cisco.com> | 2016-08-08 15:51:04 +0100 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2016-08-22 17:19:04 +0000 |
commit | a91cbe698281ff339273b1624fb3860ee9c4c2c7 (patch) | |
tree | bf899879467d0a2d640e2e92643ccc8981a619ec /vnet/vnet/ip/ip6.h | |
parent | aa88697b71878b0d28fd497e97300067aea735a1 (diff) |
Raw export of IP6 packet with iOAM metadata
- is enabled on iOAM pop nodes with "set ioam export ipfix collector"
- ioam_export_node Hooks into vlib graph b/n ip6-hop-by-hop node and ip6-pop-hop-by-hop node
- A buffer per worker thread is created for collecting packet data to be exported
- ioam_export_node exports first 3 cachelines by collecting it in a MTU sized frame, slaps on ipfix header for export
- ioam_export_thread process node - checks for unsent record buffers for longer than 20 seconds and exports it
- Added dual loop and prefetch in add, hop-by-hop and pop functions
To be done:
- IPfix template
- Multi collector distribution of ipfix packets
- Port to be configurable
Change-Id: I959b4253036551382562bdaf10a83fd6f2f1c88b
Signed-off-by: Shwetha <shwethab@cisco.com>
Diffstat (limited to 'vnet/vnet/ip/ip6.h')
-rw-r--r-- | vnet/vnet/ip/ip6.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vnet/vnet/ip/ip6.h b/vnet/vnet/ip/ip6.h index 0d5d8d04bf8..b43e2dac791 100644 --- a/vnet/vnet/ip/ip6.h +++ b/vnet/vnet/ip/ip6.h @@ -578,6 +578,7 @@ typedef struct { /* Array of function pointers to HBH option handling routines */ int (*options[256])(vlib_buffer_t *b, ip6_header_t *ip, ip6_hop_by_hop_option_t *opt); u8 *(*trace[256])(u8 *s, ip6_hop_by_hop_option_t *opt); + uword next_override; } ip6_hop_by_hop_main_t; extern ip6_hop_by_hop_main_t ip6_hop_by_hop_main; @@ -586,6 +587,7 @@ int ip6_hbh_register_option (u8 option, int options(vlib_buffer_t *b, ip6_header_t *ip, ip6_hop_by_hop_option_t *opt), u8 *trace(u8 *s, ip6_hop_by_hop_option_t *opt)); int ip6_hbh_unregister_option (u8 option); +void ip6_hbh_set_next_override (uword next); /* Flag used by IOAM code. Classifier sets it pop-hop-by-hop checks it */ #define OI_DECAP 100 |