From: Amritha Nambiar Date: Thu, 17 May 2018 21:50:44 +0000 (-0700) Subject: net: Fix a bug in removing queues from XPS map X-Git-Tag: v4.19~1002^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6358d49ac23995fdfe157cc8747ab0f274d3954b;p=platform%2Fkernel%2Flinux-rpi3.git 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 Acked-by: Alexander Duyck Signed-off-by: David S. Miller --- diff --git a/net/core/dev.c b/net/core/dev.c index af0558b..2af787e 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; }