numam-dpdk/drivers/net/i40e
Olivier Matz 513c78ae3f ethdev: fix extended statistics name index
The function rte_eth_xstats_get() return an array of tuples (id,
value). The value is the statistic counter, while the id references a
name in the array returned by rte_eth_xstats_get_name().

Today, each 'id' returned by rte_eth_xstats_get() is equal to the index
in the returned array, making this value useless. It also prevents a
driver from having different indexes for names and value, like in the
example below:

  rte_eth_xstats_get_name() returns:
    0: "rx0_stat"
    1: "rx1_stat"
    2: ...
    7: "rx7_stat"
    8: "tx0_stat"
    9: "tx1_stat"
    ...
    15: "tx7_stat"

  rte_eth_xstats_get() returns:
    0: id=0, val=<stat>    ("rx0_stat")
    1: id=1, val=<stat>    ("rx1_stat")
    2: id=8, val=<stat>    ("tx0_stat")
    3: id=9, val=<stat>    ("tx1_stat")

This patch fixes the drivers to set the 'id' in their ethdev->xstats_get()
(except e1000 which was already doing it), and fixes ethdev by not setting
the 'id' field to the index of the table for pmd-specific stats: instead,
they should just be shifted by the max number of generic statistics.

Fixes: bd6aa172cf ("ethdev: fetch extended statistics with integer ids")

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Remy Horton <remy.horton@intel.com>
2017-01-04 19:04:30 +01:00
..
base net/i40e/base: support FCoE 2016-09-30 12:27:18 +02:00
i40e_ethdev_vf.c ethdev: decouple from PCI device 2016-12-25 23:30:19 +01:00
i40e_ethdev.c ethdev: fix extended statistics name index 2017-01-04 19:04:30 +01:00
i40e_ethdev.h ethdev: decouple from PCI device 2016-12-25 23:30:19 +01:00
i40e_fdir.c net/i40e: fix flow director on X710 2016-10-26 19:42:23 +02:00
i40e_logs.h
i40e_pf.c net/i40e: fix VF bonded device link down 2016-11-07 17:50:25 +01:00
i40e_pf.h net/i40e: fix VF bonded device link down 2016-11-07 17:50:25 +01:00
i40e_regs.h i40e: add EEPROM and registers dumping 2016-03-16 17:48:48 +01:00
i40e_rxtx_vec_common.h net/i40e: extract non-x86 specific code from vector driver 2016-10-26 18:01:25 +02:00
i40e_rxtx_vec_neon.c net/i40e: implement vector PMD for ARM 2016-10-26 19:38:00 +02:00
i40e_rxtx_vec_sse.c net/i40e: fix out of order Rx read 2016-10-26 19:38:18 +02:00
i40e_rxtx.c net/i40e: implement new Rx checksum flag 2016-10-14 01:41:39 +02:00
i40e_rxtx.h net/i40e: add packet type metadata in vector Rx 2016-10-13 15:30:59 +02:00
Makefile net/i40e: make vector driver filenames consistent 2016-10-26 19:38:17 +02:00
rte_pmd_i40e_version.map