patch-2.1.31 linux/drivers/net/3c509.c
Next file: linux/drivers/net/3c523.c
Previous file: linux/drivers/net/3c507.c
Back to the patch index
Back to the overall index
- Lines: 10
- Date:
Mon Mar 31 12:52:29 1997
- Orig file:
v2.1.30/linux/drivers/net/3c509.c
- Orig date:
Thu Mar 27 14:40:03 1997
diff -u --recursive --new-file v2.1.30/linux/drivers/net/3c509.c linux/drivers/net/3c509.c
@@ -667,7 +667,9 @@
skb->protocol=eth_type_trans(skb,dev);
netif_rx(skb);
outw(RxDiscard, ioaddr + EL3_CMD); /* Pop top Rx packet. */
+ lp->stats.rx_bytes+=skb->len;
lp->stats.rx_packets++;
+ lp->stats.rx_bytes+=pkt_len;
continue;
} else if (el3_debug)
printk("%s: Couldn't allocate a sk_buff of size %d.\n",
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov