patch-2.2.0-pre5 linux/drivers/net/sdla_ppp.c

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

diff -u --recursive --new-file v2.2.0-pre4/linux/drivers/net/sdla_ppp.c linux/drivers/net/sdla_ppp.c
@@ -698,6 +698,7 @@
 		} else {
 			++ppp_priv_area->if_send_bfr_passed_to_adptr;
 			++card->wandev.stats.tx_packets;
+			card->wandev.stats.tx_bytes += skb->len;
 		}
 	}
 tx_done:
@@ -1202,6 +1203,7 @@
 				skb->mac.raw = skb->data;
 				netif_rx(skb);
 				++card->wandev.stats.rx_packets;
+ 				card->wandev.stats.rx_bytes += skb->len;
 				++ppp_priv_area->rx_intr_bfr_passed_to_stack;
 			}
 		} else {

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