summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_alc.c
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/dev/pci/if_alc.c
parent75620858502cb86710140bab76d93d2cfc2277d4 (diff)
Change users of IFQ_SET_MAXLEN() and IFQ_IS_EMPTY() to use the "new" API.
ok dlg@ tobhe@
Diffstat (limited to 'sys/dev/pci/if_alc.c')
-rw-r--r--sys/dev/pci/if_alc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_alc.c b/sys/dev/pci/if_alc.c
index 3e718c552ae..d15cf7ba26b 100644
--- a/sys/dev/pci/if_alc.c
+++ b/sys/dev/pci/if_alc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_alc.c,v 1.53 2020/07/10 13:22:20 patrick Exp $ */
+/* $OpenBSD: if_alc.c,v 1.54 2020/07/10 13:26:37 patrick Exp $ */
/*-
* Copyright (c) 2009, Pyun YongHyeon <yongari@FreeBSD.org>
* All rights reserved.
@@ -1382,7 +1382,7 @@ alc_attach(struct device *parent, struct device *self, void *aux)
ifp->if_ioctl = alc_ioctl;
ifp->if_start = alc_start;
ifp->if_watchdog = alc_watchdog;
- IFQ_SET_MAXLEN(&ifp->if_snd, ALC_TX_RING_CNT - 1);
+ ifq_set_maxlen(&ifp->if_snd, ALC_TX_RING_CNT - 1);
bcopy(sc->alc_eaddr, sc->sc_arpcom.ac_enaddr, ETHER_ADDR_LEN);
bcopy(sc->sc_dev.dv_xname, ifp->if_xname, IFNAMSIZ);
@@ -1905,7 +1905,7 @@ alc_start(struct ifnet *ifp)
return;
if ((sc->alc_flags & ALC_FLAG_LINK) == 0)
return;
- if (IFQ_IS_EMPTY(&ifp->if_snd))
+ if (ifq_empty(&ifp->if_snd))
return;
for (;;) {