summaryrefslogtreecommitdiffstats
path: root/src/vnet/classify/vnet_classify.h
diff options
context:
space:
mode:
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;