Re: [dpdk-dev] [PATCH v5 2/2] app/testpmd: fix invalid txq number setting

2018-01-12 Thread Peng, Yuan
Tested-by: Peng Yuan - Tested Branch: master - Tested commit 6c7001480ac6356ff0a4995f3ed495ed9c866061 - OS: 4.5.5-300.fc24.x86_64 - GCC: gcc version 5.3.1 20151207 (Red Hat 5.3.1-2) (GCC) - CPU: Intel(R) Xeon(R) CPU E5-2699 v4 @ 2.20GHz - NIC: Intel Corporation Device Fortville [8086:1572] - Defau

[dpdk-dev] [PATCH v5 2/2] app/testpmd: fix invalid txq number setting

2018-01-12 Thread Wei Dai
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 s