[dpdk-dev] rte_ether: Driver-specific stats getting overwritten

Thomas Monjalon thomas.monjalon at 6wind.com
Thu Jul 14 15:37:28 CEST 2016


2016-07-14 14:29, Remy Horton:
> 'noon,
> 
> In rte_eth_stats_get() after doing the driver callout to populate struct 
> rte_eth_stats, the rx_nombuf member is overwritten with 
> dev->data->rx_mbuf_alloc_failed even though some drivers will have 
> filled rx_nombuf with a value from elsewhere. This makes assignment of 
> rx_nombuf from within the driver callout redundant. Is this intentional?

Yes it is strange and has always been like that.
Why not moving the assignment before calling the driver callback?


More information about the dev mailing list