patch-2.4.3 linux/drivers/net/wan/sbni.c

Next file: linux/drivers/net/wan/sdla_chdlc.c
Previous file: linux/drivers/net/wan/n2.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.2/linux/drivers/net/wan/sbni.c linux/drivers/net/wan/sbni.c
@@ -283,7 +283,7 @@
 	struct net_device *dev = neigh->dev;
   
   
-	if (type == __constant_htons(ETH_P_802_3))
+	if (type == htons(ETH_P_802_3))
 		return -1;
   
 	sbni->h_proto = type;
@@ -742,7 +742,7 @@
 					 */
 					DP( printk("%s: sbni_recv SendComplete\n",dev->name); );
 					/*
-					 *	We sucessfully sent current packet
+					 *	We successfully sent current packet
 					 */
 	      
 					if(lp->waitack)
@@ -1014,6 +1014,8 @@
 
 		skb_pull(skb,SBNI_HH_SZ);
    
+		skb->dev->last_rx = jiffies;
+		lp->stats.rx_bytes += skb->len;
 		netif_rx(skb);
 		lp->stats.rx_packets++;
 	}
@@ -1148,7 +1150,7 @@
 	lp->waitack=0;
 	netif_wake_queue(dev);
 	
-	DP( printk("%s: queue dropping stoped\n",dev->name); );	
+	DP( printk("%s: queue dropping stopped\n",dev->name); );	
 }
 
 /*

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