diff options
Diffstat (limited to 'sys/dev/pci/if_nxe.c')
-rw-r--r-- | sys/dev/pci/if_nxe.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_nxe.c b/sys/dev/pci/if_nxe.c index 8971b7a7b9d..d880d798eee 100644 --- a/sys/dev/pci/if_nxe.c +++ b/sys/dev/pci/if_nxe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_nxe.c,v 1.76 2020/01/05 01:07:58 jsg Exp $ */ +/* $OpenBSD: if_nxe.c,v 1.77 2020/07/10 13:26:38 patrick Exp $ */ /* * Copyright (c) 2007 David Gwynne <dlg@openbsd.org> @@ -919,7 +919,7 @@ nxe_attach(struct device *parent, struct device *self, void *aux) ifp->if_watchdog = nxe_watchdog; ifp->if_hardmtu = MCLBYTES - ETHER_HDR_LEN - ETHER_CRC_LEN; strlcpy(ifp->if_xname, DEVNAME(sc), IFNAMSIZ); - IFQ_SET_MAXLEN(&ifp->if_snd, 512); /* XXX */ + ifq_set_maxlen(&ifp->if_snd, 512); /* XXX */ ifmedia_init(&sc->sc_media, 0, nxe_media_change, nxe_media_status); ifmedia_add(&sc->sc_media, IFM_ETHER|IFM_AUTO, 0, NULL); @@ -1308,7 +1308,7 @@ nxe_start(struct ifnet *ifp) if (!ISSET(ifp->if_flags, IFF_RUNNING) || ifq_is_oactive(&ifp->if_snd) || - IFQ_IS_EMPTY(&ifp->if_snd)) + ifq_empty(&ifp->if_snd)) return; if (nxe_ring_writeable(nr, sc->sc_cmd_consumer_cur) < NXE_TXD_DESCS) { |