Source-Changes-HG archive

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

[src-draft/trunk]: src/sys/net80211 Use IFQ_SET_MAXLEN



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

description:
Use IFQ_SET_MAXLEN

diffstat:

 sys/net80211/ieee80211_netbsd.h |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 842b4808f0d8 -r efdb59a2ee63 sys/net80211/ieee80211_netbsd.h
--- a/sys/net80211/ieee80211_netbsd.h   Tue Sep 20 20:26:11 2022 +0200
+++ b/sys/net80211/ieee80211_netbsd.h   Tue Sep 20 20:26:54 2022 +0200
@@ -437,7 +437,7 @@ mbufq_init(struct mbufq *mq, int maxlen)
 
        KASSERT(maxlen <= IFQ_MAXLEN);
        memset(mq, 0, sizeof(*mq));
-       mq->q.ifq_maxlen = maxlen;
+       IFQ_SET_MAXLEN(&mq->q, maxlen);
        mq->q.ifq_len = 0;
 }
 



Home | Main Index | Thread Index | Old Index