[dpdk-dev] stats_get API: return value suggestion
matan at mellanox.com
Mon Sep 4 14:22:42 CEST 2017
Following the next thread:
The stats_get dev ops API doesn't include return value, so PMD cannot return error
in case of failure at stats getting process time.
Since PCI devices can be removed and there is a long time between the physical removing to the
remove interrupt callback completion, the user can get invalid stats without any indication.
(think about HW counter stats)
I suggest return value for this API - ENODEV\0.
It can be also relevant to stats_reset, promiscuous_enable\disable, allmulticast_enable\disable, etc...
What do you think?
More information about the dev