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)
commitd658d98aa55a0a6e1f3b818645b098bc3187777a
tree1ccf9c6acac4048a8540734eb2b6aee3f91aaad2
parent41d25fe0927aabb1d4b671871a99a55bcd203257
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