Received: by 10.223.185.116 with SMTP id b49csp3994698wrg; Mon, 19 Feb 2018 09:14:07 -0800 (PST) X-Google-Smtp-Source: AH8x226qy96Ez6mEstEcumWfR05eC1ceQ/vrLAx7kZK14GiDUMq5pXHwA2Vhy0O/LqwjcEeD5c+r X-Received: by 2002:a17:902:4c88:: with SMTP id b8-v6mr14945554ple.233.1519060447419; Mon, 19 Feb 2018 09:14:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519060447; cv=none; d=google.com; s=arc-20160816; b=XdWHAh3fzsV/GOTc6Cfsua1uZK4yiYd/OGv5+4p38nQKMiYXjhlAdR/ALr23/KYmnK yYhOuQ0eazgAs1gxSA6wo+A571MOO8LrkdpnX9ah4NQ+KanYsryHOolw6T3aJKnK3z30 xdAThNi+iQGf8uZIFIECQM5E1QhuG5a7em6Mg0FofvMi2i12ze0wxygq7Q4RH5owtAGg eTC/lV5RMNCM3/knTP1OfkOdiAaNEusHhOnVakyzbP1E/XOZnDRC3U28rabYjnC152Ah a4XwZ6kjhAlW2vEBtOYgSTrecDlD4U5rkK2ZEfLLhQvoq6C6etFwBqUd4EXeLi0eGyRl XEFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=+O55nSD1dxhaC7ULXqYKaKxqHqwZVN2cRlkASHzs0b4=; b=KKv/yvfDsjVRokbZJwiZRz6Y1549rUuhxb+9WgRjGskcSa/aKSf1FIVfUGabyM2otv 2zG2dsCvXbC4bN6TzQwdPmyOpPsvYkWPrk8OzXEKeWy4t6Oa3FW/YeYSddH6wv4tyet6 oXiOmp3Qw7WicHOAPHoM7hEEsh6jCGn/pWp5QEfBtgVw06JMEFVGQhFO1q11t7F+0G/Q fxhR3Zls8wcCAYJAzcSTcaerhT8oH8MOWmzY7PTTys4t6ysucN/c2nM5iGY09475kZcp W3GGm+g24LNaagWQjbPa1BludxkTCJpDTzw0l+Ng46EfISKIFcVaa7vYT0w21UAPU+iw 2Epg== 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 m68si5507838pgm.88.2018.02.19.09.13.53; Mon, 19 Feb 2018 09:14:07 -0800 (PST) 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 S1753579AbeBSRLs (ORCPT + 99 others); Mon, 19 Feb 2018 12:11:48 -0500 Received: from bastet.se.axis.com ([195.60.68.11]:38874 "EHLO bastet.se.axis.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753220AbeBSRLp (ORCPT ); Mon, 19 Feb 2018 12:11:45 -0500 Received: from localhost (localhost [127.0.0.1]) by bastet.se.axis.com (Postfix) with ESMTP id 32D0418330; Mon, 19 Feb 2018 18:11:44 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at bastet.se.axis.com Received: from bastet.se.axis.com ([IPv6:::ffff:127.0.0.1]) by localhost (bastet.se.axis.com [::ffff:127.0.0.1]) (amavisd-new, port 10024) with LMTP id aY9Jii35PxRz; Mon, 19 Feb 2018 18:11:42 +0100 (CET) Received: from boulder02.se.axis.com (boulder02.se.axis.com [10.0.8.16]) by bastet.se.axis.com (Postfix) with ESMTPS id C48E1180E6; Mon, 19 Feb 2018 18:11:42 +0100 (CET) Received: from boulder02.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B36891A07C; Mon, 19 Feb 2018 18:11:42 +0100 (CET) Received: from boulder02.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A6D881A07B; Mon, 19 Feb 2018 18:11:42 +0100 (CET) Received: from seth.se.axis.com (unknown [10.0.2.172]) by boulder02.se.axis.com (Postfix) with ESMTP; Mon, 19 Feb 2018 18:11:42 +0100 (CET) Received: from lnxartpec1.se.axis.com (lnxartpec1.se.axis.com [10.88.4.10]) by seth.se.axis.com (Postfix) with ESMTP id 9B0B21A5E; Mon, 19 Feb 2018 18:11:42 +0100 (CET) Received: by lnxartpec1.se.axis.com (Postfix, from userid 20283) id 97602401B8; Mon, 19 Feb 2018 18:11:42 +0100 (CET) From: Niklas Cassel To: Giuseppe Cavallaro , Alexandre Torgue Cc: Jose.Abreu@synopsys.com, vbhadram@nvidia.com, Niklas Cassel , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next 4/7] net: stmmac: rename dwmac4_tx_queue_routing() to match reality Date: Mon, 19 Feb 2018 18:11:12 +0100 Message-Id: <20180219171116.15326-5-niklas.cassel@axis.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180219171116.15326-1-niklas.cassel@axis.com> References: <20180219171116.15326-1-niklas.cassel@axis.com> X-TM-AS-GCONF: 00 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Looking at dwmac4_tx_queue_routing(), it is obvious that it sets up rx queue routing. Rename dwmac4_tx_queue_routing() to dwmac4_rx_queue_routing() to better match reality. Fixes: abe80fdc6ee6 ("net: stmmac: RX queue routing configuration") Signed-off-by: Niklas Cassel --- drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c b/drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c index 63795ecafc8d..46b9ae20ff6c 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c @@ -120,7 +120,7 @@ static void dwmac4_tx_queue_priority(struct mac_device_info *hw, writel(value, ioaddr + base_register); } -static void dwmac4_tx_queue_routing(struct mac_device_info *hw, +static void dwmac4_rx_queue_routing(struct mac_device_info *hw, u8 packet, u32 queue) { void __iomem *ioaddr = hw->pcsr; @@ -713,7 +713,7 @@ static const struct stmmac_ops dwmac4_ops = { .rx_queue_enable = dwmac4_rx_queue_enable, .rx_queue_prio = dwmac4_rx_queue_priority, .tx_queue_prio = dwmac4_tx_queue_priority, - .rx_queue_routing = dwmac4_tx_queue_routing, + .rx_queue_routing = dwmac4_rx_queue_routing, .prog_mtl_rx_algorithms = dwmac4_prog_mtl_rx_algorithms, .prog_mtl_tx_algorithms = dwmac4_prog_mtl_tx_algorithms, .set_mtl_tx_queue_weight = dwmac4_set_mtl_tx_queue_weight, @@ -744,7 +744,7 @@ static const struct stmmac_ops dwmac410_ops = { .rx_queue_enable = dwmac4_rx_queue_enable, .rx_queue_prio = dwmac4_rx_queue_priority, .tx_queue_prio = dwmac4_tx_queue_priority, - .rx_queue_routing = dwmac4_tx_queue_routing, + .rx_queue_routing = dwmac4_rx_queue_routing, .prog_mtl_rx_algorithms = dwmac4_prog_mtl_rx_algorithms, .prog_mtl_tx_algorithms = dwmac4_prog_mtl_tx_algorithms, .set_mtl_tx_queue_weight = dwmac4_set_mtl_tx_queue_weight, -- 2.14.2