patch-2.4.0-test3 linux/drivers/net/sgiseeq.c

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

diff -u --recursive --new-file v2.4.0-test2/linux/drivers/net/sgiseeq.c linux/drivers/net/sgiseeq.c
@@ -326,6 +326,7 @@
 				skb->protocol = eth_type_trans(skb, dev);
 				netif_rx(skb);
 				sp->stats.rx_packets++;
+				sp->stats.rx_bytes += len;
 			} else {
 				printk ("%s: Memory squeeze, deferring packet.\n",
 					dev->name);
@@ -500,6 +501,7 @@
 	/* Setup... */
 	skblen = skb->len;
 	len = (skblen <= ETH_ZLEN) ? ETH_ZLEN : skblen;
+	sp->stats.tx_bytes += len;
 	entry = sp->tx_new;
 	td = &sp->srings.tx_desc[entry];
 
@@ -690,7 +692,7 @@
 
 int sgiseeq_probe(struct net_device *dev)
 {
-	static int initialized;
+	static int initialized = 0;
 	char *ep;
 
 	if (initialized)	/* Already initialized? */

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