All of lore.kernel.org
 help / color / mirror / Atom feed
* Proposal using RCU for callbacks
@ 2026-10-12 18:13 Stephen Hemminger
  2026-10-12 20:27 ` Marat Khalili
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Hemminger @ 2026-10-12 18:13 UTC (permalink / raw)
  To: Marat Khalili, Konstantin Ananyev, Akhil Goyal, Fan Zhang,
	Honnappa Nagarahalli
  Cc: dev

[-- Attachment #1: Type: text/plain, Size: 844 bytes --]


The BPF and packet capture Rx/Tx callbacks use a per-queue use counter
so that removal can wait for the datapath. In BPF that costs a locked
instruction per burst. The code would be faster and cleaner if RCU
could be used, but DPDK RCU is limited to the QSBR model, which
requires application opt-in.

The userspace RCU library (liburcu) supports other models, so I did a
brief investigation into whether something similar could be done in
DPDK. As expected, it also turned up pre-existing issues: the counters
are wrong with MT_LOCKFREE Tx, the pdump one is not safe as written,
and cryptodev callback removal never waits.

I used Claude to write it up in more detail (attached). It is all from
code reading; nothing has been reproduced or prototyped yet.
This is too big to go into 26.11 at this point, will try and have something
for 27.03

[-- Attachment #2: rcu-ethdev-callback-removal.html --]
[-- Type: text/html, Size: 22874 bytes --]

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

end of thread, other threads:[~2026-10-12 22:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-12 18:13 Proposal using RCU for callbacks Stephen Hemminger
2026-10-12 20:27 ` Marat Khalili
2026-10-12 22:04   ` Stephen Hemminger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.