Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
policer: add api to bind policer to worker
[vpp.git]
/
src
/
vnet
/
pg
/
input.c
diff --git
a/src/vnet/pg/input.c
b/src/vnet/pg/input.c
index
d5cf929
..
940bf12
100644
(file)
--- a/
src/vnet/pg/input.c
+++ b/
src/vnet/pg/input.c
@@
-1808,10
+1808,10
@@
pg_input (vlib_main_t * vm, vlib_node_runtime_t * node, vlib_frame_t * frame)
worker_index = vlib_get_current_worker_index ();
/* *INDENT-OFF* */
worker_index = vlib_get_current_worker_index ();
/* *INDENT-OFF* */
- clib_bitmap_foreach (i, pg->enabled_streams[worker_index]
, (
{
+ clib_bitmap_foreach (i, pg->enabled_streams[worker_index]
)
{
pg_stream_t *s = vec_elt_at_index (pg->streams, i);
n_packets += pg_input_stream (node, pg, s);
pg_stream_t *s = vec_elt_at_index (pg->streams, i);
n_packets += pg_input_stream (node, pg, s);
- }
));
+ }
/* *INDENT-ON* */
return n_packets;
/* *INDENT-ON* */
return n_packets;
@@
-1911,7
+1911,7
@@
pg_input_mac_filter_cfg (vlib_main_t * vm,
{
unformat_input_t _line_input, *line_input = &_line_input;
u32 sw_if_index = ~0;
{
unformat_input_t _line_input, *line_input = &_line_input;
u32 sw_if_index = ~0;
- int is_enable;
+ int is_enable
= 1
;
if (!unformat_user (input, unformat_line_input, line_input))
return 0;
if (!unformat_user (input, unformat_line_input, line_input))
return 0;