diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2016-04-13 10:49:27 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2016-04-13 10:49:27 +0000 |
commit | ef0925595b543d85814fc9436af640e6edb96cea (patch) | |
tree | 5c5411e64bf8dfa524687ad437270a8bbf2b7c5f /sys | |
parent | 6fd9397ba8c52cbd631cfc9805284da0916c3bf3 (diff) |
G/C IFQ_SET_READY().
Diffstat (limited to 'sys')
39 files changed, 39 insertions, 79 deletions
diff --git a/sys/dev/ic/acx.c b/sys/dev/ic/acx.c index ec24038e630..991a820238c 100644 --- a/sys/dev/ic/acx.c +++ b/sys/dev/ic/acx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acx.c,v 1.117 2015/11/25 03:09:58 dlg Exp $ */ +/* $OpenBSD: acx.c,v 1.118 2016/04/13 10:49:26 mpi Exp $ */ /* * Copyright (c) 2006 Jonathan Gray <jsg@openbsd.org> @@ -285,7 +285,6 @@ acx_attach(struct acx_softc *sc) ifp->if_flags = IFF_SIMPLEX | IFF_BROADCAST | IFF_MULTICAST; strlcpy(ifp->if_xname, sc->sc_dev.dv_xname, IFNAMSIZ); IFQ_SET_MAXLEN(&ifp->if_snd, IFQ_MAXLEN); - IFQ_SET_READY(&ifp->if_snd); /* Set channels */ for (i = 1; i <= 14; ++i) { diff --git a/sys/dev/ic/aic6915.c b/sys/dev/ic/aic6915.c index 3b466c7948d..72b2c86a258 100644 --- a/sys/dev/ic/aic6915.c +++ b/sys/dev/ic/aic6915.c @@ -1,4 +1,4 @@ -/* $OpenBSD: aic6915.c,v 1.20 2015/11/25 03:09:58 dlg Exp $ */ +/* $OpenBSD: aic6915.c,v 1.21 2016/04/13 10:49:26 mpi Exp $ */ /* $NetBSD: aic6915.c,v 1.15 2005/12/24 20:27:29 perry Exp $ */ /*- @@ -290,7 +290,6 @@ sf_attach(struct sf_softc *sc) ifp->if_start = sf_start; ifp->if_watchdog = sf_watchdog; IFQ_SET_MAXLEN(&ifp->if_snd, SF_NTXDESC_MASK); - IFQ_SET_READY(&ifp->if_snd); /* * Attach the interface. diff --git a/sys/dev/ic/an.c b/sys/dev/ic/an.c index e32333a02c2..58862f8fd47 100644 --- a/sys/dev/ic/an.c +++ b/sys/dev/ic/an.c @@ -1,4 +1,4 @@ -/* $OpenBSD: an.c,v 1.70 2015/11/25 03:09:58 dlg Exp $ */ +/* $OpenBSD: an.c,v 1.71 2016/04/13 10:49:26 mpi Exp $ */ /* $NetBSD: an.c,v 1.34 2005/06/20 02:49:18 atatat Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -266,7 +266,6 @@ an_attach(struct an_softc *sc) ifp->if_ioctl = an_ioctl; ifp->if_start = an_start; ifp->if_watchdog = an_watchdog; - IFQ_SET_READY(&ifp->if_snd); ic->ic_phytype = IEEE80211_T_DS; ic->ic_opmode = IEEE80211_M_STA; diff --git a/sys/dev/ic/ath.c b/sys/dev/ic/ath.c index 38ea26ae835..71f10cf6e2b 100644 --- a/sys/dev/ic/ath.c +++ b/sys/dev/ic/ath.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ath.c,v 1.110 2016/01/12 09:28:09 stsp Exp $ */ +/* $OpenBSD: ath.c,v 1.111 2016/04/13 10:49:26 mpi Exp $ */ /* $NetBSD: ath.c,v 1.37 2004/08/18 21:59:39 dyoung Exp $ */ /*- @@ -357,7 +357,6 @@ ath_attach(u_int16_t devid, struct ath_softc *sc) ifp->if_stop = ath_stop; /* XXX */ #endif IFQ_SET_MAXLEN(&ifp->if_snd, ATH_TXBUF * ATH_TXDESC); - IFQ_SET_READY(&ifp->if_snd); ic->ic_softc = sc; ic->ic_newassoc = ath_newassoc; diff --git a/sys/dev/ic/athn.c b/sys/dev/ic/athn.c index 03460ef830e..ad6ccd38170 100644 --- a/sys/dev/ic/athn.c +++ b/sys/dev/ic/athn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: athn.c,v 1.92 2016/01/05 18:41:15 stsp Exp $ */ +/* $OpenBSD: athn.c,v 1.93 2016/04/13 10:49:26 mpi Exp $ */ /*- * Copyright (c) 2009 Damien Bergamini <damien.bergamini@free.fr> @@ -341,7 +341,6 @@ athn_attach(struct athn_softc *sc) ifp->if_ioctl = athn_ioctl; ifp->if_start = athn_start; ifp->if_watchdog = athn_watchdog; - IFQ_SET_READY(&ifp->if_snd); memcpy(ifp->if_xname, sc->sc_dev.dv_xname, IFNAMSIZ); if_attach(ifp); diff --git a/sys/dev/ic/atw.c b/sys/dev/ic/atw.c index 800e11a854b..43feecbe846 100644 --- a/sys/dev/ic/atw.c +++ b/sys/dev/ic/atw.c @@ -1,4 +1,4 @@ -/* $OpenBSD: atw.c,v 1.93 2016/03/15 20:50:22 krw Exp $ */ +/* $OpenBSD: atw.c,v 1.94 2016/04/13 10:49:26 mpi Exp $ */ /* $NetBSD: atw.c,v 1.69 2004/07/23 07:07:55 dyoung Exp $ */ /*- @@ -790,7 +790,6 @@ atw_attach(struct atw_softc *sc) ifp->if_ioctl = atw_ioctl; ifp->if_start = atw_start; ifp->if_watchdog = atw_watchdog; - IFQ_SET_READY(&ifp->if_snd); ic->ic_phytype = IEEE80211_T_DS; ic->ic_opmode = IEEE80211_M_STA; diff --git a/sys/dev/ic/bwi.c b/sys/dev/ic/bwi.c index d612db39d38..6c8a3e5be3a 100644 --- a/sys/dev/ic/bwi.c +++ b/sys/dev/ic/bwi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bwi.c,v 1.122 2015/11/25 03:09:58 dlg Exp $ */ +/* $OpenBSD: bwi.c,v 1.123 2016/04/13 10:49:26 mpi Exp $ */ /* * Copyright (c) 2007 The DragonFly Project. All rights reserved. @@ -791,7 +791,6 @@ bwi_attach(struct bwi_softc *sc) ifp->if_flags = IFF_SIMPLEX | IFF_BROADCAST | IFF_MULTICAST; strlcpy(ifp->if_xname, sc->sc_dev.dv_xname, IFNAMSIZ); IFQ_SET_MAXLEN(&ifp->if_snd, IFQ_MAXLEN); - IFQ_SET_READY(&ifp->if_snd); /* Get locale */ sc->sc_locale = __SHIFTOUT(bwi_read_sprom(sc, BWI_SPROM_CARD_INFO), diff --git a/sys/dev/ic/dc.c b/sys/dev/ic/dc.c index deb3d87137f..d68af6ace33 100644 --- a/sys/dev/ic/dc.c +++ b/sys/dev/ic/dc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dc.c,v 1.149 2015/11/28 22:57:43 dlg Exp $ */ +/* $OpenBSD: dc.c,v 1.150 2016/04/13 10:49:26 mpi Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -1687,7 +1687,6 @@ hasmac: ifp->if_start = dc_start; ifp->if_watchdog = dc_watchdog; IFQ_SET_MAXLEN(&ifp->if_snd, DC_TX_LIST_CNT - 1); - IFQ_SET_READY(&ifp->if_snd); bcopy(sc->sc_dev.dv_xname, ifp->if_xname, IFNAMSIZ); ifp->if_capabilities = IFCAP_VLAN_MTU; diff --git a/sys/dev/ic/dp8390.c b/sys/dev/ic/dp8390.c index 0d44b6da31d..64884e85115 100644 --- a/sys/dev/ic/dp8390.c +++ b/sys/dev/ic/dp8390.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dp8390.c,v 1.59 2015/12/08 13:34:22 tedu Exp $ */ +/* $OpenBSD: dp8390.c,v 1.60 2016/04/13 10:49:26 mpi Exp $ */ /* $NetBSD: dp8390.c,v 1.13 1998/07/05 06:49:11 jonathan Exp $ */ /* @@ -116,7 +116,6 @@ dp8390_config(struct dp8390_softc *sc) ifp->if_watchdog = dp8390_watchdog; ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; - IFQ_SET_READY(&ifp->if_snd); ifp->if_capabilities = IFCAP_VLAN_MTU; diff --git a/sys/dev/ic/elink3.c b/sys/dev/ic/elink3.c index ee33a4daf8f..08836a751ce 100644 --- a/sys/dev/ic/elink3.c +++ b/sys/dev/ic/elink3.c @@ -1,4 +1,4 @@ -/* $OpenBSD: elink3.c,v 1.93 2015/12/08 13:34:22 tedu Exp $ */ +/* $OpenBSD: elink3.c,v 1.94 2016/04/13 10:49:26 mpi Exp $ */ /* $NetBSD: elink3.c,v 1.32 1997/05/14 00:22:00 thorpej Exp $ */ /* @@ -335,7 +335,6 @@ epconfig(struct ep_softc *sc, u_short chipset, u_int8_t *enaddr) IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; /* 64 packets are around 100ms on 10Mbps */ IFQ_SET_MAXLEN(&ifp->if_snd, 64); - IFQ_SET_READY(&ifp->if_snd); if_attach(ifp); ether_ifattach(ifp); diff --git a/sys/dev/ic/fxp.c b/sys/dev/ic/fxp.c index 4821af2bae5..c3948bea5f5 100644 --- a/sys/dev/ic/fxp.c +++ b/sys/dev/ic/fxp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fxp.c,v 1.129 2015/12/03 08:29:35 claudio Exp $ */ +/* $OpenBSD: fxp.c,v 1.130 2016/04/13 10:49:26 mpi Exp $ */ /* $NetBSD: if_fxp.c,v 1.2 1997/06/05 02:01:55 thorpej Exp $ */ /* @@ -430,7 +430,6 @@ fxp_attach(struct fxp_softc *sc, const char *intrstr) ifp->if_start = fxp_start; ifp->if_watchdog = fxp_watchdog; IFQ_SET_MAXLEN(&ifp->if_snd, FXP_NTXCB - 1); - IFQ_SET_READY(&ifp->if_snd); ifp->if_capabilities = IFCAP_VLAN_MTU; diff --git a/sys/dev/ic/gem.c b/sys/dev/ic/gem.c index a1277d164a6..8f5e70e3213 100644 --- a/sys/dev/ic/gem.c +++ b/sys/dev/ic/gem.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gem.c,v 1.119 2015/12/08 13:34:22 tedu Exp $ */ +/* $OpenBSD: gem.c,v 1.120 2016/04/13 10:49:26 mpi Exp $ */ /* $NetBSD: gem.c,v 1.1 2001/09/16 00:11:43 eeh Exp $ */ /* @@ -223,7 +223,6 @@ gem_config(struct gem_softc *sc) ifp->if_ioctl = gem_ioctl; ifp->if_watchdog = gem_watchdog; IFQ_SET_MAXLEN(&ifp->if_snd, GEM_NTXDESC - 1); - IFQ_SET_READY(&ifp->if_snd); ifp->if_capabilities = IFCAP_VLAN_MTU; diff --git a/sys/dev/ic/hme.c b/sys/dev/ic/hme.c index caff8aad9e0..cc6137654d7 100644 --- a/sys/dev/ic/hme.c +++ b/sys/dev/ic/hme.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hme.c,v 1.79 2015/12/08 13:34:22 tedu Exp $ */ +/* $OpenBSD: hme.c,v 1.80 2016/04/13 10:49:26 mpi Exp $ */ /* $NetBSD: hme.c,v 1.21 2001/07/07 15:59:37 thorpej Exp $ */ /*- @@ -216,7 +216,6 @@ hme_config(struct hme_softc *sc) ifp->if_watchdog = hme_watchdog; ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; - IFQ_SET_READY(&ifp->if_snd); ifp->if_capabilities = IFCAP_VLAN_MTU; /* Initialize ifmedia structures and MII info */ diff --git a/sys/dev/ic/i82596.c b/sys/dev/ic/i82596.c index d97deeab057..29c0f1c2947 100644 --- a/sys/dev/ic/i82596.c +++ b/sys/dev/ic/i82596.c @@ -1,4 +1,4 @@ -/* $OpenBSD: i82596.c,v 1.51 2016/03/14 23:08:05 krw Exp $ */ +/* $OpenBSD: i82596.c,v 1.52 2016/04/13 10:49:26 mpi Exp $ */ /* $NetBSD: i82586.c,v 1.18 1998/08/15 04:42:42 mycroft Exp $ */ /*- @@ -291,7 +291,6 @@ i82596_attach(struct ie_softc *sc, const char *name, u_int8_t *etheraddr, IFF_DEBUG | #endif IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; - IFQ_SET_READY(&ifp->if_snd); /* Initialize media goo. */ ifmedia_init(&sc->sc_media, 0, i82596_mediachange, i82596_mediastatus); diff --git a/sys/dev/ic/if_wi.c b/sys/dev/ic/if_wi.c index 13374509c1f..adee6ffca2e 100644 --- a/sys/dev/ic/if_wi.c +++ b/sys/dev/ic/if_wi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_wi.c,v 1.165 2015/11/25 03:09:58 dlg Exp $ */ +/* $OpenBSD: if_wi.c,v 1.166 2016/04/13 10:49:26 mpi Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -228,7 +228,6 @@ wi_attach(struct wi_softc *sc, struct wi_funcs *funcs) ifp->if_ioctl = funcs->f_ioctl; ifp->if_start = funcs->f_start; ifp->if_watchdog = funcs->f_watchdog; - IFQ_SET_READY(&ifp->if_snd); (void)wi_set_ssid(&sc->wi_node_name, WI_DEFAULT_NODENAME, sizeof(WI_DEFAULT_NODENAME) - 1); diff --git a/sys/dev/ic/lance.c b/sys/dev/ic/lance.c index e78b8c3c742..28f999be533 100644 --- a/sys/dev/ic/lance.c +++ b/sys/dev/ic/lance.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lance.c,v 1.12 2015/12/17 19:26:28 mmcc Exp $ */ +/* $OpenBSD: lance.c,v 1.13 2016/04/13 10:49:26 mpi Exp $ */ /* $NetBSD: lance.c,v 1.46 2012/02/02 19:43:03 tls Exp $ */ /*- @@ -180,7 +180,6 @@ lance_config(struct lance_softc *sc) ifp->if_flags &= ~IFF_MULTICAST; #endif ifp->if_baudrate = IF_Mbps(10); - IFQ_SET_READY(&ifp->if_snd); /* Initialize ifmedia structures. */ ifmedia_init(&sc->sc_ifmedia, 0, lance_mediachange, lance_mediastatus); diff --git a/sys/dev/ic/lemac.c b/sys/dev/ic/lemac.c index 461d42a1a1b..49a96de9706 100644 --- a/sys/dev/ic/lemac.c +++ b/sys/dev/ic/lemac.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lemac.c,v 1.28 2015/12/08 13:34:22 tedu Exp $ */ +/* $OpenBSD: lemac.c,v 1.29 2016/04/13 10:49:26 mpi Exp $ */ /* $NetBSD: lemac.c,v 1.20 2001/06/13 10:46:02 wiz Exp $ */ /*- @@ -994,8 +994,6 @@ lemac_ifattach(struct lemac_softc *sc) if (sc->sc_flags & LEMAC_ALIVE) { uint64_t media; - IFQ_SET_READY(&ifp->if_snd); - if_attach(ifp); ether_ifattach(ifp); diff --git a/sys/dev/ic/malo.c b/sys/dev/ic/malo.c index 22f82b1d81a..915db259caa 100644 --- a/sys/dev/ic/malo.c +++ b/sys/dev/ic/malo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: malo.c,v 1.111 2015/11/25 03:09:58 dlg Exp $ */ +/* $OpenBSD: malo.c,v 1.112 2016/04/13 10:49:26 mpi Exp $ */ /* * Copyright (c) 2006 Claudio Jeker <claudio@openbsd.org> @@ -349,7 +349,6 @@ malo_attach(struct malo_softc *sc) ifp->if_flags = IFF_SIMPLEX | IFF_BROADCAST | IFF_MULTICAST; strlcpy(ifp->if_xname, sc->sc_dev.dv_xname, IFNAMSIZ); IFQ_SET_MAXLEN(&ifp->if_snd, IFQ_MAXLEN); - IFQ_SET_READY(&ifp->if_snd); /* set supported rates */ ic->ic_sup_rates[IEEE80211_MODE_11B] = ieee80211_std_rateset_11b; diff --git a/sys/dev/ic/mtd8xx.c b/sys/dev/ic/mtd8xx.c index 6906b7fd760..f38c706acbd 100644 --- a/sys/dev/ic/mtd8xx.c +++ b/sys/dev/ic/mtd8xx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mtd8xx.c,v 1.29 2015/11/25 03:09:58 dlg Exp $ */ +/* $OpenBSD: mtd8xx.c,v 1.30 2016/04/13 10:49:26 mpi Exp $ */ /* * Copyright (c) 2003 Oleg Safiullin <form@pdp11.org.ru> @@ -160,7 +160,6 @@ mtd_attach(struct mtd_softc *sc) ifp->if_ioctl = mtd_ioctl; ifp->if_start = mtd_start; ifp->if_watchdog = mtd_watchdog; - IFQ_SET_READY(&ifp->if_snd); bcopy(sc->sc_dev.dv_xname, ifp->if_xname, IFNAMSIZ); ifp->if_capabilities = IFCAP_VLAN_MTU; diff --git a/sys/dev/ic/pgt.c b/sys/dev/ic/pgt.c index 932c3599e90..7d4ffd380c3 100644 --- a/sys/dev/ic/pgt.c +++ b/sys/dev/ic/pgt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pgt.c,v 1.86 2016/01/12 09:28:09 stsp Exp $ */ +/* $OpenBSD: pgt.c,v 1.87 2016/04/13 10:49:26 mpi Exp $ */ /* * Copyright (c) 2006 Claudio Jeker <claudio@openbsd.org> @@ -1878,7 +1878,6 @@ pgt_net_attach(struct pgt_softc *sc) strlcpy(ifp->if_xname, sc->sc_dev.dv_xname, IFNAMSIZ); IFQ_SET_MAXLEN(&ifp->if_snd, IFQ_MAXLEN); - IFQ_SET_READY(&ifp->if_snd); /* * Set channels diff --git a/sys/dev/ic/re.c b/sys/dev/ic/re.c index 6330e4432fb..a4736bd7d56 100644 --- a/sys/dev/ic/re.c +++ b/sys/dev/ic/re.c @@ -1,4 +1,4 @@ -/* $OpenBSD: re.c,v 1.190 2016/03/19 11:34:22 mpi Exp $ */ +/* $OpenBSD: re.c,v 1.191 2016/04/13 10:49:26 mpi Exp $ */ /* $FreeBSD: if_re.c,v 1.31 2004/09/04 07:54:05 ru Exp $ */ /* * Copyright (c) 1997, 1998-2003 @@ -1048,7 +1048,6 @@ re_attach(struct rl_softc *sc, const char *intrstr) ifp->if_watchdog = re_watchdog; ifp->if_hardmtu = sc->rl_max_mtu; IFQ_SET_MAXLEN(&ifp->if_snd, RL_TX_QLEN); - IFQ_SET_READY(&ifp->if_snd); ifp->if_capabilities = IFCAP_VLAN_MTU | IFCAP_CSUM_TCPv4 | IFCAP_CSUM_UDPv4; diff --git a/sys/dev/ic/rt2560.c b/sys/dev/ic/rt2560.c index 1dfd1e95a4b..5c7f4b51ad0 100644 --- a/sys/dev/ic/rt2560.c +++ b/sys/dev/ic/rt2560.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rt2560.c,v 1.79 2015/12/05 12:13:55 dlg Exp $ */ +/* $OpenBSD: rt2560.c,v 1.80 2016/04/13 10:49:26 mpi Exp $ */ /*- * Copyright (c) 2005, 2006 @@ -258,7 +258,6 @@ rt2560_attach(void *xsc, int id) ifp->if_ioctl = rt2560_ioctl; ifp->if_start = rt2560_start; ifp->if_watchdog = rt2560_watchdog; - IFQ_SET_READY(&ifp->if_snd); memcpy(ifp->if_xname, sc->sc_dev.dv_xname, IFNAMSIZ); if_attach(ifp); diff --git a/sys/dev/ic/rt2661.c b/sys/dev/ic/rt2661.c index 1444e492418..2f2c9657dcf 100644 --- a/sys/dev/ic/rt2661.c +++ b/sys/dev/ic/rt2661.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rt2661.c,v 1.89 2015/12/11 16:07:01 mpi Exp $ */ +/* $OpenBSD: rt2661.c,v 1.90 2016/04/13 10:49:26 mpi Exp $ */ /*- * Copyright (c) 2006 @@ -342,7 +342,6 @@ rt2661_attachhook(struct device *self) ifp->if_ioctl = rt2661_ioctl; ifp->if_start = rt2661_start; ifp->if_watchdog = rt2661_watchdog; - IFQ_SET_READY(&ifp->if_snd); memcpy(ifp->if_xname, sc->sc_dev.dv_xname, IFNAMSIZ); if_attach(ifp); diff --git a/sys/dev/ic/rt2860.c b/sys/dev/ic/rt2860.c index 373d9ae9ca0..3b2f16ae39a 100644 --- a/sys/dev/ic/rt2860.c +++ b/sys/dev/ic/rt2860.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rt2860.c,v 1.89 2016/03/21 21:16:30 stsp Exp $ */ +/* $OpenBSD: rt2860.c,v 1.90 2016/04/13 10:49:26 mpi Exp $ */ /*- * Copyright (c) 2007-2010 Damien Bergamini <damien.bergamini@free.fr> @@ -335,7 +335,6 @@ rt2860_attachhook(struct device *self) ifp->if_ioctl = rt2860_ioctl; ifp->if_start = rt2860_start; ifp->if_watchdog = rt2860_watchdog; - IFQ_SET_READY(&ifp->if_snd); memcpy(ifp->if_xname, sc->sc_dev.dv_xname, IFNAMSIZ); if_attach(ifp); diff --git a/sys/dev/ic/rtl81x9.c b/sys/dev/ic/rtl81x9.c index f8509356018..2052680a693 100644 --- a/sys/dev/ic/rtl81x9.c +++ b/sys/dev/ic/rtl81x9.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtl81x9.c,v 1.94 2015/11/25 03:09:58 dlg Exp $ */ +/* $OpenBSD: rtl81x9.c,v 1.95 2016/04/13 10:49:26 mpi Exp $ */ /* * Copyright (c) 1997, 1998 @@ -1187,7 +1187,6 @@ rl_attach(struct rl_softc *sc) ifp->if_ioctl = rl_ioctl; ifp->if_start = rl_start; ifp->if_watchdog = rl_watchdog; - IFQ_SET_READY(&ifp->if_snd); bcopy(sc->sc_dev.dv_xname, ifp->if_xname, IFNAMSIZ); diff --git a/sys/dev/ic/rtw.c b/sys/dev/ic/rtw.c index 62639a9bd2e..397bf186a05 100644 --- a/sys/dev/ic/rtw.c +++ b/sys/dev/ic/rtw.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtw.c,v 1.95 2015/12/08 13:34:22 tedu Exp $ */ +/* $OpenBSD: rtw.c,v 1.96 2016/04/13 10:49:26 mpi Exp $ */ /* $NetBSD: rtw.c,v 1.29 2004/12/27 19:49:16 dyoung Exp $ */ /*- @@ -4001,7 +4001,6 @@ rtw_attach(struct rtw_softc *sc) ifp->if_start = rtw_start; ifp->if_watchdog = rtw_watchdog; - IFQ_SET_READY(&sc->sc_if.if_snd); ic->ic_phytype = IEEE80211_T_DS; ic->ic_opmode = IEEE80211_M_STA; diff --git a/sys/dev/ic/rtwn.c b/sys/dev/ic/rtwn.c index 742f7fe68b9..01b8e0e81e2 100644 --- a/sys/dev/ic/rtwn.c +++ b/sys/dev/ic/rtwn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtwn.c,v 1.6 2016/03/21 12:00:32 stsp Exp $ */ +/* $OpenBSD: rtwn.c,v 1.7 2016/04/13 10:49:26 mpi Exp $ */ /*- * Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr> @@ -224,7 +224,6 @@ rtwn_attach(struct device *pdev, struct rtwn_softc *sc, uint32_t chip_type) ifp->if_ioctl = rtwn_ioctl; ifp->if_start = rtwn_start; ifp->if_watchdog = rtwn_watchdog; - IFQ_SET_READY(&ifp->if_snd); memcpy(ifp->if_xname, sc->sc_pdev->dv_xname, IFNAMSIZ); if_attach(ifp); diff --git a/sys/dev/ic/smc83c170.c b/sys/dev/ic/smc83c170.c index a45a3e5091a..0d24d81c492 100644 --- a/sys/dev/ic/smc83c170.c +++ b/sys/dev/ic/smc83c170.c @@ -1,4 +1,4 @@ -/* $OpenBSD: smc83c170.c,v 1.25 2015/11/25 03:09:58 dlg Exp $ */ +/* $OpenBSD: smc83c170.c,v 1.26 2016/04/13 10:49:26 mpi Exp $ */ /* $NetBSD: smc83c170.c,v 1.59 2005/02/27 00:27:02 perry Exp $ */ /*- @@ -279,7 +279,6 @@ epic_attach(struct epic_softc *sc, const char *intrstr) ifp->if_start = epic_start; ifp->if_watchdog = epic_watchdog; IFQ_SET_MAXLEN(&ifp->if_snd, EPIC_NTXDESC - 1); - IFQ_SET_READY(&ifp->if_snd); ifp->if_capabilities = IFCAP_VLAN_MTU; diff --git a/sys/dev/ic/smc91cxx.c b/sys/dev/ic/smc91cxx.c index 528a0e2333f..27b0bdb88a0 100644 --- a/sys/dev/ic/smc91cxx.c +++ b/sys/dev/ic/smc91cxx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: smc91cxx.c,v 1.46 2016/02/12 20:02:04 mmcc Exp $ */ +/* $OpenBSD: smc91cxx.c,v 1.47 2016/04/13 10:49:26 mpi Exp $ */ /* $NetBSD: smc91cxx.c,v 1.11 1998/08/08 23:51:41 mycroft Exp $ */ /*- @@ -250,7 +250,6 @@ smc91cxx_attach(sc, myea) ifp->if_watchdog = smc91cxx_watchdog; ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; - IFQ_SET_READY(&ifp->if_snd); /* Attach the interface. */ if_attach(ifp); diff --git a/sys/dev/ic/ti.c b/sys/dev/ic/ti.c index 3519dcc5b55..0f77adb2333 100644 --- a/sys/dev/ic/ti.c +++ b/sys/dev/ic/ti.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ti.c,v 1.23 2016/03/10 23:18:56 mmcc Exp $ */ +/* $OpenBSD: ti.c,v 1.24 2016/04/13 10:49:26 mpi Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -1444,7 +1444,6 @@ ti_attach(struct ti_softc *sc) ifp->if_watchdog = ti_watchdog; ifp->if_hardmtu = TI_JUMBO_FRAMELEN - ETHER_HDR_LEN; IFQ_SET_MAXLEN(&ifp->if_snd, TI_TX_RING_CNT - 1); - IFQ_SET_READY(&ifp->if_snd); bcopy(sc->sc_dv.dv_xname, ifp->if_xname, IFNAMSIZ); ifp->if_capabilities = IFCAP_VLAN_MTU; diff --git a/sys/dev/ic/xl.c b/sys/dev/ic/xl.c index ee4e6ba4d90..59afc57a29a 100644 --- a/sys/dev/ic/xl.c +++ b/sys/dev/ic/xl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xl.c,v 1.130 2015/11/25 03:09:58 dlg Exp $ */ +/* $OpenBSD: xl.c,v 1.131 2016/04/13 10:49:26 mpi Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -2465,7 +2465,6 @@ xl_attach(struct xl_softc *sc) ifp->if_watchdog = xl_watchdog; ifp->if_baudrate = 10000000; IFQ_SET_MAXLEN(&ifp->if_snd, XL_TX_LIST_CNT - 1); - IFQ_SET_READY(&ifp->if_snd); memcpy(ifp->if_xname, sc->sc_dev.dv_xname, IFNAMSIZ); ifp->if_capabilities = IFCAP_VLAN_MTU; diff --git a/sys/dev/isa/if_ef_isapnp.c b/sys/dev/isa/if_ef_isapnp.c index a6fe54f70d6..cc69e9ba114 100644 --- a/sys/dev/isa/if_ef_isapnp.c +++ b/sys/dev/isa/if_ef_isapnp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ef_isapnp.c,v 1.37 2015/12/08 13:34:22 tedu Exp $ */ +/* $OpenBSD: if_ef_isapnp.c,v 1.38 2016/04/13 10:49:26 mpi Exp $ */ /* * Copyright (c) 1999 Jason L. Wright (jason@thought.net) @@ -200,7 +200,6 @@ ef_isapnp_attach(parent, self, aux) ifp->if_watchdog = efwatchdog; ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; - IFQ_SET_READY(&ifp->if_snd); sc->sc_mii.mii_ifp = ifp; sc->sc_mii.mii_readreg = ef_miibus_readreg; diff --git a/sys/dev/isa/if_eg.c b/sys/dev/isa/if_eg.c index 11b82d754e4..80df09d2182 100644 --- a/sys/dev/isa/if_eg.c +++ b/sys/dev/isa/if_eg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_eg.c,v 1.45 2015/12/08 13:34:22 tedu Exp $ */ +/* $OpenBSD: if_eg.c,v 1.46 2016/04/13 10:49:26 mpi Exp $ */ /* $NetBSD: if_eg.c,v 1.26 1996/05/12 23:52:27 mycroft Exp $ */ /* @@ -420,7 +420,6 @@ egattach(struct device *parent, struct device *self, void *aux) ifp->if_ioctl = egioctl; ifp->if_watchdog = egwatchdog; ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX; - IFQ_SET_READY(&ifp->if_snd); /* Now we can attach the interface. */ if_attach(ifp); diff --git a/sys/dev/isa/if_el.c b/sys/dev/isa/if_el.c index 74381f3de00..37dc41ee23f 100644 --- a/sys/dev/isa/if_el.c +++ b/sys/dev/isa/if_el.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_el.c,v 1.32 2015/12/08 13:34:22 tedu Exp $ */ +/* $OpenBSD: if_el.c,v 1.33 2016/04/13 10:49:26 mpi Exp $ */ /* $NetBSD: if_el.c,v 1.39 1996/05/12 23:52:32 mycroft Exp $ */ /* @@ -179,7 +179,6 @@ elattach(parent, self, aux) ifp->if_ioctl = elioctl; ifp->if_watchdog = elwatchdog; ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX; - IFQ_SET_READY(&ifp->if_snd); /* Now we can attach the interface. */ dprintf(("Attaching interface...\n")); diff --git a/sys/dev/isa/if_ex.c b/sys/dev/isa/if_ex.c index bbbf55c5a37..e9893586243 100644 --- a/sys/dev/isa/if_ex.c +++ b/sys/dev/isa/if_ex.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ex.c,v 1.43 2015/11/25 03:09:59 dlg Exp $ */ +/* $OpenBSD: if_ex.c,v 1.44 2016/04/13 10:49:26 mpi Exp $ */ /* * Copyright (c) 1997, Donald A. Schmidt * Copyright (c) 1996, Javier Martín Rueda (jmrueda@diatel.upm.es) @@ -252,7 +252,6 @@ ex_attach(struct device *parent, struct device *self, void *aux) ifp->if_ioctl = ex_ioctl; ifp->if_watchdog = ex_watchdog; ifp->if_flags = IFF_SIMPLEX | IFF_BROADCAST | IFF_MULTICAST; - IFQ_SET_READY(&ifp->if_snd); ifmedia_init(&sc->ifmedia, 0, ex_ifmedia_upd, ex_ifmedia_sts); diff --git a/sys/dev/isa/if_ie.c b/sys/dev/isa/if_ie.c index 71f8db4c59b..ade5ef6d876 100644 --- a/sys/dev/isa/if_ie.c +++ b/sys/dev/isa/if_ie.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ie.c,v 1.51 2016/03/29 13:39:53 dlg Exp $ */ +/* $OpenBSD: if_ie.c,v 1.52 2016/04/13 10:49:26 mpi Exp $ */ /* $NetBSD: if_ie.c,v 1.51 1996/05/12 23:52:48 mycroft Exp $ */ /*- @@ -775,7 +775,6 @@ ieattach(parent, self, aux) ifp->if_watchdog = iewatchdog; ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; - IFQ_SET_READY(&ifp->if_snd); /* Attach the interface. */ if_attach(ifp); diff --git a/sys/dev/pcmcia/if_cnw.c b/sys/dev/pcmcia/if_cnw.c index 1ce6b3295c4..860c22b9cc6 100644 --- a/sys/dev/pcmcia/if_cnw.c +++ b/sys/dev/pcmcia/if_cnw.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_cnw.c,v 1.35 2015/12/08 13:34:22 tedu Exp $ */ +/* $OpenBSD: if_cnw.c,v 1.36 2016/04/13 10:49:26 mpi Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. * All rights reserved. @@ -419,7 +419,6 @@ cnw_attach(parent, self, aux) ifp->if_ioctl = cnw_ioctl; ifp->if_watchdog = cnw_watchdog; ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX; - IFQ_SET_READY(&ifp->if_snd); /* Attach the interface */ if_attach(ifp); diff --git a/sys/dev/pcmcia/if_malo.c b/sys/dev/pcmcia/if_malo.c index 42f66c59579..ea72b077022 100644 --- a/sys/dev/pcmcia/if_malo.c +++ b/sys/dev/pcmcia/if_malo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_malo.c,v 1.90 2015/12/11 16:07:02 mpi Exp $ */ +/* $OpenBSD: if_malo.c,v 1.91 2016/04/13 10:49:26 mpi Exp $ */ /* * Copyright (c) 2007 Marcus Glocker <mglocker@openbsd.org> @@ -326,7 +326,6 @@ cmalo_attach(struct device *self) ifp->if_watchdog = cmalo_watchdog; ifp->if_flags = IFF_SIMPLEX | IFF_BROADCAST | IFF_MULTICAST; strlcpy(ifp->if_xname, sc->sc_dev.dv_xname, IFNAMSIZ); - IFQ_SET_READY(&ifp->if_snd); ic->ic_opmode = IEEE80211_M_STA; ic->ic_state = IEEE80211_S_INIT; diff --git a/sys/dev/pcmcia/if_xe.c b/sys/dev/pcmcia/if_xe.c index c0dbbe7e89a..26fe80adcbe 100644 --- a/sys/dev/pcmcia/if_xe.c +++ b/sys/dev/pcmcia/if_xe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_xe.c,v 1.57 2015/12/08 13:34:22 tedu Exp $ */ +/* $OpenBSD: if_xe.c,v 1.58 2016/04/13 10:49:26 mpi Exp $ */ /* * Copyright (c) 1999 Niklas Hallqvist, Brandon Creighton, Job de Haas @@ -362,7 +362,6 @@ xe_pcmcia_attach(parent, self, aux) ifp->if_ioctl = xe_ioctl; ifp->if_start = xe_start; ifp->if_watchdog = xe_watchdog; - IFQ_SET_READY(&ifp->if_snd); /* Establish the interrupt. */ sc->sc_ih = pcmcia_intr_establish(pa->pf, IPL_NET, xe_intr, sc, |