[dpdk-dev] Ring PMD: why are stats counters atomic?
Mauricio Vásquez
mauricio.vasquezbernal at studenti.polito.it
Tue May 10 11:13:08 CEST 2016
Hello,
Per-queue stats counters are defined as rte_atomic64_t, in the tx/rx
functions, they are atomically increased if the rings have the multiple
consumers/producer flag enabled.
According to the design principles, the application should not invoke those
functions on the same queue on different cores, then I think that atomic
increasing is not necessary.
Is there something wrong with my reasoning?, If not, I am willing to send a
patch.
Thank you very much,
Mauricio V,
More information about the dev
mailing list