We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 567b12f commit 2eb85b7Copy full SHA for 2eb85b7
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
@@ -3829,10 +3829,6 @@ static int __stmmac_open(struct net_device *dev,
3829
}
3830
3831
3832
- /* Extra statistics */
3833
- memset(&priv->xstats, 0, sizeof(struct stmmac_extra_stats));
3834
- priv->xstats.threshold = tc;
3835
-
3836
priv->rx_copybreak = STMMAC_RX_COPYBREAK;
3837
3838
buf_sz = dma_conf->dma_buf_sz;
@@ -7322,6 +7318,8 @@ int stmmac_dvr_probe(struct device *device,
7322
7318
#endif
7323
7319
priv->msg_enable = netif_msg_init(debug, default_msg_level);
7324
7320
7321
+ priv->xstats.threshold = tc;
+
7325
/* Initialize RSS */
7326
rxq = priv->plat->rx_queues_to_use;
7327
netdev_rss_key_fill(priv->rss.key, sizeof(priv->rss.key));
0 commit comments