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

2018-01-09 Thread Dai, Wei
> -Original Message- > From: Ananyev, Konstantin > Sent: Wednesday, January 10, 2018 9:55 AM > To: Dai, Wei ; Lu, Wenzhuo ; > Wu, Jingjing ; Peng, Yuan > Cc: dev@dpdk.org; sta...@dpdk.org > Subject: RE: [dpdk-dev] [PATCH 1/2] app/testpmd: fix invalid

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

2018-01-09 Thread Ananyev, Konstantin
> -Original Message- > From: Dai, Wei > Sent: Wednesday, January 10, 2018 1:34 AM > To: Ananyev, Konstantin ; Lu, Wenzhuo > ; Wu, Jingjing ; > Peng, Yuan > Cc: dev@dpdk.org; sta...@dpdk.org > Subject: RE: [dpdk-dev] [PATCH 1/2] app/testpmd: fix inval

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

2018-01-09 Thread Dai, Wei
> -Original Message- > From: Ananyev, Konstantin > Sent: Tuesday, January 9, 2018 4:06 AM > To: Dai, Wei ; Lu, Wenzhuo ; > Wu, Jingjing ; Peng, Yuan > Cc: dev@dpdk.org; sta...@dpdk.org; Dai, Wei > Subject: RE: [dpdk-dev] [PATCH 1/2] app/testpmd: fix invalid

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

2018-01-08 Thread Ananyev, Konstantin
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Wei Dai > Sent: Monday, January 8, 2018 1:03 PM > To: Lu, Wenzhuo ; Wu, Jingjing ; > Peng, Yuan > Cc: dev@dpdk.org; sta...@dpdk.org; Dai, Wei > Subject: [dpdk-dev] [PATCH 1/2] app/tes

[dpdk-dev] [PATCH 1/2] app/testpmd: fix invalid rxq number setting

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