net: mana: Assign interrupts to CPUs based on NUMA nodes
authorSaurabh Sengar <ssengar@linux.microsoft.com>
Tue, 1 Nov 2022 06:06:01 +0000 (23:06 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 3 Nov 2022 11:21:41 +0000 (12:21 +0100)
commit71fa6887eeca7b631528f9c7a39815498de8028c
tree2e1a1bb6f9d16bdc0143fa09b115ff71a8b0c111
parent6d6b39f180b83dfe1e938382b68dd1e6cb51363c
net: mana: Assign interrupts to CPUs based on NUMA nodes

In large VMs with multiple NUMA nodes, network performance is usually
best if network interrupts are all assigned to the same virtual NUMA
node. This patch assigns online CPU according to a numa aware policy,
local cpus are returned first, followed by non-local ones, then it wraps
around.

Signed-off-by: Saurabh Sengar <ssengar@linux.microsoft.com>
Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
Link: https://lore.kernel.org/r/1667282761-11547-1-git-send-email-ssengar@linux.microsoft.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/microsoft/mana/gdma.h
drivers/net/ethernet/microsoft/mana/gdma_main.c