search for: netif_reset_xps_queu

Displaying 1 result from an estimated 1 matches for "netif_reset_xps_queu".

Did you mean: netif_reset_xps_queues
2018 Aug 07
1
[PATCH net-next] net: allow to call netif_reset_xps_queues() under cpu_read_lock
...is_rxqs_map); + u16 index, bool is_rxqs_map, bool cpuslocked); /** * netif_attr_test_mask - Test a CPU or Rx queue set in a mask diff --git a/net/core/dev.c b/net/core/dev.c index f68122f0ab02..d6a0f64ccdd9 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -2176,6 +2176,7 @@ static void netif_reset_xps_queues(struct net_device *dev, u16 offset, if (!static_key_false(&xps_needed)) return; + cpus_read_lock(); mutex_lock(&xps_map_mutex); if (static_key_false(&xps_rxqs_needed)) { @@ -2199,10 +2200,11 @@ static void netif_reset_xps_queues(struct net_device *dev, u16 offset, out_...