[dpdk-dev] rte_event_dev_xstats_by_name_get issues

Mattias Rönnblom mattias.ronnblom at ericsson.com
Thu Dec 12 11:32:23 CET 2019


Hi.

I'm looking at implementing rte_event_dev_xstats_by_name() for DSW, and 
I have some API-related questions.

Shouldn't rte_event_dev_xstats_by_name_get() return mode and queue/port 
id? Otherwise the caller needs to know if the name refers to a device- 
or port-level stat, and in case of the latter also the port or queue id. 
  That information is needed in subsequent rte_event_dev_xstats_get() call.

Also, the API states that the function may return "negative value: 
-EINVAL if stat not found, -ENOTSUP if not supported", which is somewhat 
misleading, since the return value is of an unsigned type.

Regards,
	Mattias


More information about the dev mailing list