Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1961385imm; Thu, 24 May 2018 03:39:05 -0700 (PDT) X-Google-Smtp-Source: AB8JxZocckEqP9pVAAm5shVdrywGkfWQfSIqWYJEdgKCGirGwdxwgh+u4e2oGkRkPqp63RcwQLcb X-Received: by 2002:a17:902:22cc:: with SMTP id o12-v6mr7006747plg.38.1527158345157; Thu, 24 May 2018 03:39:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527158345; cv=none; d=google.com; s=arc-20160816; b=P2e3qMQ9XYO9Ev97MrZjWCsXkvWnAlHwO6zSIztXXlfmUxdepQzZihIri+5o8o10C4 8loUirNZr3xfjNLRT+3guxXMyofqOkWEJy/H3pk06VuIAlZpF+M3J4W/RmQUDEarhpQy Pu9ltOr3EUHoh38iy+SIkPDHVjdMbf2C4vLgD0vr9tnqSLt6wTH/kAJGZnmF7TlGTGxl hR75g8QsPYhYslPOWbTJtbhJaTtpsUy0eDM5tCewrDxvRVWIbgdn7YePotKiVTkAQnuQ Ir4HC13tXCkfLgBiGiPhTcEX6SMOe7XqcvNNZG9uRt1joARxJAsWFIeJ5A9Tupyh/bb0 2iDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=c1eE9mBBbs5I+cHYv1Udynv+hsbbvLZkbGlXFsL+aEk=; b=VXfTzDBoj+HV/iPLkqiOM7M2yDiAKCWQSuEoYoHQCFM5rSBLgTOFGdI9Y/62usBIRo Pe31gtGaTePmqWBVwa2fmAknIH00UaMscbOfp7UKS1z9/MPlsxflRuCSWAtZx+7jRxQA 8IRafdFt2vVAVSkuDjmYNdejv1K4XtOySXq9NeapcxmG+b0qieBwNh6uXJfBQ33nO9UA QBFxPuM2wj86TRJtBY+NLQsDiZXcitmZ2LDkXdslfef7r+4iupAoG9oKaL9FA5ZLvHp6 /QXMZmnbZhAgFzK4nHv0glx90s7ybPBYvp0nJSDf4nSk6a1Q24OQB18FuFLu6riqAlQj Q5lA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JZZ/OLnv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 31-v6si21254776plh.552.2018.05.24.03.38.50; Thu, 24 May 2018 03:39:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JZZ/OLnv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1032211AbeEXKiK (ORCPT + 99 others); Thu, 24 May 2018 06:38:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:40690 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030787AbeEXJ7h (ORCPT ); Thu, 24 May 2018 05:59:37 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3121E2088E; Thu, 24 May 2018 09:59:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527155976; bh=539TyECLicYP/c7HZyglQme77c7C7+eoMuYIs5qxJrI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JZZ/OLnv4ZQuThi9XoEnaHFf+uA2ZCvNS4Ib2uUxcVdqHpYvNO0UqqPxJ655oIs/i nB1Hd+6c3R4veO5YDSdpqg2nrRNUan6WpDP9vsKdM1HY2yykv1GikClFdOn4/aP09O mNoaMUC/QBtVmMxoJXlBn5p9hjZUi3L5z0cDnP3o= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Amritha Nambiar , Alexander Duyck , "David S. Miller" Subject: [PATCH 4.16 002/161] net: Fix a bug in removing queues from XPS map Date: Thu, 24 May 2018 11:37:07 +0200 Message-Id: <20180524093018.638608424@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180524093018.331893860@linuxfoundation.org> References: <20180524093018.331893860@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.16-stable review patch. If anyone has any objections, please let me know. ------------------ From: Amritha Nambiar [ Upstream commit 6358d49ac23995fdfe157cc8747ab0f274d3954b ] 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 Signed-off-by: Greg Kroah-Hartman --- net/core/dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/net/core/dev.c +++ b/net/core/dev.c @@ -2097,7 +2097,7 @@ static bool remove_xps_queue_cpu(struct 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; }