pg: fix stream pg interface 64/40364/4
authorMaxime Peim <mpeim@cisco.com>
Mon, 19 Feb 2024 10:26:23 +0000 (11:26 +0100)
committerDave Barach <vpp@barachs.net>
Tue, 20 Feb 2024 17:20:43 +0000 (17:20 +0000)
commit7217dcdb54c8d66cec28ca71697b808099a7bd85
tree2f65ecbbc005d014940fd3dbf94ed39da308000a
parent088d1a0168cdf0e3ca651cf07012025ba6eab3fa
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>
src/vnet/pg/cli.c
src/vnet/pg/input.c
src/vnet/pg/pg.h
src/vnet/pg/stream.c