numam-dpdk/app/test-pmd
Matan Azrad 03ce2c53a3 app/testpmd: fix synchronic port hotplug
When the user uses the synchronic hot-plug commands, attach\detach, in
order to insert\remove a port from the system, the forward ports list
update is missed in the current implementation.

Thus, an invalid port may be used for data-path in case of detach
because the detached port was not removed from the forward port list.

In addition, a new port is not used for data-path in case of attach, as the
default behavior of Testpmd, because the attached port was not inserted
to the forward port list.

Update the forward port list in the above cases to allow the correct
port usage for data-path in the next packet forwarding start.

Fixes: edab33b1c0 ("app/testpmd: support port hotplug")
Cc: stable@dpdk.org

Signed-off-by: Matan Azrad <matan@mellanox.com>
2018-05-14 04:10:42 +02:00
..
bpf_cmd.c app/testpmd: add commands to load/unload BPF filters 2018-05-12 00:37:51 +02:00
bpf_cmd.h app/testpmd: add commands to load/unload BPF filters 2018-05-12 00:37:51 +02:00
cmdline_flow.c ethdev: add shared counter to flow API 2018-04-27 18:00:57 +01:00
cmdline_mtr.c app/testpmd: fix allocation check in MTR parsing 2018-01-31 23:34:47 +01:00
cmdline_mtr.h app/testpmd: add commands for metering and policing 2018-01-10 00:51:31 +01:00
cmdline_tm.c app/testpmd: add command to resume a TM node 2018-05-04 16:40:42 +02:00
cmdline_tm.h app/testpmd: add command to resume a TM node 2018-05-04 16:40:42 +02:00
cmdline.c app/testpmd: add commands to load/unload BPF filters 2018-05-12 00:37:51 +02:00
config.c app/testpmd: fix valid ports prints 2018-05-14 04:02:48 +02:00
csumonly.c app/testpmd: conserve offload flags of mbuf 2018-04-27 20:11:33 +02:00
flowgen.c app/testpmd: cleanup internal Tx offloads flags field 2018-01-15 10:53:23 +01:00
icmpecho.c app/testpmd: use SPDX tags in 6WIND copyrighted files 2018-02-01 02:33:20 +01:00
ieee1588fwd.c app: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
iofwd.c app: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
macfwd.c app/testpmd: conserve offload flags of mbuf 2018-04-27 20:11:33 +02:00
macswap.c app/testpmd: conserve offload flags of mbuf 2018-04-27 20:11:33 +02:00
Makefile app/testpmd: add commands to load/unload BPF filters 2018-05-12 00:37:51 +02:00
meson.build app/testpmd: add commands to load/unload BPF filters 2018-05-12 00:37:51 +02:00
parameters.c app/testpmd: fix valid ports prints 2018-05-14 04:02:48 +02:00
rxonly.c app: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
testpmd.c app/testpmd: fix synchronic port hotplug 2018-05-14 04:10:42 +02:00
testpmd.h app/testpmd: fix synchronic port hotplug 2018-05-14 04:10:42 +02:00
tm.c app/testpmd: fix allocation check in TM config 2018-01-31 23:34:47 +01:00
txonly.c app/testpmd: cleanup internal Tx offloads flags field 2018-01-15 10:53:23 +01:00