Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src-draft/trunk]: src/sys/dev/usb Use IFQ_SET_MAXLEN



details:   https://anonhg.NetBSD.org/src-all/rev/26e968ba9c3c
branches:  trunk
changeset: 375811:26e968ba9c3c
user:      Martin Husemann <martin%NetBSD.org@localhost>
date:      Tue Sep 20 18:47:07 2022 +0200

description:
Use IFQ_SET_MAXLEN

diffstat:

 sys/dev/usb/usbwifi.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r f44d07228858 -r 26e968ba9c3c sys/dev/usb/usbwifi.c
--- a/sys/dev/usb/usbwifi.c     Tue Sep 20 18:46:16 2022 +0200
+++ b/sys/dev/usb/usbwifi.c     Tue Sep 20 18:47:07 2022 +0200
@@ -1207,7 +1207,7 @@ usbwifi_ic_attach(struct usbwifi *uw, in
         * quality of service to a pipe index.
         */
        for (int i = 0; i < uw->uw_txpipes; i++) {
-               uwp->uwp_sendq[i].ifq_maxlen = ifqmaxlen;
+               IFQ_SET_MAXLEN(&uwp->uwp_sendq[i], IFQ_MAXLEN);
                IFQ_LOCK_INIT(&uwp->uwp_sendq[i]);
        }
 



Home | Main Index | Thread Index | Old Index