Skip to content

Commit

Permalink
net: Fix a bug in removing queues from XPS map
Browse files Browse the repository at this point in the history
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: 184c449 ("net: Add support for XPS with QoS via traffic classes")
Signed-off-by: Amritha Nambiar <[email protected]>
Acked-by: Alexander Duyck <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
anambiarin authored and davem330 committed May 18, 2018
1 parent 6caf9fb commit 6358d49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 6358d49

Please sign in to comment.