summaryrefslogtreecommitdiffstats
path: root/sys/arch/sgi
diff options
context:
space:
mode:
authorpatrick <patrick@openbsd.org>2020-07-10 13:26:36 +0000
committerpatrick <patrick@openbsd.org>2020-07-10 13:26:36 +0000
commit0cae21bd7dc539ce7833e6c95a4e4259d9044374 (patch)
tree655429ae55a3e2d9c5289fdd7ad3dae7ad921d55 /sys/arch/sgi
parentChange users of IFQ_PURGE() to use the "new" API. (diff)
downloadwireguard-openbsd-0cae21bd7dc539ce7833e6c95a4e4259d9044374.tar.xz
wireguard-openbsd-0cae21bd7dc539ce7833e6c95a4e4259d9044374.zip
Change users of IFQ_SET_MAXLEN() and IFQ_IS_EMPTY() to use the "new" API.
ok dlg@ tobhe@
Diffstat (limited to 'sys/arch/sgi')
-rw-r--r--sys/arch/sgi/dev/if_iec.c4
-rw-r--r--sys/arch/sgi/dev/if_mec.c4
-rw-r--r--sys/arch/sgi/hpc/if_sq.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/sys/arch/sgi/dev/if_iec.c b/sys/arch/sgi/dev/if_iec.c
index 6408f16b62e..44c58f42de8 100644
--- a/sys/arch/sgi/dev/if_iec.c
+++ b/sys/arch/sgi/dev/if_iec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_iec.c,v 1.26 2017/07/19 12:23:16 claudio Exp $ */
+/* $OpenBSD: if_iec.c,v 1.27 2020/07/10 13:26:36 patrick Exp $ */
/*
* Copyright (c) 2009 Miodrag Vallat.
@@ -408,7 +408,7 @@ iec_attach(struct device *parent, struct device *self, void *aux)
ifp->if_watchdog = iec_watchdog;
if_attach(ifp);
- IFQ_SET_MAXLEN(&ifp->if_snd, IEC_NTXDESC - 1);
+ ifq_set_maxlen(&ifp->if_snd, IEC_NTXDESC - 1);
ether_ifattach(ifp);
/* Establish interrupt handler. */
diff --git a/sys/arch/sgi/dev/if_mec.c b/sys/arch/sgi/dev/if_mec.c
index f8b18abcc16..f9a2e4876c1 100644
--- a/sys/arch/sgi/dev/if_mec.c
+++ b/sys/arch/sgi/dev/if_mec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_mec.c,v 1.40 2018/12/10 05:42:34 visa Exp $ */
+/* $OpenBSD: if_mec.c,v 1.41 2020/07/10 13:26:36 patrick Exp $ */
/* $NetBSD: if_mec_mace.c,v 1.5 2004/08/01 06:36:36 tsutsui Exp $ */
/*
@@ -460,7 +460,7 @@ mec_attach(struct device *parent, struct device *self, void *aux)
ifp->if_watchdog = mec_watchdog;
if_attach(ifp);
- IFQ_SET_MAXLEN(&ifp->if_snd, MEC_NTXDESC - 1);
+ ifq_set_maxlen(&ifp->if_snd, MEC_NTXDESC - 1);
ether_ifattach(ifp);
/* Establish interrupt handler. */
diff --git a/sys/arch/sgi/hpc/if_sq.c b/sys/arch/sgi/hpc/if_sq.c
index 65716393dce..89f704b8f6c 100644
--- a/sys/arch/sgi/hpc/if_sq.c
+++ b/sys/arch/sgi/hpc/if_sq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_sq.c,v 1.29 2017/03/08 15:07:10 mpi Exp $ */
+/* $OpenBSD: if_sq.c,v 1.30 2020/07/10 13:26:36 patrick Exp $ */
/* $NetBSD: if_sq.c,v 1.42 2011/07/01 18:53:47 dyoung Exp $ */
/*
@@ -362,7 +362,7 @@ sq_attach(struct device *parent, struct device *self, void *aux)
ifp->if_flags = IFF_BROADCAST | IFF_MULTICAST;
if_attach(ifp);
- IFQ_SET_MAXLEN(&ifp->if_snd, SQ_NTXDESC - 1);
+ ifq_set_maxlen(&ifp->if_snd, SQ_NTXDESC - 1);
ether_ifattach(ifp);
if (haa->hpc_regs->revision == 3) {