]> 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)
commit244e1586a60e50e80f32ef5186a7ff1f94683617
tree93bc64865c13a412a70ab8d3412025828a6f732c
parent72c6d71aa833c0c43ed733f1a715916383dcf8e3
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