numam-dpdk/app/test-pmd
Matan Azrad 1f84c4695a app/testpmd: fix forward ports update
When the forward ports are changed either by new portlist\portmask
configurations or by a port detachment, all the old forward streams
are freed and new streams are allocated to be aligned with the new
forward ports.

If the number of the forward ports drops to 0, there is an attempt
to wrongly allocate 0 memory for the streams.

Skip the streams memory allocation if no forward ports are configured.

Fixes: ce8d561418 ("app/testpmd: add port configuration settings")
Cc: stable@dpdk.org

Signed-off-by: Matan Azrad <matan@mellanox.com>
2018-05-14 04:05:24 +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 forward ports update 2018-05-14 04:05:24 +02:00
testpmd.h app/testpmd: fix valid ports prints 2018-05-14 04:02:48 +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