]> git.baikalelectronics.ru Git - kernel.git/commit
be2net: assign CPU affinity hints to be2net IRQs
authorPadmanabh Ratnakar <padmanabh.ratnakar@emulex.com>
Thu, 26 Mar 2015 07:05:08 +0000 (03:05 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sun, 29 Mar 2015 19:34:00 +0000 (12:34 -0700)
commit85b7cf6ca3b8b16a139db41b78c59c8203836644
tree1ccf9c6acac4048a8540734eb2b6aee3f91aaad2
parent0fedd5ba7c7a309349808c62a44211753e7ba88a
be2net: assign CPU affinity hints to be2net IRQs

This patch provides hints to irqbalance to map be2net IRQs to
specific CPU cores. cpumask_set_cpu_local_first() 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: Padmanabh Ratnakar <padmanabh.ratnakar@emulex.com>
Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be.h
drivers/net/ethernet/emulex/benet/be_main.c