summaryrefslogtreecommitdiff
path: root/sys/dev/isa
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2001-07-08 23:38:09 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2001-07-08 23:38:09 +0000
commitb0d62f130faaba54cee526972c751ffcc5ae1aa4 (patch)
tree5a50d84ce31afba96ee060d5af126daf66eddd57 /sys/dev/isa
parentc7e17867401a13de39348e78559e0255562049bf (diff)
Don't set up ifq_maxlen manually for drivers that uses IFQ_MAXLEN
(or ifqmaxlen); it's done in if_attach() now. No future drivers needs to set up this anymore unless they want to use something else.
Diffstat (limited to 'sys/dev/isa')
-rw-r--r--sys/dev/isa/if_ed.c4
-rw-r--r--sys/dev/isa/if_fe.c17
2 files changed, 2 insertions, 19 deletions
diff --git a/sys/dev/isa/if_ed.c b/sys/dev/isa/if_ed.c
index 5b4d8d9b2f9..86b5e04cc74 100644
--- a/sys/dev/isa/if_ed.c
+++ b/sys/dev/isa/if_ed.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ed.c,v 1.45 2001/06/27 06:34:44 kjc Exp $ */
+/* $OpenBSD: if_ed.c,v 1.46 2001/07/08 23:38:07 fgsch Exp $ */
/* $NetBSD: if_ed.c,v 1.105 1996/10/21 22:40:45 thorpej Exp $ */
/*
@@ -198,7 +198,6 @@ ed_pcmcia_isa_attach(parent, match, aux, pc_link)
struct isa_attach_args *ia = aux;
struct pcmciadevs *dev=pc_link->device;
int err;
- extern int ifqmaxlen;
u_char enaddr[ETHER_ADDR_LEN];
if ((int)dev->param != -1)
@@ -230,7 +229,6 @@ ed_pcmcia_isa_attach(parent, match, aux, pc_link)
/* clear ED_NOTPRESENT, set ED_REATTACH if needed */
sc->spec_flags=pc_link->flags&PCMCIA_REATTACH?ED_REATTACH:0;
sc->type_str = dev->model;
- IFQ_SET_MAXLEN(&sc->sc_arpcom.ac_if.if_snd, ifqmaxlen);
sc->sc_ic = ia->ia_ic;
return 1;
} else
diff --git a/sys/dev/isa/if_fe.c b/sys/dev/isa/if_fe.c
index 688345e7d9e..fb643a4a5e0 100644
--- a/sys/dev/isa/if_fe.c
+++ b/sys/dev/isa/if_fe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_fe.c,v 1.16 2001/06/27 06:34:46 kjc Exp $ */
+/* $OpenBSD: if_fe.c,v 1.17 2001/07/08 23:38:07 fgsch Exp $ */
/*
* All Rights Reserved, Copyright (C) Fujitsu Limited 1995
@@ -1001,21 +1001,6 @@ feattach(parent, self, aux)
IFF_BROADCAST | IFF_SIMPLEX | IFF_NOTRAILERS | IFF_MULTICAST;
IFQ_SET_READY(&ifp->if_snd);
- /*
- * Set maximum size of output queue, if it has not been set.
- * It is done here as this driver may be started after the
- * system intialization (i.e., the interface is PCMCIA.)
- *
- * I'm not sure this is really necessary, but, even if it is,
- * it should be done somewhere else, e.g., in if_attach(),
- * since it must be a common workaround for all network drivers.
- * FIXME.
- */
- if (ifp->if_snd.ifq_maxlen == 0) {
- extern int ifqmaxlen; /* Don't be so shocked... */
- ifp->if_snd.ifq_maxlen = ifqmaxlen;
- }
-
#if FE_DEBUG >= 3
log(LOG_INFO, "%s: feattach()\n", sc->sc_dev.dv_xname);
fe_dump(LOG_INFO, sc);