aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/myri10ge/myri10ge.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/myri10ge/myri10ge.c b/drivers/net/myri10ge/myri10ge.c
index c9a9aca43675..d317011aa56a 100644
--- a/drivers/net/myri10ge/myri10ge.c
+++ b/drivers/net/myri10ge/myri10ge.c
@@ -1422,6 +1422,7 @@ myri10ge_clean_rx_done(struct myri10ge_slice_state *ss, int budget)
1422{ 1422{
1423 struct myri10ge_rx_done *rx_done = &ss->rx_done; 1423 struct myri10ge_rx_done *rx_done = &ss->rx_done;
1424 struct myri10ge_priv *mgp = ss->mgp; 1424 struct myri10ge_priv *mgp = ss->mgp;
1425 struct net_device *netdev = mgp->dev;
1425 unsigned long rx_bytes = 0; 1426 unsigned long rx_bytes = 0;
1426 unsigned long rx_packets = 0; 1427 unsigned long rx_packets = 0;
1427 unsigned long rx_ok; 1428 unsigned long rx_ok;
@@ -1455,7 +1456,7 @@ myri10ge_clean_rx_done(struct myri10ge_slice_state *ss, int budget)
1455 ss->stats.rx_packets += rx_packets; 1456 ss->stats.rx_packets += rx_packets;
1456 ss->stats.rx_bytes += rx_bytes; 1457 ss->stats.rx_bytes += rx_bytes;
1457 1458
1458 if (myri10ge_lro) 1459 if (netdev->features & NETIF_F_LRO)
1459 lro_flush_all(&rx_done->lro_mgr); 1460 lro_flush_all(&rx_done->lro_mgr);
1460 1461
1461 /* restock receive rings if needed */ 1462 /* restock receive rings if needed */