net: mvpp2: rename per-port RSS init function
mvpp22_init_rss function configures the RSS parameters for each port, so rename it accordingly. Since this function relies on classifier configuration, move its call right after the classifier config. Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
2a2f467daf
commit
e6e21c0242
|
@ -141,7 +141,7 @@ void mvpp22_rss_fill_table(struct mvpp2_port *port, u32 table)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void mvpp22_init_rss(struct mvpp2_port *port)
|
void mvpp22_rss_port_init(struct mvpp2_port *port)
|
||||||
{
|
{
|
||||||
struct mvpp2 *priv = port->priv;
|
struct mvpp2 *priv = port->priv;
|
||||||
int i;
|
int i;
|
||||||
|
|
|
@ -34,7 +34,7 @@ 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_init_rss(struct mvpp2_port *port);
|
void mvpp22_rss_port_init(struct mvpp2_port *port);
|
||||||
|
|
||||||
void mvpp2_cls_init(struct mvpp2 *priv);
|
void mvpp2_cls_init(struct mvpp2 *priv);
|
||||||
|
|
||||||
|
|
|
@ -3373,9 +3373,6 @@ static int mvpp2_open(struct net_device *dev)
|
||||||
|
|
||||||
mvpp2_start_dev(port);
|
mvpp2_start_dev(port);
|
||||||
|
|
||||||
if (mvpp22_rss_is_supported())
|
|
||||||
mvpp22_init_rss(port);
|
|
||||||
|
|
||||||
/* Start hardware statistics gathering */
|
/* Start hardware statistics gathering */
|
||||||
queue_delayed_work(priv->stats_queue, &port->stats_work,
|
queue_delayed_work(priv->stats_queue, &port->stats_work,
|
||||||
MVPP2_MIB_COUNTERS_STATS_DELAY);
|
MVPP2_MIB_COUNTERS_STATS_DELAY);
|
||||||
|
@ -4153,6 +4150,9 @@ static int mvpp2_port_init(struct mvpp2_port *port)
|
||||||
mvpp2_cls_oversize_rxq_set(port);
|
mvpp2_cls_oversize_rxq_set(port);
|
||||||
mvpp2_cls_port_config(port);
|
mvpp2_cls_port_config(port);
|
||||||
|
|
||||||
|
if (mvpp22_rss_is_supported())
|
||||||
|
mvpp22_rss_port_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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue