Received: by 10.192.165.156 with SMTP id m28csp2397340imm; Thu, 12 Apr 2018 13:39:09 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+R6ZsMCgQCQOxWnhWYQdWnXV8NcAO2z4xx9GolPAp+NltJ1OQqsedzDxSqOHDkIXtJTq2N X-Received: by 10.101.99.193 with SMTP id n1mr1826089pgv.446.1523565549094; Thu, 12 Apr 2018 13:39:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523565549; cv=none; d=google.com; s=arc-20160816; b=v0id7dugKGdfBNInH3KJMrCknKIcORv0ss1eUtJ33btBCERxIJkO4nQGcNuzIKWaZm DjbuNE5ltEKmzA5WhlGGKbsqSjfmOyT1ylwx8BArj25yPygNkHzAmpm8LkorjomTlZVR jNd5UzrhvyWPdUy1L3qXi6YtsLuRaPJge6fv+aCPqSdK9/leQAY2KdLTWMzJc83lroAA /IRN6tkUv+uuKSIdOfmS9mRtxZnahhsoF4m9344rvgycPPq3+oXmeozdTE1GB9Uklr0S wrbfc7bLkJA9PeA7R/75biIZUFaWzDglpFARwnGqXQSyZfFN5hhRoG+s0Bac4NEREkr3 L0GA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=0s3vztGuqZ/ED1mmXjsFAn0gH4cd+jZuKYl3kjSFkfc=; b=GuuETdx5+Lmbhh/mjP99chv4+PhJm0yEMfTGrtRoVWIvN/XRH0TAt9Xd1pjX6akkQz 8oeZDQ+/radH6sAKxSjclUDefGufuwGX6WZD5I/U53eTRjQQx1hyiNMvoFGAlLcsBjVh rUsXB6spdTdVGdCybpCOrc+jFMJkPQYUw1Z9+WmbOf/Iqy4R6aJG/gbz8ZiPSLuDldCD Zx6a4XNsTIXp+C2DZwRFOLTG4gVe/LdtrQhD7iYUv7sDed1t8G2xjagxyipuCxVGn05b 0HgVdVCERJ4AFH8M2T9zKUn/FxNehn/z2PR06kFjCMEu7m9VGekPnagxtSHtNkrZJbf6 4jZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Nf7KlWMr; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u206si2786109pgb.321.2018.04.12.13.38.55; Thu, 12 Apr 2018 13:39:09 -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=@ti.com header.s=ti-com-17Q1 header.b=Nf7KlWMr; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752168AbeDLUP2 (ORCPT + 99 others); Thu, 12 Apr 2018 16:15:28 -0400 Received: from lelnx194.ext.ti.com ([198.47.27.80]:44142 "EHLO lelnx194.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751946AbeDLUP0 (ORCPT ); Thu, 12 Apr 2018 16:15:26 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelnx194.ext.ti.com (8.15.1/8.15.1) with ESMTP id w3CKFOCi001368; Thu, 12 Apr 2018 15:15:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1523564124; bh=AGhqyDYTscT5KZtVyHxzCelDCFI3SJoyUsFr2goceqg=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=Nf7KlWMrn5QA5sCf32pmW67YbE1BrIbrXGHV4JD9eF6iQ1k+OOkPL9IJ7RiN3f8LD e5RPEovYVJFZqPBRXylVE63mUUGiQfQFA2JOXXS/iU3JNeNTvdOIFqeszEJsdXdLAi GXEfF0upQvIXaz90qGvf3G/CBwKTMip7A1vjX1Q0= Received: from DLEE114.ent.ti.com (dlee114.ent.ti.com [157.170.170.25]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w3CKFOKF021552; Thu, 12 Apr 2018 15:15:24 -0500 Received: from DLEE107.ent.ti.com (157.170.170.37) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Thu, 12 Apr 2018 15:15:24 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Thu, 12 Apr 2018 15:15:23 -0500 Received: from [128.247.59.147] (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w3CKFNmq017633; Thu, 12 Apr 2018 15:15:23 -0500 Subject: Re: [PATCH] net: ethernet: ti: cpsw: fix tx vlan priority mapping To: Ivan Khoronzhuk CC: , , , References: <1523543140-20747-1-git-send-email-ivan.khoronzhuk@linaro.org> From: Grygorii Strashko Message-ID: Date: Thu, 12 Apr 2018 15:15:23 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <1523543140-20747-1-git-send-email-ivan.khoronzhuk@linaro.org> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/12/2018 09:25 AM, Ivan Khoronzhuk wrote: > 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" > > Signed-off-by: Ivan Khoronzhuk > --- > Based on net/master Fixes: e05 107 e6b 747 ("net: ethernet: ti: cpsw: add multi queue support") Reviewed-by: Grygorii Strashko > > drivers/net/ethernet/ti/cpsw.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c > index 3037127..74f8284 100644 > --- a/drivers/net/ethernet/ti/cpsw.c > +++ b/drivers/net/ethernet/ti/cpsw.c > @@ -129,7 +129,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_RX_VLAN_ENCAP BIT(2) > -- regards, -grygorii