[dpdk-stable] [PATCH] app/testpmd: add sanity checks when retrieving xstats

David Marchand david.marchand at 6wind.com
Tue Jun 12 09:09:52 CEST 2018


Hey guys,

On Thu, Jun 7, 2018 at 10:15 AM, David Marchand
<david.marchand at 6wind.com> wrote:
> Testpmd should not expect the xstats names and values arrays to be
> aligned: neither the arrays sizes, nor the order in which the values are.
>
> This hid some bugs where pmds would either return wrong values count or
> invalid statistics indexes.
>
> Link: http://dpdk.org/browse/dpdk/commit/?id=5fd4d049692b2fde8bf49c7461b18180a8fd2545
> Link: http://dpdk.org/dev/patchwork/patch/40705/
>
> Signed-off-by: David Marchand <david.marchand at 6wind.com>
> ---
>
> @stable: when this goes in, I recommend backporting this to all existing
> branches, as it makes it easier to show this kind of pmds bugs.

Can someone have a look please ?
Thanks.


-- 
David Marchand


More information about the stable mailing list