diff options
author | Patrick Wildt <patrick@cvs.openbsd.org> | 2020-07-10 13:26:43 +0000 |
---|---|---|
committer | Patrick Wildt <patrick@cvs.openbsd.org> | 2020-07-10 13:26:43 +0000 |
commit | 7c591251f4b453772c5304abafc8b31add427963 (patch) | |
tree | c3c81adfd569e3d58b2cd875be6a5bd88d1b8bfb /sys/dev/pci/if_myx.c | |
parent | 75620858502cb86710140bab76d93d2cfc2277d4 (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_myx.c')
-rw-r--r-- | sys/dev/pci/if_myx.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_myx.c b/sys/dev/pci/if_myx.c index e491726b4bf..c2885f88eb7 100644 --- a/sys/dev/pci/if_myx.c +++ b/sys/dev/pci/if_myx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_myx.c,v 1.108 2019/07/03 10:34:59 dlg Exp $ */ +/* $OpenBSD: if_myx.c,v 1.109 2020/07/10 13:26:38 patrick Exp $ */ /* * Copyright (c) 2007 Reyk Floeter <reyk@openbsd.org> @@ -512,7 +512,7 @@ myx_attachhook(struct device *self) ifp->if_watchdog = myx_watchdog; ifp->if_hardmtu = MYX_RXBIG_SIZE; strlcpy(ifp->if_xname, DEVNAME(sc), IFNAMSIZ); - IFQ_SET_MAXLEN(&ifp->if_snd, 1); + ifq_set_maxlen(&ifp->if_snd, 1); ifp->if_capabilities = IFCAP_VLAN_MTU; #if 0 @@ -1065,7 +1065,7 @@ myx_up(struct myx_softc *sc) sc->sc_tx_ring_count = r / sizeof(struct myx_tx_desc); sc->sc_tx_nsegs = min(16, sc->sc_tx_ring_count / 4); /* magic */ sc->sc_tx_count = 0; - IFQ_SET_MAXLEN(&ifp->if_snd, sc->sc_tx_ring_count - 1); + ifq_set_maxlen(&ifp->if_snd, sc->sc_tx_ring_count - 1); /* Allocate Interrupt Queue */ |