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: 133298 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp1741422ljb; Thu, 12 Apr 2018 07:25:55 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/yvFd+7OYWSt8KQgQy5KU9n6+KfwOzcuBKs6/8qGz2ary0iQsyb0tkJrmbQD2UjtGNwLS7 X-Received: by 2002:a17:902:da4:: with SMTP id 33-v6mr1287308plv.52.1523543155169; Thu, 12 Apr 2018 07:25:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523543155; cv=none; d=google.com; s=arc-20160816; b=lqWb59FMdMGw9rx5UVWahaxHoGHGXdNUAWF36tSFBkx/zbTdm1s8loVR59blqOPlAH BtNPP3ELZ83vYeasptuzq/mK1OkiXXCgD8Rx1hknqRO7ic7ZiKaKNGtN7Edbhvxj33mm LIqRUf3ozQaoRZf4JzHESFOlDpqFrsrUTw5TLruUf5U6ET8HWbOKSHhnU8faCpIZzO6n OOzRkzidlxqWgqUqurPG7FBJD2U40wL6/QeZerPm7+3qdMm336NBIeM4RV0w6gEUNp0l 6lwfgQjjeFI0Goj+SlTyFcT4h96aTJ/azMrz26xpT0LQ5vxSPIYFwWSqW+/OXaH0+OKk y0Pw== 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=c2LMMA+SezRCjkzus/VgLJGWRT9QBSINUnsm+IbndKE=; b=E+17pfLtWnHRWPn7XhiHAuq84dlYF9a95qfPmxOaBV3yqgZo2A8fOWmUXWEiCt3Gr0 03cJgp3+RUPjpC/59ewm0r9UdJBNe1LCTS7EsQoX1ARQl3y9ZiD+PwyB4liRfL4WQf/e Xf8FXDsTxDE6Aq8ifJ7Yvgcc37WpQIVNHaj7qyPzIA9nY9jpKqpM5D4UOKlEAnfklqzX BspsbZGrOttcEXjtKibc/LCOeSI4V+8oLM70ffEU9ilmRbT1IEwp4s4lrM397CdqBnuj dtwyP7QV1/A57X4aKZAxnqbIfbAILiL7DSmAgYylIEyi8RS1R5xRJWe7215Di5DU28gk mSRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=LSsOUvlF; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org; dmarc=fail (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 6si2328598pgf.33.2018.04.12.07.25.54; Thu, 12 Apr 2018 07:25:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=LSsOUvlF; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752320AbeDLOZw (ORCPT + 5 others); 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-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 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(-) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Reviewed-by: Grygorii Strashko 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)