summaryrefslogtreecommitdiffstats
path: root/src/vnet/cop
diff options
context:
space:
mode:
authorSimon Zhang <yuwei1.zhang@intel.com>2019-08-25 15:30:45 +0800
committerDamjan Marion <dmarion@me.com>2019-09-27 16:54:02 +0000
commit6cf2fde9bb1dda74f8dcc2d96a17d6875cc1c9db (patch)
tree7008e62d49e29b319e8c561348ecb437f2a67140 /src/vnet/cop
parent7f85aecb5c481fda75e4c87a7d80a1fd47f07046 (diff)
ip: remove unused function parameter
Type: refactor Signed-off-by: Simon Zhang <yuwei1.zhang@intel.com> Change-Id: I8674ff5f6f6336b256b7df8187afbb36ddef71fb (cherry picked from commit e7eba48937c52478d3844745ebb63a4b9ce8d681)
Diffstat (limited to 'src/vnet/cop')
-rw-r--r--src/vnet/cop/ip6_whitelist.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/vnet/cop/ip6_whitelist.c b/src/vnet/cop/ip6_whitelist.c
index 7cf2368e798..3342ed64056 100644
--- a/src/vnet/cop/ip6_whitelist.c
+++ b/src/vnet/cop/ip6_whitelist.c
@@ -56,7 +56,6 @@ VLIB_NODE_FN (ip6_cop_whitelist_node) (vlib_main_t * vm,
u32 n_left_from, * from, * to_next;
cop_feature_type_t next_index;
cop_main_t *cm = &cop_main;
- ip6_main_t * im6 = &ip6_main;
vlib_combined_counter_main_t * vcm = &load_balance_main.lbm_via_counters;
u32 thread_index = vm->thread_index;
@@ -119,7 +118,7 @@ VLIB_NODE_FN (ip6_cop_whitelist_node) (vlib_main_t * vm,
&next0,
sizeof (c0[0]));
- lb_index0 = ip6_fib_table_fwding_lookup (im6, c0->fib_index,
+ lb_index0 = ip6_fib_table_fwding_lookup (c0->fib_index,
&ip0->src_address);
lb0 = load_balance_get (lb_index0);
dpo0 = load_balance_get_bucket_i(lb0, 0);
@@ -143,7 +142,7 @@ VLIB_NODE_FN (ip6_cop_whitelist_node) (vlib_main_t * vm,
&next1,
sizeof (c1[0]));
- lb_index1 = ip6_fib_table_fwding_lookup (im6, c1->fib_index,
+ lb_index1 = ip6_fib_table_fwding_lookup (c1->fib_index,
&ip1->src_address);
lb1 = load_balance_get (lb_index1);
@@ -223,7 +222,7 @@ VLIB_NODE_FN (ip6_cop_whitelist_node) (vlib_main_t * vm,
&next0,
sizeof (c0[0]));
- lb_index0 = ip6_fib_table_fwding_lookup (im6, c0->fib_index,
+ lb_index0 = ip6_fib_table_fwding_lookup (c0->fib_index,
&ip0->src_address);
lb0 = load_balance_get (lb_index0);