summaryrefslogtreecommitdiffstats
path: root/vnet/vnet/ip/ip4_forward.c
diff options
context:
space:
mode:
Diffstat (limited to 'vnet/vnet/ip/ip4_forward.c')
-rw-r--r--vnet/vnet/ip/ip4_forward.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/vnet/vnet/ip/ip4_forward.c b/vnet/vnet/ip/ip4_forward.c
index 767cc8f8ce8..8b71d2dbe82 100644
--- a/vnet/vnet/ip/ip4_forward.c
+++ b/vnet/vnet/ip/ip4_forward.c
@@ -444,7 +444,6 @@ ip4_add_del_route_next_hop (ip4_main_t * im,
{
/* create / delete additional mapping of existing adjacency */
ip4_add_del_route_args_t a;
- ip_adjacency_t * nh_adj = ip_get_adjacency (lm, nh_adj_index);
a.table_index_or_table_id = fib_index;
a.flags = ((is_del ? IP4_ROUTE_FLAG_DEL : IP4_ROUTE_FLAG_ADD)
@@ -459,13 +458,6 @@ ip4_add_del_route_next_hop (ip4_main_t * im,
a.n_add_adj = 0;
ip4_add_del_route (im, &a);
-
- /* adjust share count. This cannot be the only use of the adjacency
- unless next hop is an indiect adj where share count is already
- incremented */
- if (next_hop_sw_if_index != ~0)
- nh_adj->share_count += is_del ? -1 : 1;
-
goto done;
}