]> www.infradead.org Git - users/jedix/linux-maple.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)
committerJack Vogel <jack.vogel@oracle.com>
Fri, 9 Mar 2018 04:49:01 +0000 (20:49 -0800)
commite2dc67e92901c11801dda4354951d1f4e144d27e
tree53dfb03e4be8e9fd2c46e39d6dcc8c190750a7d3
parenta395bc525e577c8baf110e6cade87a7b57a6655f
bnxt_en: assign CPU affinity hints to bnxt_en IRQs

Orabug: 2764835527648339

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>
(cherry picked from commit 56f0fd80d1886479a42ac07ed239538eb145a669)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Reviewed-by: Jack Vogel <jack.vogel@oracle.com>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h