On 30/11/2026 16:33, Nick Hudson wrote:
Use LSE instructions when __ARM_FEATURE_ATOMICS or
RTE_ARM_FEATURE_ATOMICS is defined. Otherwise, check runtime CPU flags
before selecting LSE instructions for JIT-generated code.

Signed-off-by: Nick Hudson <[email protected]>

Hi, thank you for working on this. I can ack the code, but not the commit message or (missing) comments. The patch changes the current behaviour in a meaningful but counterintuitive way. Understanding it needs some analysis and may confuse some poor soul trying to figure out in the middle of the night why DPDK executes atomic instructions in the place it previously didn't.

Firstly, it would be nice if commit message clearly stated the change in behaviour: generate JIT atomic instructions based on runtime detection even if RTE_ARM_FEATURE_ATOMICS is disabled.

Secondly, it should explain the problem the patch is solving. Something along the lines of target alone being insufficient to guarantee the atomics availability for some values, LL/SC loops having forward-progress issues under contention, behaviour commonality with the rest of the platform (if it actually does the same already), yada yada. Short comment inside has_atomics would help too, maybe (not sure) even a release note. Searching mailing lists for answers should be the last resort IMO.

I would also love to know how practically relevant having atomic eBPF atomics in a armv8-a generic build is in 2027+, what prevents us from just building for armv8.1-a. I'm not claiming it's not relevant, just want to make sure it's not just a "nice to have" tweaking.

Reply via email to