diff options
author | 2019-12-04 17:19:12 -0500 | |
---|---|---|
committer | 2020-02-12 09:42:05 -0500 | |
commit | 7c5a3536ce4c2fd4157c466367c495cefecaa52e (patch) | |
tree | fe6e70be8b1d2e0a594b0268d7a51962155b65a5 /src/vlib/main.h | |
parent | d28bac409409ea821cd9ce2ec4f84a7786cbcb73 (diff) |
classify: vpp packet tracer support
Configure n-tuple classifier filters which apply to the vpp packet
tracer.
Update the documentation to reflect the new feature.
Add a test vector.
Type: feature
Signed-off-by: Dave Barach <dave@barachs.net>
Change-Id: Iefa911716c670fc12e4825b937b62044433fec36
(cherry picked from commit 87d24db65facb89ca524c951b8379ca2ec4dbc7a)
Diffstat (limited to 'src/vlib/main.h')
-rw-r--r-- | src/vlib/main.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/vlib/main.h b/src/vlib/main.h index e230ddf8419..af6539efc75 100644 --- a/src/vlib/main.h +++ b/src/vlib/main.h @@ -73,6 +73,13 @@ typedef struct u32 filter_classify_table_index; } vnet_pcap_t; +typedef struct +{ + u8 trace_filter_enable; + u32 trace_classify_table_index; + u32 trace_filter_set_index; +} vlib_trace_filter_t; + typedef struct vlib_main_t { CLIB_CACHE_LINE_ALIGN_MARK (cacheline0); @@ -165,6 +172,9 @@ typedef struct vlib_main_t /* pcap rx / tx tracing */ vnet_pcap_t pcap; + /* Packet trace capture filter */ + vlib_trace_filter_t trace_filter; + /* Error handling. */ vlib_error_main_t error_main; |