patch-2.4.2 linux/drivers/net/znet.c

Next file: linux/drivers/parport/Config.in
Previous file: linux/drivers/net/winbond-840.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.1/linux/drivers/net/znet.c linux/drivers/net/znet.c
@@ -340,7 +340,7 @@
 			dev->name);
 	outb (CMD0_RESET, ioaddr);
 	hardware_init (dev);
-	netif_start_queue (dev);
+	netif_wake_queue (dev);
 }
 
 static int znet_send_packet(struct sk_buff *skb, struct net_device *dev)
@@ -585,7 +585,9 @@
 		  }
 		  skb->protocol=eth_type_trans(skb,dev);
 		  netif_rx(skb);
+		  dev->last_rx = jiffies;
 		  lp->stats.rx_packets++;
+		  lp->stats.rx_bytes += pkt_len;
 		}
 		zn.rx_cur = this_rfp_ptr;
 		if (zn.rx_cur >= zn.rx_end)

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