Kalesh AP a9586abdbc net/bnxt: fix xstats
If the HWRM_PORT_QSTATS_EXT fails to initialize
fw_rx_port_stats_ext_size or fw_tx_port_stats_ext_size,
the driver can end up passing junk statistics to the application.

Instead of relying on the application to initialize the xstats
buffer before calling the xstats_get dev_op, memset xstats
with zeros to avoid returning or displaying incorrect statistics.

Also fixed the buffer starting offset.

Fixes: f55e12f33416 ("net/bnxt: support extended port counters")
Cc: stable@dpdk.org

Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Reviewed-by: Lance Richardson <lance.richardson@broadcom.com>
2019-06-14 00:01:06 +09:00
..
2019-06-13 23:54:28 +09:00
2019-06-06 20:21:19 +09:00
2019-06-13 23:54:29 +09:00
2019-06-14 00:01:06 +09:00
2019-06-13 23:54:29 +09:00
2019-06-14 00:01:06 +09:00
2019-04-19 14:51:54 +02:00
2019-06-06 20:21:20 +09:00
2019-06-06 20:21:20 +09:00
2019-06-13 23:54:29 +09:00
2019-05-24 13:34:46 +02:00
2019-05-24 13:34:45 +02:00
2019-06-06 20:21:20 +09:00
2019-06-06 20:21:20 +09:00
2019-06-06 20:21:20 +09:00
2019-06-06 20:21:20 +09:00
2019-06-13 23:54:29 +09:00