ethdev: fix overwriting driver-specific stats
authorRemy Horton <remy.horton@intel.com>
Tue, 19 Jul 2016 11:05:17 +0000 (12:05 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 21 Jul 2016 22:16:45 +0000 (00:16 +0200)
commit53ecfa24fbcd17d9855937391ce347f37434fbfa
tree31e5d0377bf18f2e3b94923a8270097dfc9189f5
parent6262b92eaab365d52b551fa78adfd871ed59000e
ethdev: fix overwriting driver-specific stats

After doing a driver callout to fill in the driver specific
parts of struct rte_eth_stats, rte_eth_stats_get() overwrites
the rx_nombuf member regardless of whether the driver itself
has assigned a value. Any driver-assigned value should take
priority.

Fixes: af75078fece3 ("first public release")

Signed-off-by: Remy Horton <remy.horton@intel.com>
lib/librte_ether/rte_ethdev.c