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/aca15d3d6e40
branches: trunk
changeset: 378026:aca15d3d6e40
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 516d60d90554 -r aca15d3d6e40 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 516d60d90554 -r aca15d3d6e40 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