Re: [PATCH net-next v7 0/5] net: napi: add CPU affinity to napi->config

From
Joe Damato <hidden>
Date
2025-02-07 00:24:29
Also in
intel-wired-lan
Reply to
Ahmed Zaki, 2025-02-04
On Tue, Feb 04, 2025 at 03:06:17PM -0700, Ahmed Zaki wrote:
Drivers usually need to re-apply the user-set IRQ affinity to their IRQs
after reset. However, since there can be only one IRQ affinity notifier
for each IRQ, registering IRQ notifiers conflicts with the ARFS rmap
management in the core (which also registers separate IRQ affinity
notifiers).   

Move the IRQ affinity management to the napi struct. This way we can have
a unified IRQ notifier to re-apply the user-set affinity and also manage
the ARFS rmaps. The first patch  moves the ARFS rmap management to CORE.
The second patch adds the IRQ affinity mask to napi_config and re-applies
the mask after reset. Patches 3-5 use the new API for bnxt, ice and idpf
drivers.
If there's another version maybe adding this to netdevsim might be
good?

Was just thinking that if one day in the distant future netdev-genl
was extended to expose the per NAPI affinity mask, a test could
probably be written.
Thread (15 messages) 15 messages, 3 authors, last reply 2025-02-11
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help