patch-2.4.2 linux/drivers/net/mace.c

Next file: linux/drivers/net/macmace.c
Previous file: linux/drivers/net/mac89x0.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.1/linux/drivers/net/mace.c linux/drivers/net/mace.c
@@ -826,9 +826,10 @@
 		skb_put(skb, nb);
 		skb->dev = dev;
 		skb->protocol = eth_type_trans(skb, dev);
+		mp->stats.rx_bytes += skb->len;
 		netif_rx(skb);
+		dev->last_rx = jiffies;
 		mp->rx_bufs[i] = 0;
-		mp->stats.rx_bytes += skb->len;
 		++mp->stats.rx_packets;
 	    }
 	} else {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)