summaryrefslogtreecommitdiffstats
path: root/src/vnet/classify/vnet_classify.h
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2019-09-25 11:27:46 -0400
committerFlorin Coras <florin.coras@gmail.com>2019-09-26 19:39:06 +0000
commitf5667c3055dbd6755277f085c6778c2b1104aa6e (patch)
treef9057f2fa0eb880c230aac15ed9dbc0d4a3a6ad9 /src/vnet/classify/vnet_classify.h
parent2d0ebd7ebc555565868038a09d80a61f5de29430 (diff)
misc: add vnet classify filter set support
Type: feature Signed-off-by: Dave Barach <dave@barachs.net> Change-Id: I79b216d2499df143f53977e5b70382f6f887e0bc
Diffstat (limited to 'src/vnet/classify/vnet_classify.h')
-rw-r--r--src/vnet/classify/vnet_classify.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/vnet/classify/vnet_classify.h b/src/vnet/classify/vnet_classify.h
index 35a5db3d27b..c08cedf6b03 100644
--- a/src/vnet/classify/vnet_classify.h
+++ b/src/vnet/classify/vnet_classify.h
@@ -179,6 +179,12 @@ typedef struct
} vnet_classify_table_t;
+typedef struct
+{
+ int refcnt;
+ u32 *table_indices;
+} vnet_classify_filter_set_t;
+
struct _vnet_classify_main
{
/* Table pool */
@@ -191,6 +197,12 @@ struct _vnet_classify_main
unformat_function_t **unformat_policer_next_index_fns;
unformat_function_t **unformat_opaque_index_fns;
+ /* Pool of filter sets */
+ vnet_classify_filter_set_t *filter_sets;
+
+ /* Per-interface filter set map. [0] is used for pcap */
+ u32 *filter_set_by_sw_if_index;
+
/* convenience variables */
vlib_main_t *vlib_main;
vnet_main_t *vnet_main;