ixgbe: fix mbuf failure statistics in vector Rx
authorBalazs Nemeth <balazs.nemeth@intel.com>
Fri, 28 Nov 2014 09:21:45 +0000 (09:21 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 28 Nov 2014 15:19:25 +0000 (16:19 +0100)
commitc2941df015f27490444428cd50964ea9f0bf49d4
tree5729c813ce60854156866edff1c1072e20f2e610
parentae518a0fe52bdd8ec3b8c2e3b5db1dd965c54cd6
ixgbe: fix mbuf failure statistics in vector Rx

The statistics that is reported through the rx_nombuf fields in struct
rte_eth_stats was not set when the vector PMD was used. The statistics
should report the number of mbufs that could _not_ be allocated during
rearm of the RX queue. The non-vector PMD reports it correctly. The
use of either vector PMD or non-vector PMD depends on runtime
configuration. Hence it is possible that a change in configuration
would disable this statistics. To prevent this from happening, the
statistics should be reported by both implementations.

Signed-off-by: Balazs Nemeth <balazs.nemeth@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
lib/librte_pmd_ixgbe/ixgbe_rxtx_vec.c