patch-1.3.60 linux/drivers/net/arcnet.c

Next file: linux/drivers/net/eql.c
Previous file: linux/drivers/net/3c509.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.59/linux/drivers/net/arcnet.c linux/drivers/net/arcnet.c
@@ -968,7 +968,8 @@
 }
 
 
-/* Setup a struct device for ARCnet.  This should really be in net_init.c
+/*
+ * Setup a struct device for ARCnet.  This should really be in net_init.c
  * but since there are three different ARCnet devices ANYWAY... <gargle>
  *
  * Actually, the whole idea of having all this kernel-dependent stuff (ie.
@@ -976,23 +977,25 @@
  *
  * Intelligent defaults?!  Nah.
  */
+
 void arcnet_setup(struct device *dev)
 {
 	int i;
 	for (i=0; i<DEV_NUMBUFFS; i++)
 		skb_queue_head_init(&dev->buffs[i]);
 
-	dev->broadcast[0]=0x00;	/* broadcasts on ARCnet are address 0 */
-	dev->addr_len=1;
-	dev->type=ARPHRD_ARCNET;
+	dev->broadcast[0]	= 0x00;	/* broadcasts on ARCnet are address 0 */
+	dev->addr_len		= 1;
+	dev->type		= ARPHRD_ARCNET;
+	dev->tx_queue_len 	= 30;	/* Fairly long queue, arcnet is quite speedy */
 
 	/* New-style flags. */
-	dev->flags	= IFF_BROADCAST;
-	dev->family	= AF_INET;
-	dev->pa_addr	= 0;
-	dev->pa_brdaddr = 0;
-	dev->pa_mask	= 0;
-	dev->pa_alen	= 4;
+	dev->flags		= IFF_BROADCAST;
+	dev->family		= AF_INET;
+	dev->pa_addr		= 0;
+	dev->pa_brdaddr 	= 0;
+	dev->pa_mask		= 0;
+	dev->pa_alen		= 4;
 }
 
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this