summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2020-01-16 11:15:54 -0800
committerAndrew Yourtchenko <ayourtch@gmail.com>2020-08-12 15:59:46 +0000
commiteee684dd8bb3a5d2cf0e342c9859729146dc2b09 (patch)
treed90f73c58b26280f7d19144a765c372a1ddf713d /src
parent3311a17e40500263f9a77de8a91b0572fc68ea4c (diff)
classify: fix pcap filter set init
Type: fix Change-Id: I6a48a6c14bfb84b3460e8211021bc9df6e915dba Signed-off-by: Florin Coras <fcoras@cisco.com> (cherry picked from commit cd681adab40f49d1305144b6bbbd5118e63a2805)
Diffstat (limited to 'src')
-rwxr-xr-xsrc/vnet/classify/vnet_classify.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/vnet/classify/vnet_classify.c b/src/vnet/classify/vnet_classify.c
index f98429e070d..e8103a92b72 100755
--- a/src/vnet/classify/vnet_classify.c
+++ b/src/vnet/classify/vnet_classify.c
@@ -2948,13 +2948,11 @@ vnet_classify_init (vlib_main_t * vm)
vnet_classify_register_unformat_acl_next_index_fn (unformat_acl_next_node);
/* Filter set 0 is grounded... */
- pool_get (cm->filter_sets, set);
+ pool_get_zero (cm->filter_sets, set);
set->refcnt = 0x7FFFFFFF;
- vec_validate (set->table_indices, 0);
- set->table_indices[0] = ~0;
/* Initialize the pcap filter set */
vec_validate (cm->filter_set_by_sw_if_index, 0);
- cm->filter_set_by_sw_if_index[0] = ~0;
+ cm->filter_set_by_sw_if_index[0] = 0;
/* Initialize the packet tracer filter set */
vlib_global_main.trace_filter.trace_filter_set_index = ~0;