From d4e90407d2f7259d9b5234ba90b6f27793c911b3 Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Fri, 5 Nov 2021 19:53:19 +0100 Subject: [PATCH] ip: remove dead code Type: refactor Change-Id: Ia8e8834b635025d07e1028b1d5779b21c4e05e58 Signed-off-by: Damjan Marion --- src/vnet/ip/ip_path_mtu_node.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/vnet/ip/ip_path_mtu_node.c b/src/vnet/ip/ip_path_mtu_node.c index 33be4bbcae9..b3681b923c8 100644 --- a/src/vnet/ip/ip_path_mtu_node.c +++ b/src/vnet/ip/ip_path_mtu_node.c @@ -49,7 +49,6 @@ ip_pmtu_dpo_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, ip_address_family_t af) { u32 n_left_from, *from, next_index, *to_next, n_left_to_next; - u32 frag_sent = 0, small_packets = 0; from = vlib_frame_vector_args (frame); n_left_from = frame->n_vectors; @@ -114,8 +113,6 @@ ip_pmtu_dpo_inline (vlib_main_t *vm, vlib_node_runtime_t *node, if (error0 == IP_FRAG_ERROR_NONE) { /* Free original buffer chain */ - frag_sent += vec_len (buffer); - small_packets += (vec_len (buffer) == 1); vlib_buffer_free_one (vm, pi0); /* Free original packet */ } else -- 2.16.6