Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src-draft/trunk]: src/sys/dev/pci Use IFQ_SET_MAXLEN
details: https://anonhg.NetBSD.org/src-all/rev/1846c58a6118
branches: trunk
changeset: 377120:1846c58a6118
user: Martin Husemann <martin%NetBSD.org@localhost>
date: Tue Sep 20 18:29:07 2022 +0200
description:
Use IFQ_SET_MAXLEN
diffstat:
sys/dev/pci/if_iwm.c | 2 +-
sys/dev/pci/if_rtwn.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diffs (24 lines):
diff -r 372eb4ad6416 -r 1846c58a6118 sys/dev/pci/if_iwm.c
--- a/sys/dev/pci/if_iwm.c Tue Sep 20 18:28:12 2022 +0200
+++ b/sys/dev/pci/if_iwm.c Tue Sep 20 18:29:07 2022 +0200
@@ -8159,7 +8159,7 @@ iwm_config_complete(struct iwm_softc *sc
ic->ic_opmode = IEEE80211_M_STA; /* default to BSS mode */
/* init radio send queue */
- sc->sc_sendq.ifq_maxlen = ifqmaxlen;
+ IFQ_SET_MAXLEN(&sc->sc_sendq, IFQ_MAXLEN);
IFQ_LOCK_INIT(&sc->sc_sendq);
/*
diff -r 372eb4ad6416 -r 1846c58a6118 sys/dev/pci/if_rtwn.c
--- a/sys/dev/pci/if_rtwn.c Tue Sep 20 18:28:12 2022 +0200
+++ b/sys/dev/pci/if_rtwn.c Tue Sep 20 18:29:07 2022 +0200
@@ -340,7 +340,7 @@ rtwn_attach(device_t parent, device_t se
ic->ic_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST;
/* init radio send queue */
- sc->sc_sendq.ifq_maxlen = ifqmaxlen;
+ IFQ_SET_MAXLEN(&sc->sc_sendq, IFQ_MAXLEN);
IFQ_LOCK_INIT(&sc->sc_sendq);
/*
Home |
Main Index |
Thread Index |
Old Index