Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
4902dda
)
ip: remove dead code
69/34369/2
author
Damjan Marion
<damarion@cisco.com>
Fri, 5 Nov 2021 18:53:19 +0000
(19:53 +0100)
committer
Florin Coras
<florin.coras@gmail.com>
Fri, 5 Nov 2021 22:05:17 +0000
(22:05 +0000)
Type: refactor
Change-Id: Ia8e8834b635025d07e1028b1d5779b21c4e05e58
Signed-off-by: Damjan Marion <damarion@cisco.com>
src/vnet/ip/ip_path_mtu_node.c
patch
|
blob
|
history
diff --git
a/src/vnet/ip/ip_path_mtu_node.c
b/src/vnet/ip/ip_path_mtu_node.c
index
33be4bb
..
b3681b9
100644
(file)
--- 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