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/212352e1bdd2
branches: trunk
changeset: 371167:212352e1bdd2
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 6026ae1c00d4 -r 212352e1bdd2 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 @@
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 6026ae1c00d4 -r 212352e1bdd2 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 @@
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