]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: assign CPU affinity hints to bnxt_en IRQs
authorVasundhara Volam <vasundhara-v.volam@broadcom.com>
Mon, 28 Aug 2017 17:40:27 +0000 (13:40 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Aug 2017 23:57:09 +0000 (16:57 -0700)
commit6a0596d0c82414c5c1c6b286cafaa68d00254ad7
tree59f657e1c3ca392d745c9dd17a1d4bf6cee39711
parent4ec2f064ce76b16e2fed1b3a05487072b5528389
bnxt_en: assign CPU affinity hints to bnxt_en IRQs

This patch provides hints to irqbalance to map bnxt_en device IRQs
to specific CPU cores. cpumask_local_spread() is used, which first
maps IRQs to near NUMA cores; when those cores are exhausted, IRQs
are mapped to far NUMA cores.

Signed-off-by: Vasundhara Volam <vasundhara-v.volam@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h