mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-19 00:55:18 +00:00
net: Fix a bug in removing queues from XPS map
[ Upstream commit6358d49ac2
] 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:184c449f91
("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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
1dff08485b
commit
047df46d6c
1 changed files with 1 additions and 1 deletions
|
@ -2058,7 +2058,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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue