]> git.baikalelectronics.ru Git - kernel.git/commit
net: Use static_key for XPS maps
authorAmritha Nambiar <amritha.nambiar@intel.com>
Sat, 30 Jun 2018 04:26:46 +0000 (21:26 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Jul 2018 00:06:24 +0000 (09:06 +0900)
commit78904c52f33ee78f696beb39d38d9d989192aed4
tree93bc64865c13a412a70ab8d3412025828a6f732c
parentbd0f638886ab2d9da7038c4b373f54373671af72
net: Use static_key for XPS maps

Use static_key for XPS maps to reduce the cost of extra map checks,
similar to how it is used for RPS and RFS. This includes static_key
'xps_needed' for XPS and another for 'xps_rxqs_needed' for XPS using
Rx queues map.

Signed-off-by: Amritha Nambiar <amritha.nambiar@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c