From patchwork Thu Apr 12 14:25:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Khoronzhuk X-Patchwork-Id: 10338617 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 738E3600D0 for ; Thu, 12 Apr 2018 14:25:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5C2CD20416 for ; Thu, 12 Apr 2018 14:25:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4F9DA20499; Thu, 12 Apr 2018 14:25:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C820020416 for ; Thu, 12 Apr 2018 14:25:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752320AbeDLOZw (ORCPT ); Thu, 12 Apr 2018 10:25:52 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:41282 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752490AbeDLOZv (ORCPT ); Thu, 12 Apr 2018 10:25:51 -0400 Received: by mail-lf0-f67.google.com with SMTP id o102-v6so7979023lfg.8 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=ucmnVoKJfiW28khn+E/7svFVgDK0rqC0/uC01AvVzuW0vYluc3IKYYYYwWiLssLUfK 8VE7suQ0iHUO2GHUuXys8CpuxrnqJYOYBgsQma6nDUcP9+eElWUuHl16DBQ8LRMCXZUR r0mknJGxnzBRkLyMvJG8X3UiUUdjK+8LVSnrUzMsXfYfSo0nJrgLKbA+uWIlVG3uB4/b tjIex+7TbaYLFZ1wMj/jRXwjIoNBVw79LoE1Pw+ocYwMHR2bU8ANv8bTUYd5PChoT3ut etabRkRacNJA+1dr95aR/cSfwXw0menMoTsYD4tP7SiX+xfTYdGfg9XjDfyecCc61hMA rsnw== X-Gm-Message-State: ALQs6tDcwYuRYryz/OJZmadq8q4sEf0dyfa9iQ8QpWjquMJa4aBMV/4D 3doXu4deZUa6Fc5lbmtkn/UxFg== X-Google-Smtp-Source: AIpwx4/b9qftTZhiGXQDredTIBky1yB0wx84ryrwmqCxTQh2cUtS64NrvrQnHHOB0N+tLRLWfefU9w== 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-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Reviewed-by: Grygorii Strashko --- 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)