diff options
author | Maxime Peim <mpeim@cisco.com> | 2024-02-19 11:26:23 +0100 |
---|---|---|
committer | Dave Barach <vpp@barachs.net> | 2024-02-20 17:20:43 +0000 |
commit | 7217dcdb54c8d66cec28ca71697b808099a7bd85 (patch) | |
tree | 2f65ecbbc005d014940fd3dbf94ed39da308000a /src/vnet/pg/cli.c | |
parent | 088d1a0168cdf0e3ca651cf07012025ba6eab3fa (diff) |
pg: fix stream pg interface
When an other interface is specified to generate packets from, we should
bind its sw_if_index to the pg interface to use.
Fix if_index_by_sw_if_index variable name, and force to specify a pg
interface to source traffic from.
Type: fix
Change-Id: Ib3e6dca92774b307def82926fc09945b7998267d
Signed-off-by: Maxime Peim <mpeim@cisco.com>
Diffstat (limited to 'src/vnet/pg/cli.c')
-rw-r--r-- | src/vnet/pg/cli.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/pg/cli.c b/src/vnet/pg/cli.c index ac225094391..f289becebd2 100644 --- a/src/vnet/pg/cli.c +++ b/src/vnet/pg/cli.c @@ -685,7 +685,7 @@ create_pg_if_cmd_fn (vlib_main_t * vm, { pg_main_t *pg = &pg_main; unformat_input_t _line_input, *line_input = &_line_input; - u32 if_id, gso_enabled = 0, gso_size = 0, coalesce_enabled = 0; + u32 if_id = ~0, gso_enabled = 0, gso_size = 0, coalesce_enabled = 0; clib_error_t *error = NULL; pg_interface_mode_t mode = PG_MODE_ETHERNET; |