[dpdk-dev] [PATCH v1] eal: remove redundant id field in xstats name lookups

Thomas Monjalon thomas.monjalon at 6wind.com
Fri Jul 1 16:04:39 CEST 2016


2016-07-01 14:16, Remy Horton:
> For all drivers that currently implement xstats, the id field in the
> rte_eth_stats_name structure equals the entry's array index. This
> patch eliminates the redundant id field as a direct index lookup is
> faster than a search for the matching id field.
> 
> Signed-off-by: Remy Horton <remy.horton at intel.com>

Suggested-by: Olivier Matz <olivier.matz at 6wind.com>

Applied, thanks



More information about the dev mailing list