numam-dpdk/app/test-pmd
Wei Dai 36db4f6c70 app/testpmd: fix invalid Tx queue number setting
If an invalid number of TX queues is configured from testpmd run-time
command like "port config all txq number" or from --txq in the command
to start testpmd, the global variable nb_txq is updated by this invalid
value without this patch. It may cause testpmd crash. This patch refuses
invalid txq setting and keeps its last correct value.

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

Signed-off-by: Wei Dai <wei.dai@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Tested-by: Yuan Peng <yuan.peng@intel.com>
2018-01-17 18:49:38 +01:00
..
cmdline_flow.c app/testpmd: support GENEVE pattern item in flow rules 2018-01-16 18:47:49 +01:00
cmdline_mtr.c app/testpmd: add commands for metering and policing 2018-01-10 00:51:31 +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: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
cmdline_tm.h app: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
cmdline.c app/testpmd: fix invalid Tx queue number setting 2018-01-17 18:49:38 +01:00
config.c app/testpmd: add raw flow type mode for FDIR 2018-01-16 18:47:49 +01:00
csumonly.c app/testpmd: cleanup internal Tx offloads flags field 2018-01-15 10:53:23 +01:00
flowgen.c app/testpmd: cleanup internal Tx offloads flags field 2018-01-15 10:53:23 +01:00
icmpecho.c app/testpmd: fix typos 2017-03-10 14:11:56 +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: cleanup internal Tx offloads flags field 2018-01-15 10:53:23 +01:00
macswap.c app/testpmd: cleanup internal Tx offloads flags field 2018-01-15 10:53:23 +01:00
Makefile app/testpmd: support loopback config for DPAA 2018-01-16 18:47:49 +01:00
parameters.c app/testpmd: fix invalid Tx queue number setting 2018-01-17 18:49:38 +01:00
rxonly.c app: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
testpmd.c app/testpmd: fix invalid Tx queue number setting 2018-01-17 18:49:38 +01:00
testpmd.h app/testpmd: fix invalid Tx queue number setting 2018-01-17 18:49:38 +01:00
tm.c app: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
txonly.c app/testpmd: cleanup internal Tx offloads flags field 2018-01-15 10:53:23 +01:00