summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorPatrick Wildt <patrick@cvs.openbsd.org>2020-07-10 13:26:43 +0000
committerPatrick Wildt <patrick@cvs.openbsd.org>2020-07-10 13:26:43 +0000
commit7c591251f4b453772c5304abafc8b31add427963 (patch)
treec3c81adfd569e3d58b2cd875be6a5bd88d1b8bfb /sys/net
parent75620858502cb86710140bab76d93d2cfc2277d4 (diff)
Change users of IFQ_SET_MAXLEN() and IFQ_IS_EMPTY() to use the "new" API.
ok dlg@ tobhe@
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_aggr.c4
-rw-r--r--sys/net/if_bpe.c4
-rw-r--r--sys/net/if_etherip.c4
-rw-r--r--sys/net/if_gif.c4
-rw-r--r--sys/net/if_gre.c8
-rw-r--r--sys/net/if_mpe.c4
-rw-r--r--sys/net/if_mpip.c4
-rw-r--r--sys/net/if_mpw.c4
-rw-r--r--sys/net/if_pair.c4
-rw-r--r--sys/net/if_pflog.c4
-rw-r--r--sys/net/if_pflow.c4
-rw-r--r--sys/net/if_pfsync.c4
-rw-r--r--sys/net/if_ppp.c6
-rw-r--r--sys/net/if_pppoe.c4
-rw-r--r--sys/net/if_pppx.c6
-rw-r--r--sys/net/if_spppsubr.c6
-rw-r--r--sys/net/if_tpmr.c4
-rw-r--r--sys/net/if_tun.c4
-rw-r--r--sys/net/if_var.h9
-rw-r--r--sys/net/if_vether.c4
-rw-r--r--sys/net/if_vxlan.c4
-rw-r--r--sys/net/if_wg.c4
22 files changed, 48 insertions, 55 deletions
diff --git a/sys/net/if_aggr.c b/sys/net/if_aggr.c
index 5b45c3dcfe7..1707230cd96 100644
--- a/sys/net/if_aggr.c
+++ b/sys/net/if_aggr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_aggr.c,v 1.31 2020/06/17 06:45:22 dlg Exp $ */
+/* $OpenBSD: if_aggr.c,v 1.32 2020/07/10 13:26:41 patrick Exp $ */
/*
* Copyright (c) 2019 The University of Queensland
@@ -560,7 +560,7 @@ aggr_clone_create(struct if_clone *ifc, int unit)
ifp->if_flags = IFF_BROADCAST | IFF_MULTICAST | IFF_SIMPLEX;
ifp->if_xflags = IFXF_CLONED | IFXF_MPSAFE;
ifp->if_link_state = LINK_STATE_DOWN;
- IFQ_SET_MAXLEN(&ifp->if_snd, IFQ_MAXLEN);
+ ifq_set_maxlen(&ifp->if_snd, IFQ_MAXLEN);
ether_fakeaddr(ifp);
if_counters_alloc(ifp);
diff --git a/sys/net/if_bpe.c b/sys/net/if_bpe.c
index 13224499bb1..9ce5df4a430 100644
--- a/sys/net/if_bpe.c
+++ b/sys/net/if_bpe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_bpe.c,v 1.11 2020/06/24 22:03:43 cheloha Exp $ */
+/* $OpenBSD: if_bpe.c,v 1.12 2020/07/10 13:26:41 patrick Exp $ */
/*
* Copyright (c) 2018 David Gwynne <dlg@openbsd.org>
*
@@ -190,7 +190,7 @@ bpe_clone_create(struct if_clone *ifc, int unit)
ifp->if_start = bpe_start;
ifp->if_flags = IFF_BROADCAST | IFF_MULTICAST;
ifp->if_xflags = IFXF_CLONED;
- IFQ_SET_MAXLEN(&ifp->if_snd, IFQ_MAXLEN);
+ ifq_set_maxlen(&ifp->if_snd, IFQ_MAXLEN);
ether_fakeaddr(ifp);
if_counters_alloc(ifp);
diff --git a/sys/net/if_etherip.c b/sys/net/if_etherip.c
index e43f8c223b9..ab0d7558fb4 100644
--- a/sys/net/if_etherip.c
+++ b/sys/net/if_etherip.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_etherip.c,v 1.45 2019/04/23 10:53:45 dlg Exp $ */
+/* $OpenBSD: if_etherip.c,v 1.46 2020/07/10 13:26:41 patrick Exp $ */
/*
* Copyright (c) 2015 Kazuya GODA <goda@openbsd.org>
*
@@ -150,7 +150,7 @@ etherip_clone_create(struct if_clone *ifc, int unit)
ifp->if_start = etherip_start;
ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST;
ifp->if_xflags = IFXF_CLONED;
- IFQ_SET_MAXLEN(&ifp->if_snd, IFQ_MAXLEN);
+ ifq_set_maxlen(&ifp->if_snd, IFQ_MAXLEN);
ifp->if_capabilities = IFCAP_VLAN_MTU;
ether_fakeaddr(ifp);
diff --git a/sys/net/if_gif.c b/sys/net/if_gif.c
index 333b1ccb469..95859d24897 100644
--- a/sys/net/if_gif.c
+++ b/sys/net/if_gif.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_gif.c,v 1.129 2020/06/17 06:45:22 dlg Exp $ */
+/* $OpenBSD: if_gif.c,v 1.130 2020/07/10 13:26:41 patrick Exp $ */
/* $KAME: if_gif.c,v 1.43 2001/02/20 08:51:07 itojun Exp $ */
/*
@@ -170,7 +170,7 @@ gif_clone_create(struct if_clone *ifc, int unit)
ifp->if_output = gif_output;
ifp->if_rtrequest = p2p_rtrequest;
ifp->if_type = IFT_GIF;
- IFQ_SET_MAXLEN(&ifp->if_snd, IFQ_MAXLEN);
+ ifq_set_maxlen(&ifp->if_snd, IFQ_MAXLEN);
ifp->if_softc = sc;
if_attach(ifp);
diff --git a/sys/net/if_gre.c b/sys/net/if_gre.c
index 0b3c3525d8e..7fae30f1efa 100644
--- a/sys/net/if_gre.c
+++ b/sys/net/if_gre.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_gre.c,v 1.157 2020/06/17 06:45:22 dlg Exp $ */
+/* $OpenBSD: if_gre.c,v 1.158 2020/07/10 13:26:41 patrick Exp $ */
/* $NetBSD: if_gre.c,v 1.9 1999/10/25 19:18:11 drochner Exp $ */
/*
@@ -715,7 +715,7 @@ egre_clone_create(struct if_clone *ifc, int unit)
ifp->if_ioctl = egre_ioctl;
ifp->if_start = egre_start;
ifp->if_xflags = IFXF_CLONED;
- IFQ_SET_MAXLEN(&ifp->if_snd, IFQ_MAXLEN);
+ ifq_set_maxlen(&ifp->if_snd, IFQ_MAXLEN);
ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST;
ether_fakeaddr(ifp);
@@ -777,7 +777,7 @@ nvgre_clone_create(struct if_clone *ifc, int unit)
ifp->if_ioctl = nvgre_ioctl;
ifp->if_start = nvgre_start;
ifp->if_xflags = IFXF_CLONED;
- IFQ_SET_MAXLEN(&ifp->if_snd, IFQ_MAXLEN);
+ ifq_set_maxlen(&ifp->if_snd, IFQ_MAXLEN);
ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST;
ether_fakeaddr(ifp);
@@ -849,7 +849,7 @@ eoip_clone_create(struct if_clone *ifc, int unit)
ifp->if_ioctl = eoip_ioctl;
ifp->if_start = eoip_start;
ifp->if_xflags = IFXF_CLONED;
- IFQ_SET_MAXLEN(&ifp->if_snd, IFQ_MAXLEN);
+ ifq_set_maxlen(&ifp->if_snd, IFQ_MAXLEN);
ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST;
ether_fakeaddr(ifp);
diff --git a/sys/net/if_mpe.c b/sys/net/if_mpe.c
index 33f9cf48c74..09d0db3d2ed 100644
--- a/sys/net/if_mpe.c
+++ b/sys/net/if_mpe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_mpe.c,v 1.95 2020/01/24 05:14:51 jsg Exp $ */
+/* $OpenBSD: if_mpe.c,v 1.96 2020/07/10 13:26:41 patrick Exp $ */
/*
* Copyright (c) 2008 Pierre-Yves Ritschard <pyr@spootnik.org>
@@ -112,7 +112,7 @@ mpe_clone_create(struct if_clone *ifc, int unit)
ifp->if_start = mpe_start;
ifp->if_type = IFT_MPLS;
ifp->if_hdrlen = MPE_HDRLEN;
- IFQ_SET_MAXLEN(&ifp->if_snd, IFQ_MAXLEN);
+ ifq_set_maxlen(&ifp->if_snd, IFQ_MAXLEN);
sc->sc_dead = 0;
diff --git a/sys/net/if_mpip.c b/sys/net/if_mpip.c
index 9d243b56385..e4022f8ab5a 100644
--- a/sys/net/if_mpip.c
+++ b/sys/net/if_mpip.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_mpip.c,v 1.10 2020/07/10 13:23:34 patrick Exp $ */
+/* $OpenBSD: if_mpip.c,v 1.11 2020/07/10 13:26:41 patrick Exp $ */
/*
* Copyright (c) 2015 Rafael Zalamena <rzalamena@openbsd.org>
@@ -117,7 +117,7 @@ mpip_clone_create(struct if_clone *ifc, int unit)
ifp->if_rtrequest = p2p_rtrequest;
ifp->if_mtu = 1500;
ifp->if_hardmtu = 65535;
- IFQ_SET_MAXLEN(&ifp->if_snd, IFQ_MAXLEN);
+ ifq_set_maxlen(&ifp->if_snd, IFQ_MAXLEN);
if_attach(ifp);
if_counters_alloc(ifp);
diff --git a/sys/net/if_mpw.c b/sys/net/if_mpw.c
index af764ac05eb..526898d822b 100644
--- a/sys/net/if_mpw.c
+++ b/sys/net/if_mpw.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_mpw.c,v 1.57 2020/07/10 13:23:34 patrick Exp $ */
+/* $OpenBSD: if_mpw.c,v 1.58 2020/07/10 13:26:41 patrick Exp $ */
/*
* Copyright (c) 2015 Rafael Zalamena <rzalamena@openbsd.org>
@@ -111,7 +111,7 @@ mpw_clone_create(struct if_clone *ifc, int unit)
ifp->if_output = mpw_output;
ifp->if_start = mpw_start;
ifp->if_hardmtu = ETHER_MAX_HARDMTU_LEN;
- IFQ_SET_MAXLEN(&ifp->if_snd, IFQ_MAXLEN);
+ ifq_set_maxlen(&ifp->if_snd, IFQ_MAXLEN);
ether_fakeaddr(ifp);
sc->sc_dead = 0;
diff --git a/sys/net/if_pair.c b/sys/net/if_pair.c
index a8c69c3f6f7..62bfc5ac22b 100644
--- a/sys/net/if_pair.c
+++ b/sys/net/if_pair.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_pair.c,v 1.14 2020/07/10 13:22:22 patrick Exp $ */
+/* $OpenBSD: if_pair.c,v 1.15 2020/07/10 13:26:41 patrick Exp $ */
/*
* Copyright (c) 2015 Reyk Floeter <reyk@openbsd.org>
@@ -118,7 +118,7 @@ pair_clone_create(struct if_clone *ifc, int unit)
ifp->if_ioctl = pairioctl;
ifp->if_start = pairstart;
ifp->if_xflags = IFXF_CLONED;
- IFQ_SET_MAXLEN(&ifp->if_snd, IFQ_MAXLEN);
+ ifq_set_maxlen(&ifp->if_snd, IFQ_MAXLEN);
ifp->if_hardmtu = ETHER_MAX_HARDMTU_LEN;
ifp->if_capabilities = IFCAP_VLAN_MTU;
diff --git a/sys/net/if_pflog.c b/sys/net/if_pflog.c
index 3d9c46f9f1e..e36f628935d 100644
--- a/sys/net/if_pflog.c
+++ b/sys/net/if_pflog.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_pflog.c,v 1.87 2020/07/10 13:23:34 patrick Exp $ */
+/* $OpenBSD: if_pflog.c,v 1.88 2020/07/10 13:26:42 patrick Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
* Angelos D. Keromytis (kermit@csd.uch.gr) and
@@ -147,7 +147,7 @@ pflog_clone_create(struct if_clone *ifc, int unit)
ifp->if_start = pflogstart;
ifp->if_xflags = IFXF_CLONED;
ifp->if_type = IFT_PFLOG;
- IFQ_SET_MAXLEN(&ifp->if_snd, IFQ_MAXLEN);
+ ifq_set_maxlen(&ifp->if_snd, IFQ_MAXLEN);
ifp->if_hdrlen = PFLOG_HDRLEN;
if_attach(ifp);
if_alloc_sadl(ifp);
diff --git a/sys/net/if_pflow.c b/sys/net/if_pflow.c
index 1d482865013..2a8b3b560d2 100644
--- a/sys/net/if_pflow.c
+++ b/sys/net/if_pflow.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_pflow.c,v 1.91 2020/06/24 22:03:42 cheloha Exp $ */
+/* $OpenBSD: if_pflow.c,v 1.92 2020/07/10 13:26:42 patrick Exp $ */
/*
* Copyright (c) 2011 Florian Obser <florian@narrans.de>
@@ -248,7 +248,7 @@ pflow_clone_create(struct if_clone *ifc, int unit)
ifp->if_start = NULL;
ifp->if_xflags = IFXF_CLONED;
ifp->if_type = IFT_PFLOW;
- IFQ_SET_MAXLEN(&ifp->if_snd, IFQ_MAXLEN);
+ ifq_set_maxlen(&ifp->if_snd, IFQ_MAXLEN);
ifp->if_hdrlen = PFLOW_HDRLEN;
ifp->if_flags = IFF_UP;
ifp->if_flags &= ~IFF_RUNNING; /* not running, need receiver */
diff --git a/sys/net/if_pfsync.c b/sys/net/if_pfsync.c
index 1e3d10c36b5..e11c44be1ec 100644
--- a/sys/net/if_pfsync.c
+++ b/sys/net/if_pfsync.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_pfsync.c,v 1.273 2020/07/10 13:23:34 patrick Exp $ */
+/* $OpenBSD: if_pfsync.c,v 1.274 2020/07/10 13:26:42 patrick Exp $ */
/*
* Copyright (c) 2002 Michael Shalayeff
@@ -341,7 +341,7 @@ pfsync_clone_create(struct if_clone *ifc, int unit)
ifp->if_output = pfsyncoutput;
ifp->if_start = pfsyncstart;
ifp->if_type = IFT_PFSYNC;
- IFQ_SET_MAXLEN(&ifp->if_snd, IFQ_MAXLEN);
+ ifq_set_maxlen(&ifp->if_snd, IFQ_MAXLEN);
ifp->if_hdrlen = sizeof(struct pfsync_header);
ifp->if_mtu = ETHERMTU;
ifp->if_xflags = IFXF_CLONED;
diff --git a/sys/net/if_ppp.c b/sys/net/if_ppp.c
index 9e2f9924de9..62907235aed 100644
--- a/sys/net/if_ppp.c
+++ b/sys/net/if_ppp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ppp.c,v 1.115 2020/07/10 13:22:22 patrick Exp $ */
+/* $OpenBSD: if_ppp.c,v 1.116 2020/07/10 13:26:42 patrick Exp $ */
/* $NetBSD: if_ppp.c,v 1.39 1997/05/17 21:11:59 christos Exp $ */
/*
@@ -220,7 +220,7 @@ ppp_clone_create(struct if_clone *ifc, int unit)
sc->sc_if.if_output = pppoutput;
sc->sc_if.if_start = ppp_ifstart;
sc->sc_if.if_rtrequest = p2p_rtrequest;
- IFQ_SET_MAXLEN(&sc->sc_if.if_snd, IFQ_MAXLEN);
+ ifq_set_maxlen(&sc->sc_if.if_snd, IFQ_MAXLEN);
mq_init(&sc->sc_inq, IFQ_MAXLEN, IPL_NET);
ppp_pkt_list_init(&sc->sc_rawq, IFQ_MAXLEN);
if_attach(&sc->sc_if);
@@ -992,7 +992,7 @@ pppintr(void)
LIST_FOREACH(sc, &ppp_softc_list, sc_list) {
if (!(sc->sc_flags & SC_TBUSY) &&
- (!IFQ_IS_EMPTY(&sc->sc_if.if_snd))) {
+ (!ifq_empty(&sc->sc_if.if_snd))) {
s = splnet();
sc->sc_flags |= SC_TBUSY;
splx(s);
diff --git a/sys/net/if_pppoe.c b/sys/net/if_pppoe.c
index 21fe335104d..7a2176b445c 100644
--- a/sys/net/if_pppoe.c
+++ b/sys/net/if_pppoe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_pppoe.c,v 1.68 2019/06/16 00:10:37 kn Exp $ */
+/* $OpenBSD: if_pppoe.c,v 1.69 2020/07/10 13:26:42 patrick Exp $ */
/* $NetBSD: if_pppoe.c,v 1.51 2003/11/28 08:56:48 keihan Exp $ */
/*
@@ -212,7 +212,7 @@ pppoe_clone_create(struct if_clone *ifc, int unit)
sc->sc_sppp.pp_if.if_rtrequest = p2p_rtrequest;
sc->sc_sppp.pp_tls = pppoe_tls;
sc->sc_sppp.pp_tlf = pppoe_tlf;
- IFQ_SET_MAXLEN(&sc->sc_sppp.pp_if.if_snd, IFQ_MAXLEN);
+ ifq_set_maxlen(&sc->sc_sppp.pp_if.if_snd, IFQ_MAXLEN);
/* changed to real address later */
memcpy(&sc->sc_dest, etherbroadcastaddr, sizeof(sc->sc_dest));
diff --git a/sys/net/if_pppx.c b/sys/net/if_pppx.c
index 558b0f47b1a..644c3a4fb68 100644
--- a/sys/net/if_pppx.c
+++ b/sys/net/if_pppx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_pppx.c,v 1.94 2020/07/10 13:22:22 patrick Exp $ */
+/* $OpenBSD: if_pppx.c,v 1.95 2020/07/10 13:26:42 patrick Exp $ */
/*
* Copyright (c) 2010 Claudio Jeker <claudio@openbsd.org>
@@ -683,7 +683,7 @@ pppx_add_session(struct pppx_dev *pxd, struct pipex_session_req *req)
ifp->if_ioctl = pppx_if_ioctl;
ifp->if_rtrequest = p2p_rtrequest;
ifp->if_type = IFT_PPP;
- IFQ_SET_MAXLEN(&ifp->if_snd, 1);
+ ifq_set_maxlen(&ifp->if_snd, 1);
ifp->if_softc = pxi;
/* ifp->if_rdomain = req->pr_rdomain; */
@@ -1089,7 +1089,7 @@ pppacopen(dev_t dev, int flags, int mode, struct proc *p)
ifp->if_start = pppac_start;
ifp->if_ioctl = pppac_ioctl;
/* XXXSMP: be sure pppac_start() called under NET_LOCK() */
- IFQ_SET_MAXLEN(&ifp->if_snd, 1);
+ ifq_set_maxlen(&ifp->if_snd, 1);
if_counters_alloc(ifp);
if_attach(ifp);
diff --git a/sys/net/if_spppsubr.c b/sys/net/if_spppsubr.c
index 474b99e289d..684cefd3d88 100644
--- a/sys/net/if_spppsubr.c
+++ b/sys/net/if_spppsubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_spppsubr.c,v 1.183 2020/07/10 13:23:34 patrick Exp $ */
+/* $OpenBSD: if_spppsubr.c,v 1.184 2020/07/10 13:26:42 patrick Exp $ */
/*
* Synchronous PPP link level subroutines.
*
@@ -702,7 +702,7 @@ sppp_attach(struct ifnet *ifp)
sp->pp_if.if_type = IFT_PPP;
sp->pp_if.if_output = sppp_output;
- IFQ_SET_MAXLEN(&sp->pp_if.if_snd, 50);
+ ifq_set_maxlen(&sp->pp_if.if_snd, 50);
mq_init(&sp->pp_cpq, 50, IPL_NET);
sp->pp_loopcnt = 0;
sp->pp_alivecnt = 0;
@@ -782,7 +782,7 @@ sppp_isempty(struct ifnet *ifp)
int empty, s;
s = splnet();
- empty = mq_empty(&sp->pp_cpq) && IFQ_IS_EMPTY(&sp->pp_if.if_snd);
+ empty = mq_empty(&sp->pp_cpq) && ifq_empty(&sp->pp_if.if_snd);
splx(s);
return (empty);
}
diff --git a/sys/net/if_tpmr.c b/sys/net/if_tpmr.c
index 6a1c7dfc72d..86e828b9073 100644
--- a/sys/net/if_tpmr.c
+++ b/sys/net/if_tpmr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_tpmr.c,v 1.10 2020/04/12 06:56:37 dlg Exp $ */
+/* $OpenBSD: if_tpmr.c,v 1.11 2020/07/10 13:26:42 patrick Exp $ */
/*
* Copyright (c) 2019 The University of Queensland
@@ -171,7 +171,7 @@ tpmr_clone_create(struct if_clone *ifc, int unit)
ifp->if_flags = IFF_POINTOPOINT;
ifp->if_xflags = IFXF_CLONED | IFXF_MPSAFE;
ifp->if_link_state = LINK_STATE_DOWN;
- IFQ_SET_MAXLEN(&ifp->if_snd, IFQ_MAXLEN);
+ ifq_set_maxlen(&ifp->if_snd, IFQ_MAXLEN);
if_counters_alloc(ifp);
if_attach(ifp);
diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c
index 8109032506d..e94bcb0d31a 100644
--- a/sys/net/if_tun.c
+++ b/sys/net/if_tun.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_tun.c,v 1.223 2020/07/10 13:22:22 patrick Exp $ */
+/* $OpenBSD: if_tun.c,v 1.224 2020/07/10 13:26:42 patrick Exp $ */
/* $NetBSD: if_tun.c,v 1.24 1996/05/07 02:40:48 thorpej Exp $ */
/*
@@ -235,7 +235,7 @@ tun_create(struct if_clone *ifc, int unit, int flags)
ifp->if_start = tun_start;
ifp->if_hardmtu = TUNMRU;
ifp->if_link_state = LINK_STATE_DOWN;
- IFQ_SET_MAXLEN(&ifp->if_snd, IFQ_MAXLEN);
+ ifq_set_maxlen(&ifp->if_snd, IFQ_MAXLEN);
if_counters_alloc(ifp);
diff --git a/sys/net/if_var.h b/sys/net/if_var.h
index be67f03d312..f95ce9912a8 100644
--- a/sys/net/if_var.h
+++ b/sys/net/if_var.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_var.h,v 1.108 2020/07/10 13:23:34 patrick Exp $ */
+/* $OpenBSD: if_var.h,v 1.109 2020/07/10 13:26:42 patrick Exp $ */
/* $NetBSD: if.h,v 1.23 1996/05/07 02:40:27 thorpej Exp $ */
/*
@@ -281,13 +281,6 @@ struct ifg_list {
#define IFNET_SLOWTIMO 1 /* granularity is 1 second */
-/*
- * IFQ compat on ifq API
- */
-
-#define IFQ_IS_EMPTY(ifq) ifq_empty(ifq)
-#define IFQ_SET_MAXLEN(ifq, len) ifq_set_maxlen(ifq, len)
-
#define IF_TXMIT_MIN 1
#define IF_TXMIT_DEFAULT 16
diff --git a/sys/net/if_vether.c b/sys/net/if_vether.c
index 4d39918ddf3..6c6ab35c625 100644
--- a/sys/net/if_vether.c
+++ b/sys/net/if_vether.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_vether.c,v 1.31 2020/07/10 13:22:22 patrick Exp $ */
+/* $OpenBSD: if_vether.c,v 1.32 2020/07/10 13:26:42 patrick Exp $ */
/*
* Copyright (c) 2009 Theo de Raadt
@@ -84,7 +84,7 @@ vether_clone_create(struct if_clone *ifc, int unit)
ifp->if_softc = sc;
ifp->if_ioctl = vetherioctl;
ifp->if_start = vetherstart;
- IFQ_SET_MAXLEN(&ifp->if_snd, IFQ_MAXLEN);
+ ifq_set_maxlen(&ifp->if_snd, IFQ_MAXLEN);
ifp->if_hardmtu = ETHER_MAX_HARDMTU_LEN;
ifp->if_capabilities = IFCAP_VLAN_MTU;
diff --git a/sys/net/if_vxlan.c b/sys/net/if_vxlan.c
index e682d2761ab..f590f858c88 100644
--- a/sys/net/if_vxlan.c
+++ b/sys/net/if_vxlan.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_vxlan.c,v 1.78 2020/07/10 13:22:22 patrick Exp $ */
+/* $OpenBSD: if_vxlan.c,v 1.79 2020/07/10 13:26:42 patrick Exp $ */
/*
* Copyright (c) 2013 Reyk Floeter <reyk@openbsd.org>
@@ -151,7 +151,7 @@ vxlan_clone_create(struct if_clone *ifc, int unit)
ifp->if_softc = sc;
ifp->if_ioctl = vxlanioctl;
ifp->if_start = vxlanstart;
- IFQ_SET_MAXLEN(&ifp->if_snd, IFQ_MAXLEN);
+ ifq_set_maxlen(&ifp->if_snd, IFQ_MAXLEN);
ifp->if_hardmtu = ETHER_MAX_HARDMTU_LEN;
ifp->if_capabilities = IFCAP_VLAN_MTU;
diff --git a/sys/net/if_wg.c b/sys/net/if_wg.c
index a1b4d409deb..3b16b7d9ad8 100644
--- a/sys/net/if_wg.c
+++ b/sys/net/if_wg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_wg.c,v 1.8 2020/07/04 06:06:16 procter Exp $ */
+/* $OpenBSD: if_wg.c,v 1.9 2020/07/10 13:26:42 patrick Exp $ */
/*
* Copyright (C) 2015-2020 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
@@ -2652,7 +2652,7 @@ wg_clone_create(struct if_clone *ifc, int unit)
ifp->if_output = wg_output;
ifp->if_type = IFT_WIREGUARD;
- IFQ_SET_MAXLEN(&ifp->if_snd, IFQ_MAXLEN);
+ ifq_set_maxlen(&ifp->if_snd, IFQ_MAXLEN);
if_attach(ifp);
if_alloc_sadl(ifp);