Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
misc: fix issues reported by clang-15
[vpp.git]
/
src
/
vnet
/
devices
/
pipe
/
pipe.c
diff --git
a/src/vnet/devices/pipe/pipe.c
b/src/vnet/devices/pipe/pipe.c
index
26b0197
..
cd22c1a
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 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
;
+ u32 i, sw_if_index = 0;
vlib_buffer_t *b;
pipe_t *pipe;
vlib_buffer_t *b;
pipe_t *pipe;
@@
-159,7
+159,6
@@
pipe_tx (vlib_main_t * vm, vlib_node_runtime_t * node, vlib_frame_t * frame)
vnet_buffer (b)->sw_if_index[VLIB_TX] = ~0;
i++;
vnet_buffer (b)->sw_if_index[VLIB_TX] = ~0;
i++;
- n_pkts++;
}
from += n_copy;
}
from += n_copy;