ethdev: optimize xstats by ids APIs
authorElza Mathew <elza.mathew@intel.com>
Wed, 6 Dec 2017 00:25:07 +0000 (16:25 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jan 2018 17:47:49 +0000 (18:47 +0100)
commit4773152f850b221d98331839477b6d2a3181058b
treec732f266248b810d171953cae86535a9bd6ca3ef
parent185e5381463579550bc92eeb5950a1df3694ee99
ethdev: optimize xstats by ids APIs

Introduced a check to detect if the stats IDs being
requested are all basic stats IDs. In that case,
ensured that only the basic stats would be retrieved.

Previously, both basic stats and xstats were being
retrieved even if all the IDs were basic stats IDs.

Signed-off-by: Elza Mathew <elza.mathew@intel.com>
Reviewed-by: Lee Daly <lee.daly@intel.com>
lib/librte_ether/rte_ethdev.c