12/01/2018 12:31, Wei Dai: > If an invlaid number of RX or TX queues is configured from testpmd > command like "port config all rxq number" or "port config all txq > number" or from --rxq and --txq in the command to start testpmd. > The global variable nb_rxq or nb_txq is updated by the invalid > input. This can cause testpmd crash. For example, if the maximum > number of RX or TX queues is 4, testpmd will crash after running > commands "port config all rxq 5", "port config all txq 5" and > "start" in sequence. > With these 2 patches, if an invalid input is detected, it is refused > and testpmd keeps last correct values of nb_rxq and nb_txq. > > Fixes: ce8d561418d4 ("app/testpmd: add port configuration settings") > Cc: sta...@dpdk.org > > Signed-off-by: Wei Dai <wei....@intel.com> > Aced-by: Konstantin Ananyev <konstantin.anan...@intel.com> > Tested-by: Yuan Peng <yuan.p...@intel.com>
Applied, thanks