Received: by 10.192.165.156 with SMTP id m28csp2027695imm; Thu, 12 Apr 2018 07:29:23 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/Iq4/zhBXBmfNfp4XSZciqo3eS6r8RcmRfdx5396RiJ2t0mgKOEIe0fLF2Wplvdi5wd26D X-Received: by 10.98.10.23 with SMTP id s23mr7955114pfi.204.1523543363744; Thu, 12 Apr 2018 07:29:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523543363; cv=none; d=google.com; s=arc-20160816; b=mpAyDZQdXzWahC4e9fIIPunqbsprWy4XR6vXn8M6/+3dDrK/je0umUKX9EMpBGy9Dx 7ARWhG6tTpM5EuFcpkRaufhwOA0JcF4MpgYV8gufVB3JURlyjcGjv8JVK+7bfxNVoJAs AoDfVXb7f4a/jp4y3JPLTUkmV/0RFi7mXo3CJXy6QGdDOQ50xzlzNTzGUBF0egPv9fZS WDi2GtRIxpVdG3ggL/cjUmFQ5TGK2GDIUA9xR66T8KcraplfSXjibGmeBFHiL+QBOhoL l+iRdR8+/6FXsNgHE/2N4pud8i5deYGH/sycJAdtuWN960778LQJOt9fbpynvNy7RycR RWYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=gGwKcTy+4d9uvQ7S7VY+YVZOrfpjLSQxUFiiQHFKKJ0=; b=rWmiIZncaEEI9AyeX0SP+mH7iuX1pKg6FnS+mVYsugUpBon+q2RSEBgcUP6rdi6tDi IkkcbFIWuf9ATwq6KmLjexNXYyVur5cE1D2XgK6M0dBtmi/cu3svQPBaHTUIboabOHmI VBTueoY/CNoG0CVz0l8utB9xObsj6ZHlZSzzyn1u3tOKRtzq72VSWp9VriZ+DLPmJFBR ozDZ9FIDRsVaWzZkxNv5Ew0XSjUUBJDPWEmMh7WKJxGJouZgqL5CL0En7os80do76dAc BpLVZjZdda7rVtAwvAPCeR68C7xK3j30li3rtelR+kFA4H93As2reUatASpkVp5DGBtz cvYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LSsOUvlF; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w2-v6si3346305plz.206.2018.04.12.07.28.46; Thu, 12 Apr 2018 07:29:23 -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=@linaro.org header.s=google header.b=LSsOUvlF; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752798AbeDLOZx (ORCPT + 99 others); Thu, 12 Apr 2018 10:25:53 -0400 Received: from mail-lf0-f66.google.com ([209.85.215.66]:33256 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751870AbeDLOZv (ORCPT ); Thu, 12 Apr 2018 10:25:51 -0400 Received: by mail-lf0-f66.google.com with SMTP id x70-v6so8001578lfa.0 for ; Thu, 12 Apr 2018 07:25:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=gGwKcTy+4d9uvQ7S7VY+YVZOrfpjLSQxUFiiQHFKKJ0=; b=LSsOUvlFBHQJG6aMw4VgxCpq1KlZYUCfAh7dBjQHFy49v99M8NPhZsi0wWK/I41eON ma4d1IDNFubeZPI95ctpQjzxtrp9kMghWaXAsFsnsTcOT4ngOVDnlc6SUszFRHTfdaN0 lgMGNwdqGaZJXLsTeaB/n4AzL16qcgna2zU3s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=gGwKcTy+4d9uvQ7S7VY+YVZOrfpjLSQxUFiiQHFKKJ0=; b=m071K9PDzhbhl6jIiyJx3rAxWos7dg0mdfdaXQhDmX12zgdZ/GVHvXKVZNcVQ9uQJ7 qBUoXvaiV4Zn/t/iLvHuQ+ywesKDSvZVsNByJAAJaUKj2k+N3+z+mqUpt7Fpq0I1VIaB //8rJdMTiZ9KMUrs0DbKJxFNaTy7pb5TQrcEpsHRrmYB+Oxo+EckGtKwVmsEyvliZ+/K LOztDCIoN8SXhVU0ujzeZFAt6Ow+5HX2EZ8lL+aTI8lTfytIjhj8KRKLxPWcWBOOUS75 C2fBYEIZjWnk+v0UiZvY7yKjDx7/vCHvl3Ki54vMiJhoyR41jNAIIO4LcpTHYJp/9bLD OfxQ== X-Gm-Message-State: ALQs6tD2vBVhrKzfVOBwQPbSBHHjGmU63z5h7ix3TOhn4HCps+9qREl6 jag8n75rQSLT6JtIODS5O6Ynjg== X-Received: by 2002:a19:e90f:: with SMTP id g15-v6mr5949878lfh.0.1523543149587; Thu, 12 Apr 2018 07:25:49 -0700 (PDT) Received: from khorivan.synapse.com ([2001:67c:2e5c:2011::459c]) by smtp.gmail.com with ESMTPSA id h66-v6sm739669lfi.89.2018.04.12.07.25.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 12 Apr 2018 07:25:48 -0700 (PDT) From: Ivan Khoronzhuk To: grygorii.strashko@ti.com Cc: davem@davemloft.net, linux-omap@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Ivan Khoronzhuk Subject: [PATCH] net: ethernet: ti: cpsw: fix tx vlan priority mapping Date: Thu, 12 Apr 2018 17:25:40 +0300 Message-Id: <1523543140-20747-1-git-send-email-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Signed-off-by: Ivan Khoronzhuk --- Based on net/master 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) -- 2.7.4