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)
commit56f0fd80d1886479a42ac07ed239538eb145a669
tree59f657e1c3ca392d745c9dd17a1d4bf6cee39711
parent98fdbe73bfb809b1f8eec9f27a36e737caed3a44
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