patch-2.1.31 linux/drivers/net/loopback.c

Next file: linux/drivers/net/ltpc.c
Previous file: linux/drivers/net/ibmtr.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.30/linux/drivers/net/loopback.c linux/drivers/net/loopback.c
@@ -93,7 +93,9 @@
 	skb->ip_summed = CHECKSUM_UNNECESSARY;
 #endif
 	netif_rx(skb);
-  
+
+	stats->rx_bytes+=skb->len;
+	stats->tx_bytes+=skb->len;
 	stats->rx_packets++;
 	stats->tx_packets++;
 

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