Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp5092025img; Wed, 27 Mar 2019 01:47:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqz0Xka6VPR5C5QikZJAxsc6Zds24iNg940lbDjMFLGcz795pgaMUjNRERI/8MNQROBzWfvB X-Received: by 2002:a17:902:1122:: with SMTP id d31mr2597288pla.29.1553676433470; Wed, 27 Mar 2019 01:47:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553676433; cv=none; d=google.com; s=arc-20160816; b=P3pbxqEzqZG4DCtGPilR1o+T6bJavnSoKDGdIWYfCi41relY4YF87Je8qf7Znjv6gz m2Q6hjPXCtUyOmq5OoQze3Til0H1jDAMvsqTmTTJVkqpmT9YxaBVi9tto8fmUzk+ZIZw dlHKOGEYOqNU37QEnOuZPWIIui0FRt8LiqEbxTB8+QPynozuHUcIp7KZn2OoQDbzwZxA onSK/nFEHFaVQNnCJdAobdv1OqPktzp96bPzA62S6hQEcIZqV1A2wVCfss7/izPW+eGy 0bQnBIleycLX2CBYuJ2uKEkjVk2Szzv7TR/jt78X8AUIlePlGKGIG8oprb4QQ7imauSc nJOQ== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=SzAIVmuda06CzpuUJ9QFzT/Fcii99SyOt++nGlYk1f8=; b=OVW1+PkkhqDvkQp6/9wuqfaB5abCxTb7WeMAGi1U2YD7dPjGVQBbMdV1fCFzIIIB4n SkpZoqbXcIal8DOw7y57DOc6uPiUSrZDK3iZ5/VpHDvSEUT8OSzJsNzzCOGTUNxBpdqC FSvedOqSI6wTE+h+00qIOkVf1Tsoq37bJNUHGUIYYQc8JdkphCuCc/xhVnxm6AHD5PVi VH57NtoGSR5+EcRDqddHANCBR/aggMPxZS31IximjV3oAxRt663oYI51ka1ZaTdC416P SlkBi7ttSLnsXzZTRzRvbj4Z9nkEkeK0FI/Xo6vrbk+7UgcQECdOAKo32C2iZ3UXf0k7 fl/g== 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 u84si17799582pfa.134.2019.03.27.01.46.58; Wed, 27 Mar 2019 01:47:13 -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; 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 S1732159AbfC0IqA (ORCPT + 99 others); Wed, 27 Mar 2019 04:46:00 -0400 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:48891 "EHLO relay2-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732988AbfC0IpJ (ORCPT ); Wed, 27 Mar 2019 04:45:09 -0400 X-Originating-IP: 90.88.32.136 Received: from mc-bl-xps13.lan (aaubervilliers-681-1-91-136.w90-88.abo.wanadoo.fr [90.88.32.136]) (Authenticated sender: maxime.chevallier@bootlin.com) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 05E0F40017; Wed, 27 Mar 2019 08:45:04 +0000 (UTC) From: Maxime Chevallier To: davem@davemloft.net Cc: Maxime Chevallier , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Antoine Tenart , thomas.petazzoni@bootlin.com, gregory.clement@bootlin.com, miquel.raynal@bootlin.com, nadavh@marvell.com, stefanc@marvell.com, ymarkman@marvell.com, mw@semihalf.com, Russell King , linux-arm-kernel@lists.infradead.org Subject: [PATCH net-next 13/18] net: mvpp2: cls: Rename classifer per-port functions Date: Wed, 27 Mar 2019 09:44:17 +0100 Message-Id: <20190327084422.4209-14-maxime.chevallier@bootlin.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190327084422.4209-1-maxime.chevallier@bootlin.com> References: <20190327084422.4209-1-maxime.chevallier@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This commit renames some of the classifier functions to follow the naming 'mvpp2_port_*' that's used for function that act on a given port. This commit is purely cosmetic. Signed-off-by: Maxime Chevallier --- drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c | 6 +++--- drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.h | 7 +++---- drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 6 +++--- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c b/drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c index 52dc6693cf31..533919982735 100644 --- a/drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c +++ b/drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c @@ -912,12 +912,12 @@ static void mvpp2_rss_port_c2_disable(struct mvpp2_port *port) mvpp2_cls_c2_write(port->priv, &c2); } -void mvpp22_rss_enable(struct mvpp2_port *port) +void mvpp22_port_rss_enable(struct mvpp2_port *port) { mvpp2_rss_port_c2_enable(port); } -void mvpp22_rss_disable(struct mvpp2_port *port) +void mvpp22_port_rss_disable(struct mvpp2_port *port) { mvpp2_rss_port_c2_disable(port); } @@ -1047,7 +1047,7 @@ int mvpp2_ethtool_rxfh_get(struct mvpp2_port *port, struct ethtool_rxnfc *info) return 0; } -void mvpp22_rss_port_init(struct mvpp2_port *port) +void mvpp22_port_rss_init(struct mvpp2_port *port) { struct mvpp2 *priv = port->priv; int i; diff --git a/drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.h b/drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.h index fd38d80eaff1..fa588b07d182 100644 --- a/drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.h +++ b/drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.h @@ -227,11 +227,10 @@ struct mvpp2_cls_lookup_entry { }; void mvpp22_rss_fill_table(struct mvpp2_port *port, u32 table); +void mvpp22_port_rss_init(struct mvpp2_port *port); -void mvpp22_rss_port_init(struct mvpp2_port *port); - -void mvpp22_rss_enable(struct mvpp2_port *port); -void mvpp22_rss_disable(struct mvpp2_port *port); +void mvpp22_port_rss_enable(struct mvpp2_port *port); +void mvpp22_port_rss_disable(struct mvpp2_port *port); int mvpp2_ethtool_rxfh_get(struct mvpp2_port *port, struct ethtool_rxnfc *info); int mvpp2_ethtool_rxfh_set(struct mvpp2_port *port, struct ethtool_rxnfc *info); diff --git a/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c b/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c index d0644cfc5346..f128ea22b339 100644 --- a/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c +++ b/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c @@ -3741,9 +3741,9 @@ static int mvpp2_set_features(struct net_device *dev, if (changed & NETIF_F_RXHASH) { if (features & NETIF_F_RXHASH) - mvpp22_rss_enable(port); + mvpp22_port_rss_enable(port); else - mvpp22_rss_disable(port); + mvpp22_port_rss_disable(port); } return 0; @@ -4301,7 +4301,7 @@ static int mvpp2_port_init(struct mvpp2_port *port) mvpp2_cls_port_config(port); if (mvpp22_rss_is_supported()) - mvpp22_rss_port_init(port); + mvpp22_port_rss_init(port); /* Provide an initial Rx packet size */ port->pkt_size = MVPP2_RX_PKT_SIZE(port->dev->mtu); -- 2.20.1