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

2018-01-10 Thread Dai, Wei
i Dai > > Sent: Wednesday, January 10, 2018 12:14 PM > > To: Lu, Wenzhuo ; Wu, Jingjing > > ; Peng, Yuan ; Ananyev, > > Konstantin > > Cc: dev@dpdk.org; sta...@dpdk.org; Dai, Wei > > Subject: [dpdk-dev] [PATCH v2 2/2] app/testpmd: fix invalid txq number > &

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

2018-01-09 Thread Yang, Qiming
pdk.org] On Behalf Of Wei Dai > Sent: Wednesday, January 10, 2018 12:14 PM > To: Lu, Wenzhuo ; Wu, Jingjing > ; Peng, Yuan ; Ananyev, > Konstantin > Cc: dev@dpdk.org; sta...@dpdk.org; Dai, Wei > Subject: [dpdk-dev] [PATCH v2 2/2] app/testpmd: fix invalid txq number setting &

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

2018-01-09 Thread Wei Dai
If an invalid TX queue is configured from testpmd command like "port config all txq number", the global variable txq is updated by this invalid value. It may cause testpmd crash. This patch restores its last correct value when an invalid txq number configured is detected. Fixes: ce8d561418d4 ("app