Received: by 10.192.165.148 with SMTP id m20csp783468imm; Fri, 27 Apr 2018 07:28:00 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoX8ySvfol2BNm2D5yawGS4EMUVfDGOWDpkqHgFN16gK2DcqjKxlBF0pPDmbNUZOvTyUXev X-Received: by 10.98.93.20 with SMTP id r20mr2410987pfb.53.1524839280635; Fri, 27 Apr 2018 07:28:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524839280; cv=none; d=google.com; s=arc-20160816; b=0fMQtOdKReT6yePN07LynGCuGtOFIV9yHjAqgNWlnbV2cpN6w+IetRzUSP/jZcf0ku UfMdclealZegIzUDiX8B921uuT1y+mfWFiR5iCbK7g3oazPqhF1hxFKk7hG13byzC3q1 iCaXGEVZHml/bH15/XMwBImg+rvt2joxwofYGH0cOC0SM4ZC/tdKagZ/R08mSNQaJmHS Iws98h+xqiAL4gFFqH2k4N6N4S8ST3bofmTEHSPv+Bo7EeCBDXZEhJ0OJc3YmaExXVbH uOpzujYpx/UNjC+Y/nPpYjex2yS/8F9+B1WK4gt0+t5XKBw4KEHejWICizl0rLyGJPBN DejQ== 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=0VxwJxk4iw5VNkqjfxoecqQ0obSbgWt5sXUEpv39Z5M=; b=LsfnlgQOHxvTwRADkW2a32Brkoarwfp0Sw0sxjGUqkGjYxUCR4js10xaZb+jS+KWCJ iLlj8LRwNdbaM4ubSaHlS3N4xB00wK0+wmLxDl214STD3qHbcE5nMJJRX2YziP3F8/7C YBAtkOZzEiS10pbtPjDgsgnkZoiqVg5TCnGTjD0YR8q3Jw9fsNIc3aUZ2UU8Vz/qVlze 7++wGMg1p9XJw2Vg99EwoEOkQQ+shRyoZ6b5SyqloMnpo0cVxp+RtNz1io0XkK3WreIU oqbwKyf9StUryZjJTul/7fmKX9BHVkLXnnMVBPSqMHY6mWQnRhKjVomTrunP0SnlqhgQ 98zw== 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 w11-v6si1304525pgr.489.2018.04.27.07.27.46; Fri, 27 Apr 2018 07:28:00 -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 S935048AbeD0OLf (ORCPT + 99 others); Fri, 27 Apr 2018 10:11:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:56288 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934609AbeD0OL3 (ORCPT ); Fri, 27 Apr 2018 10:11:29 -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 63ADD21895; Fri, 27 Apr 2018 14:11:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 63ADD21895 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.16 50/81] net: ethernet: ti: cpsw: fix tx vlan priority mapping Date: Fri, 27 Apr 2018 15:58:52 +0200 Message-Id: <20180427135746.128377272@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180427135743.216853156@linuxfoundation.org> References: <20180427135743.216853156@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: 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 @@ -125,7 +125,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