[dpdk-dev] [PATCH] virtio: fix crash on querying xstats

2016-06-20 Thread Yuanhan Liu
On Mon, Jun 20, 2016 at 12:02:16PM +0100, Remy Horton wrote: > > On 20/06/2016 11:50, Yuanhan Liu wrote: > >Trying to access xstats_names after "if (stats_names == NULL)" is > >obviously wrong, which would result to a crash while running "show > >port xstats 0" in testpmd with virtio PMD. > > > >T

[dpdk-dev] [PATCH] virtio: fix crash on querying xstats

2016-06-20 Thread Yuanhan Liu
Trying to access xstats_names after "if (stats_names == NULL)" is obviously wrong, which would result to a crash while running "show port xstats 0" in testpmd with virtio PMD. The fix is also straightforward: just revese the check. Fixes: baf91c395b18 ("net/virtio: fetch extended statistics with

[dpdk-dev] [PATCH] virtio: fix crash on querying xstats

2016-06-20 Thread Remy Horton
On 20/06/2016 11:50, Yuanhan Liu wrote: > Trying to access xstats_names after "if (stats_names == NULL)" is > obviously wrong, which would result to a crash while running "show > port xstats 0" in testpmd with virtio PMD. > > The fix is also straightforward: just revese the check. > > Fixes: baf91