[dpdk-stable] [PATCH v3 0/2] app/testpmd: fix invalid rxq and txq nubmer setting
Dai, Wei
wei.dai at intel.com
Thu Jan 11 02:21:50 CET 2018
> -----Original Message-----
> From: Ananyev, Konstantin
> Sent: Wednesday, January 10, 2018 5:59 PM
> To: Dai, Wei <wei.dai at intel.com>; Yang, Qiming <qiming.yang at intel.com>;
> Peng, Yuan <yuan.peng at intel.com>; Lu, Wenzhuo <wenzhuo.lu at intel.com>;
> Wu, Jingjing <jingjing.wu at intel.com>
> Cc: dev at dpdk.org; stable at dpdk.org
> Subject: RE: [PATCH v3 0/2] app/testpmd: fix invalid rxq and txq nubmer
> setting
>
>
>
> > -----Original Message-----
> > From: Dai, Wei
> > Sent: Wednesday, January 10, 2018 8:41 AM
> > To: Ananyev, Konstantin <konstantin.ananyev at intel.com>; Yang, Qiming
> > <qiming.yang at intel.com>; Peng, Yuan <yuan.peng at intel.com>; Lu,
> Wenzhuo
> > <wenzhuo.lu at intel.com>; Wu, Jingjing <jingjing.wu at intel.com>
> > Cc: dev at dpdk.org; stable at dpdk.org; Dai, Wei <wei.dai at intel.com>
> > Subject: [PATCH v3 0/2] app/testpmd: fix invalid rxq and txq nubmer
> > setting
> >
> > 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".
> > The global variable rxq or 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.
> >
> > These 2 patches reserve the last correct rxq and txq, if an invalid
> > input is detected, it is restored to the backup value to avoid crash.
> >
> > Fixes: ce8d561418d4 ("app/testpmd: add port configuration settings")
> > Cc: stable at dpdk.org
> >
> > Signed-off-by: Wei Dai <wei.dai at intel.com>
> >
> > ---
>
> The code looks good to me, just seems some misspellings in the comments
> (mimumal).
> Acked-by: Konstantin Ananyev <konstantin.ananyev at intel.com>
Thanks, Konstantin.
I'll correct these misspellings in my v4 patch set.
>
> > v3: follow the guide from Konstantin to use functions to check
> > input rxq and txq instead of usage of new added global variables.
> >
> > v2: fix a bug in v1
> >
> >
> > Wei Dai (2):
> > app/testpmd: fix invalid rxq number setting
> > app/testpmd: fix invalid txq number setting
> >
> > app/test-pmd/cmdline.c | 4 ++
> > app/test-pmd/parameters.c | 13 ++++---
> > app/test-pmd/testpmd.c | 94
> +++++++++++++++++++++++++++++++++++++++++++++++
> > app/test-pmd/testpmd.h | 5 +++
> > 4 files changed, 110 insertions(+), 6 deletions(-)
> >
> > --
> > 2.7.5
More information about the stable
mailing list