net/dpaa: fix xstats implementation
authorHemant Agrawal <hemant.agrawal@nxp.com>
Wed, 25 Apr 2018 12:57:01 +0000 (18:27 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 13 May 2018 22:36:38 +0000 (00:36 +0200)
commit339c1025a87c3eeb38a9ec5bf0679caf21bec7e6
treebd6afef53695a4438c096ae2659e7d87eff666db
parent627b677014ae1d161a282ddb08da4b3d343de018
net/dpaa: fix xstats implementation

Some of the applications are expecting that if n is 0, it shall
return the supported number of stats. e.g. VPP

Fixes: b21ed3e2a16d ("net/dpaa: support extended statistics")
Cc: stable@dpdk.org
Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
Acked-by: Shreyansh Jain <shreyansh.jain@nxp.com>
drivers/net/dpaa/dpaa_ethdev.c