On Wed, 18 Dec 2024 09:58:39 -0700 Ahmed Zaki wrote:
quoted hunk ↗ jump to hunk
+ if (!glue_created && flags & NAPIF_IRQ_AFFINITY) {
+ glue = kzalloc(sizeof(*glue), GFP_KERNEL);
+ if (!glue)
+ return;
+ glue->notify.notify = netif_irq_cpu_rmap_notify;
+ glue->notify.release = netif_napi_affinity_release;
+ glue->data = napi;
+ glue->rmap = NULL;
+ napi->irq_flags |= NAPIF_IRQ_NORMAP;
Why allocate the glue? is it not possible to add the fields:
struct irq_affinity_notify notify;
u16 index;
to struct napi_struct ?