Re: [dpdk-dev] [PATCH 1/2] ethdev: add return value to stats get dev op

2017-10-09 Thread Ferruh Yigit
On 10/9/2017 5:12 PM, Matan Azrad wrote: > The stats_get dev op API doesn't include return value, so PMD cannot > return an error in case of failure at stats getting process time. > > Since PCI devices can be removed and there is a time between the > physical removal to the RMV interrupt, the user

[dpdk-dev] [PATCH 1/2] ethdev: add return value to stats get dev op

2017-10-09 Thread Matan Azrad
The stats_get dev op API doesn't include return value, so PMD cannot return an error in case of failure at stats getting process time. Since PCI devices can be removed and there is a time between the physical removal to the RMV interrupt, the user may get invalid stats without any indication. Thi