DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] Ring PMD: why are stats counters atomic?
@ 2016-05-10  9:13 Mauricio Vásquez
  2016-05-10  9:36 ` Bruce Richardson
  0 siblings, 1 reply; 5+ messages in thread
From: Mauricio Vásquez @ 2016-05-10  9:13 UTC (permalink / raw)
  To: Bruce Richardson, dev

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,

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-08-15 20:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-10  9:13 [dpdk-dev] Ring PMD: why are stats counters atomic? Mauricio Vásquez
2016-05-10  9:36 ` Bruce Richardson
2016-05-16 13:12   ` Mauricio Vásquez
2016-05-16 13:16     ` Bruce Richardson
2016-08-15 20:41       ` Mauricio Vásquez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).