ip: remove dead code
Type: refactor Change-Id: Ia8e8834b635025d07e1028b1d5779b21c4e05e58 Signed-off-by: Damjan Marion <damarion@cisco.com>
This commit is contained in:

committed by
Florin Coras

parent
4902dda87c
commit
d4e90407d2
@@ -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
|
||||
|
Reference in New Issue
Block a user