Commit 6310f77d authored by Maxime Chevallier's avatar Maxime Chevallier Committed by David S. Miller

net: mvpp2: cls: Rename classifer per-port functions

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: default avatarMaxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b11ffdc5
...@@ -912,12 +912,12 @@ static void mvpp2_rss_port_c2_disable(struct mvpp2_port *port) ...@@ -912,12 +912,12 @@ static void mvpp2_rss_port_c2_disable(struct mvpp2_port *port)
mvpp2_cls_c2_write(port->priv, &c2); 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); 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); mvpp2_rss_port_c2_disable(port);
} }
...@@ -1047,7 +1047,7 @@ int mvpp2_ethtool_rxfh_get(struct mvpp2_port *port, struct ethtool_rxnfc *info) ...@@ -1047,7 +1047,7 @@ int mvpp2_ethtool_rxfh_get(struct mvpp2_port *port, struct ethtool_rxnfc *info)
return 0; 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; struct mvpp2 *priv = port->priv;
int i; int i;
......
...@@ -227,11 +227,10 @@ struct mvpp2_cls_lookup_entry { ...@@ -227,11 +227,10 @@ struct mvpp2_cls_lookup_entry {
}; };
void mvpp22_rss_fill_table(struct mvpp2_port *port, u32 table); 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_port_rss_enable(struct mvpp2_port *port);
void mvpp22_port_rss_disable(struct mvpp2_port *port);
void mvpp22_rss_enable(struct mvpp2_port *port);
void mvpp22_rss_disable(struct mvpp2_port *port);
int mvpp2_ethtool_rxfh_get(struct mvpp2_port *port, struct ethtool_rxnfc *info); 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); int mvpp2_ethtool_rxfh_set(struct mvpp2_port *port, struct ethtool_rxnfc *info);
......
...@@ -3741,9 +3741,9 @@ static int mvpp2_set_features(struct net_device *dev, ...@@ -3741,9 +3741,9 @@ static int mvpp2_set_features(struct net_device *dev,
if (changed & NETIF_F_RXHASH) { if (changed & NETIF_F_RXHASH) {
if (features & NETIF_F_RXHASH) if (features & NETIF_F_RXHASH)
mvpp22_rss_enable(port); mvpp22_port_rss_enable(port);
else else
mvpp22_rss_disable(port); mvpp22_port_rss_disable(port);
} }
return 0; return 0;
...@@ -4301,7 +4301,7 @@ static int mvpp2_port_init(struct mvpp2_port *port) ...@@ -4301,7 +4301,7 @@ static int mvpp2_port_init(struct mvpp2_port *port)
mvpp2_cls_port_config(port); mvpp2_cls_port_config(port);
if (mvpp22_rss_is_supported()) if (mvpp22_rss_is_supported())
mvpp22_rss_port_init(port); mvpp22_port_rss_init(port);
/* Provide an initial Rx packet size */ /* Provide an initial Rx packet size */
port->pkt_size = MVPP2_RX_PKT_SIZE(port->dev->mtu); port->pkt_size = MVPP2_RX_PKT_SIZE(port->dev->mtu);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment