# Re: \[PATCH net-next v2 4/8\] net: napi: add CPU affinity to napi-\>config

- From: Jakub Kicinski \<kuba@kernel.org\>
- Date: 2024-12-20 20:51:11 
- List: netdev
- Page: https://ratatoskr.run/netdev/2024/12/11314560
- Thread: https://ratatoskr.run/netdev/2024/12/11314268/t.md

```text
On Fri, 20 Dec 2024 13:14:48 -0700 Ahmed Zaki wrote:
> > Then you can probably register a single unified handler, and inside
> > that handler check if the device wanted to have rmap or just affinity?  
> 
> This is what is in this patch already, all drivers following new 
> approach will have netif_irq_cpu_rmap_notify() as their IRQ notifier.
> 
> IIUC, your goal is to have the notifier inside napi, not irq_glue. For 
> this, we'll have to have our own version of irq_cpu_rmap_add() (for the 
> above reason).
> 
> sounds OK?

Yes.
```
