diff options
author | Vasundhara Volam <vasundhara-v.volam@broadcom.com> | 2017-08-28 13:40:27 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-28 16:57:09 -0700 |
commit | 56f0fd80d1886479a42ac07ed239538eb145a669 (patch) | |
tree | 59f657e1c3ca392d745c9dd17a1d4bf6cee39711 /drivers/net/ethernet/broadcom/bnxt/bnxt.h | |
parent | 98fdbe73bfb809b1f8eec9f27a36e737caed3a44 (diff) | |
download | lwn-56f0fd80d1886479a42ac07ed239538eb145a669.tar.gz lwn-56f0fd80d1886479a42ac07ed239538eb145a669.zip |
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>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnxt/bnxt.h')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnxt/bnxt.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.h b/drivers/net/ethernet/broadcom/bnxt/bnxt.h index 568516f9e36e..801c0f77d4a5 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt.h +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.h @@ -701,8 +701,10 @@ struct bnxt_napi { struct bnxt_irq { irq_handler_t handler; unsigned int vector; - u8 requested; + u8 requested:1; + u8 have_cpumask:1; char name[IFNAMSIZ + 2]; + cpumask_var_t cpu_mask; }; #define HWRM_RING_ALLOC_TX 0x1 |