diff options
author | Amritha Nambiar <amritha.nambiar@intel.com> | 2018-05-18 00:50:44 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-05-18 19:06:22 +0300 |
commit | 6358d49ac23995fdfe157cc8747ab0f274d3954b (patch) | |
tree | aae74219e91e2887c81052c17ae60006f10d70e3 /net | |
parent | 6caf9fb3bda17df59de4ed6ed4950c43ca1361e3 (diff) | |
download | linux-6358d49ac23995fdfe157cc8747ab0f274d3954b.tar.xz |
net: Fix a bug in removing queues from XPS map
While removing queues from the XPS map, the individual CPU ID
alone was used to index the CPUs map, this should be changed to also
factor in the traffic class mapping for the CPU-to-queue lookup.
Fixes: 184c449f91fe ("net: Add support for XPS with QoS via traffic classes")
Signed-off-by: Amritha Nambiar <amritha.nambiar@intel.com>
Acked-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/core/dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index af0558b00c6c..2af787e8b130 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -2124,7 +2124,7 @@ static bool remove_xps_queue_cpu(struct net_device *dev, int i, j; for (i = count, j = offset; i--; j++) { - if (!remove_xps_queue(dev_maps, cpu, j)) + if (!remove_xps_queue(dev_maps, tci, j)) break; } |