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/2a171fef0eff
branches:  trunk
changeset: 375816:2a171fef0eff
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 46e723d2068e -r 2a171fef0eff 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