Received: by 10.192.165.148 with SMTP id m20csp826045imm; Fri, 27 Apr 2018 08:07:10 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqOlkVDYL7esb+VpWkvmQZi/o2X4gSReG21gSTL27Cqp+1I3D2CYCRccC3fLOwA3dYApnFy X-Received: by 2002:a63:8bca:: with SMTP id j193-v6mr2353290pge.300.1524841630792; Fri, 27 Apr 2018 08:07:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524841630; cv=none; d=google.com; s=arc-20160816; b=K1E2fbp0vEtRLivIhRtUzJZzPGFpWAnGzM3EtybMdGknwQMGwMnTdPj1E2lxMX53IC 7sOYPLUf2yd2EQSaTGShdBWqvRxx70ELYAdBkE4EGysz9AYxau74m10NjynoUx5X0Vxv SF2+Rmvd3xAJATUYZYAmzSDx33N/e30sUwdWJNBt6qi3xHZDpnKEvgo8BFMz9KdYMNn0 e3ESTX8uDpWoK5eKPrWi80XHGU6YQ6iEmhRMN3wbHXYQ7qzjJ7X+jBESAfpuLHFiWX94 9YFurgzZp3lx0sf+LoJd4tjXe/ld/LzjzwFHllyrB89RAVyVGe9/Vvf4+UVnmMD0iyW0 8t9A== 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:dmarc-filter :arc-authentication-results; bh=y9dwPV+Jizj5KnNnlcIhr89HMFEhS2b5ta6Bkb/Z2Zw=; b=d9Qe/mz/bdxucc+R+EwLrzSAp+pbw5Xc9J4cGY3RdZIQMcqmhsUnNsAF6HCLymGCzG HSszKYNuKju4A+5MmsS0m3cvnIxPjgYllRErCNc9doUEp6kF8GxBNq65qAfLVOO5yqXS +BFqbPgOEoCcoMplSlV81MmVhSN2SdrbIGE5ZHG7VCehu3l29kr3uGJ8eK0zOm88FQqK B0OMc/YDTqbcItOcDKszAhISxr8mc+vn/Rq76aNsCeYWCqxJYdxw5BqEKND7/RIXYFqe PV1rmig5wITkienFLF/+E5zc8Q7cvh/ta62k1VXYU8zeIVEw6PgHc9HYiVhJpBUiXJ3N tc6Q== ARC-Authentication-Results: i=1; mx.google.com; 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 q23si1420918pfd.153.2018.04.27.08.06.56; Fri, 27 Apr 2018 08:07:10 -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; 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 S934016AbeD0PEd (ORCPT + 99 others); Fri, 27 Apr 2018 11:04:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:51424 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933207AbeD0OFH (ORCPT ); Fri, 27 Apr 2018 10:05:07 -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 B821421890; Fri, 27 Apr 2018 14:05:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B821421890 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: mail.kernel.org; spf=fail smtp.mailfrom=gregkh@linuxfoundation.org From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Grygorii Strashko , Ivan Khoronzhuk , "David S. Miller" Subject: [PATCH 4.9 63/74] net: ethernet: ti: cpsw: fix tx vlan priority mapping Date: Fri, 27 Apr 2018 15:58:53 +0200 Message-Id: <20180427135712.549769252@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180427135709.899303463@linuxfoundation.org> References: <20180427135709.899303463@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.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Ivan Khoronzhuk [ Upstream commit 5e391dc5a8d801a2410d0032ad4a428d1d61800c ] The CPDMA_TX_PRIORITY_MAP in real is vlan pcp field priority mapping register and basically replaces vlan pcp field for tagged packets. So, set it to be 1:1 mapping. Otherwise, it will cause unexpected change of egress vlan tagged packets, like prio 2 -> prio 5. Fixes: e05107e6b747 ("net: ethernet: ti: cpsw: add multi queue support") Reviewed-by: Grygorii Strashko Signed-off-by: Ivan Khoronzhuk Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/ti/cpsw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/ethernet/ti/cpsw.c +++ b/drivers/net/ethernet/ti/cpsw.c @@ -124,7 +124,7 @@ do { \ #define RX_PRIORITY_MAPPING 0x76543210 #define TX_PRIORITY_MAPPING 0x33221100 -#define CPDMA_TX_PRIORITY_MAP 0x01234567 +#define CPDMA_TX_PRIORITY_MAP 0x76543210 #define CPSW_VLAN_AWARE BIT(1) #define CPSW_ALE_VLAN_AWARE 1