Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1915700imm; Thu, 24 May 2018 02:52:50 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpK/ro7YFlSrsoYcZTFbcO8NkS8lzxOaTsG+yxIyD2AGCju1uTSaVuK3WytXn31GwQD2O/Q X-Received: by 2002:a62:a21e:: with SMTP id m30-v6mr6550646pff.251.1527155569936; Thu, 24 May 2018 02:52:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527155569; cv=none; d=google.com; s=arc-20160816; b=Iqt+hHIxH+EsrtSM4MmGW9xsY9EwOcOaEV9ZCrl77L5o1/lN7zSaksXpBeu2HbLCN/ YdEGo9QqzP3cskYEfPSJ8SIgKtXoSZOb+BAi87e3YaL57JnKeYgUoCdCNXti3tZrrcva cvGPW2g+Kb3j/mrdasFdkyykYKLKou2wDJ/Si/17qp/xOzv4weCpAjWHBpUQKE7mbmhh SDC5JNxHg2S9UX3ognEPiLZXBymRFwtaUJJVIiYS3raCEIJ6rZttiiw1Sl40HFy/ZGvj aCH9Jl5vyTx9fIVsidq4h9CWdYfX9HVfMcep+fLL4eVqgHcCqfOM/GbuRZsyZqMCVUcE JoJg== 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=BMs5DGlzUbByceHiZUIw3HGVICAsmrSBitLcP6PtMXA=; b=hfO04sXHJ1xAsmk19T1d8sX/BOshgiuhwmT8fQLWykoRy9JrFJhUp381xyyyEg2SaV OnKBtyVtrHhrrlo4gG45TMKYUnZsPe3co484ZzMQe3kfUfhrqrCUaosApK6QVta9OK6R 2iQLl8r9Pdg7JYe3GvPSWGT6qaFk39kaykzMeEYQSkNKxqDjMAE8X0I2IVx0tf0khZvO 081tiCBEs4NUIFLwNIwXLjgd6DBs9/vGpHh9bJCsjkybyf4b42V1FEzFS1GoYy+ARG8a cTYsAW+dM6DnRkCxFUssUc9WDNu4f6iWYK/rXkVZNiq05VhtKbZSQbdCM8gJUwf4EIYC iR5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=tFHjVFiR; 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 3-v6si21621067plf.84.2018.05.24.02.52.35; Thu, 24 May 2018 02:52:49 -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=tFHjVFiR; 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 S967759AbeEXJvn (ORCPT + 99 others); Thu, 24 May 2018 05:51:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:47214 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967707AbeEXJvd (ORCPT ); Thu, 24 May 2018 05:51:33 -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 EE42F20891; Thu, 24 May 2018 09:51:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527155492; bh=dp7/TPNJ1Fw4cyNuH+y3qvppipmyGx2jb4wC32BU4qM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tFHjVFiRhCSSdBvrJ2QMRyW2hyBsoMBMsF9KMqDDKcHf+vX1uQZjgKy7PomCfwbg7 t0uIi/vjhUOobjopbsmMDhtsvWPty2KfsFu59IfJ7fONYPCH22MBYZs56drZdIv1iO M9jrxz+SqnjorIahCoCj0Nf67IfcMFta0grq5SwU= 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.14 001/165] net: Fix a bug in removing queues from XPS map Date: Thu, 24 May 2018 11:36:47 +0200 Message-Id: <20180524093622.035784561@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180524093621.979359379@linuxfoundation.org> References: <20180524093621.979359379@linuxfoundation.org> User-Agent: quilt/0.65 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.14-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 @@ -2058,7 +2058,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; }