patch-2.1.38 linux/drivers/net/sunhme.c

Next file: linux/drivers/net/sunlance.c
Previous file: linux/drivers/char/mem.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.37/linux/drivers/net/sunhme.c linux/drivers/net/sunhme.c
@@ -1673,6 +1673,7 @@
 		netif_rx(skb);
 
 		hp->net_stats.rx_packets++;
+		hp->net_stats.rx_bytes+=len;
 	next:
 		elem = NEXT_RX(elem);
 		this = &rxbase[elem];
@@ -1729,6 +1730,7 @@
 				skb->protocol = eth_type_trans(skb, dev);
 				netif_rx(skb);
 				hp->net_stats.rx_packets++;
+				hp->net_stats.rx_bytes+=len;
 			}
 		}
 		/* Return the buffer to the Happy Meal. */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov