diff options
author | Amritha Nambiar <amritha.nambiar@intel.com> | 2018-06-29 21:26:41 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-07-02 09:06:23 +0900 |
commit | 80d19669ecd34423e85ca04f2210b0e42a47cb16 (patch) | |
tree | db6eb66398a8ff0c5befd17f2d1056d83776b241 /net/core/net-sysfs.c | |
parent | 1a84d7fdb5fc07b903678756f6f169d36de542b8 (diff) |
net: Refactor XPS for CPUs and Rx queues
Refactor XPS code to support Tx queue selection based on
CPU(s) map or Rx queue(s) map.
Signed-off-by: Amritha Nambiar <amritha.nambiar@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/net-sysfs.c')
-rw-r--r-- | net/core/net-sysfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c index bb7e80f4ced3..b39987c81d53 100644 --- a/net/core/net-sysfs.c +++ b/net/core/net-sysfs.c @@ -1227,13 +1227,13 @@ static ssize_t xps_cpus_show(struct netdev_queue *queue, return -ENOMEM; rcu_read_lock(); - dev_maps = rcu_dereference(dev->xps_maps); + dev_maps = rcu_dereference(dev->xps_cpus_map); if (dev_maps) { for_each_possible_cpu(cpu) { int i, tci = cpu * num_tc + tc; struct xps_map *map; - map = rcu_dereference(dev_maps->cpu_map[tci]); + map = rcu_dereference(dev_maps->attr_map[tci]); if (!map) continue; |