nfp: take numa node into account when setting irq affinity
authorYinjun Zhang <yinjun.zhang@corigine.com>
Wed, 9 Nov 2022 20:04:42 +0000 (15:04 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Nov 2022 10:44:23 +0000 (10:44 +0000)
commit42ba9654acad33efe34e5125fb373889f46a3f1c
treec3c0825c6d095bec0b89c253df3e100b297ed7a2
parentf53e14328ec08bda94a95d50e3eb0abb72963efc
nfp: take numa node into account when setting irq affinity

Set irq affinity to cpus that belong to the same numa node with
NIC device first.

Signed-off-by: Yinjun Zhang <yinjun.zhang@corigine.com>
Reviewed-by: Louis Peens <louis.peens@corigine.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@corigine.com>
Signed-off-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfp_net_common.c