ethdev: add pause frame counters for em/igb/ixgbe
authorIvan Boule <ivan.boule@6wind.com>
Thu, 27 Jun 2013 12:54:08 +0000 (14:54 +0200)
committerDavid Marchand <david.marchand@6wind.com>
Wed, 26 Feb 2014 10:07:28 +0000 (11:07 +0100)
commite659b6b43928c33de7625cd62540cdfc55792f01
tree7f4518808aeed075d92119eb1ce6b0f2d7dd6764
parent7238e63bce528167a7f1241e3c3b25172e7b5ad6
ethdev: add pause frame counters for em/igb/ixgbe

Add into the `rte_eth_stats` data structure 4 (64-bit) counters
of XOFF/XON pause frames received and sent on a given port.

Update em, igb, and ixgbe drivers to return the value of the 4 XOFF/XON
counters through the `rte_eth_stats_get` function exported by the DPDK
API.

Display the value of the 4 XOFF/XON counters in the `testpmd` application.

Signed-off-by: Ivan Boule <ivan.boule@6wind.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
app/test-pmd/config.c
app/test-pmd/testpmd.c
lib/librte_ether/rte_ethdev.h
lib/librte_pmd_e1000/em_ethdev.c
lib/librte_pmd_e1000/igb_ethdev.c
lib/librte_pmd_ixgbe/ixgbe_ethdev.c