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:
229b28e
)
devices: remove dead code in pipe
71/34371/2
author
Damjan Marion
<damarion@cisco.com>
Fri, 5 Nov 2021 18:59:09 +0000
(19:59 +0100)
committer
Florin Coras
<florin.coras@gmail.com>
Fri, 5 Nov 2021 22:05:46 +0000
(22:05 +0000)
Type: refactor
Change-Id: If4a0484afebe53d53d79ab5cb72299e6298cfee7
Signed-off-by: Damjan Marion <damarion@cisco.com>
src/vnet/devices/pipe/pipe.c
patch
|
blob
|
history
diff --git
a/src/vnet/devices/pipe/pipe.c
b/src/vnet/devices/pipe/pipe.c
index
eb92b3c
..
56e54de
100644
(file)
--- a/
src/vnet/devices/pipe/pipe.c
+++ b/
src/vnet/devices/pipe/pipe.c
@@
-131,7
+131,7
@@
pipe_tx (vlib_main_t * vm, vlib_node_runtime_t * node, vlib_frame_t * frame)
{
u32 n_left_from, n_left_to_next, n_copy, *from, *to_next;
u32 next_index = VNET_PIPE_TX_NEXT_ETHERNET_INPUT;
- u32 i, sw_if_index = 0, n_pkts = 0
, n_bytes = 0
;
+ u32 i, sw_if_index = 0, n_pkts = 0;
vlib_buffer_t *b;
pipe_t *pipe;
@@
-160,7
+160,6
@@
pipe_tx (vlib_main_t * vm, vlib_node_runtime_t * node, vlib_frame_t * frame)
i++;
n_pkts++;
- n_bytes += vlib_buffer_length_in_chain (vm, b);
}
from += n_copy;