ethdev: optimize xstats by ids APIs