Author: glebius Date: Fri Aug 30 00:03:41 2019 New Revision: 351615 URL: https://svnweb.freebsd.org/changeset/base/351615
Log: Allow mbuf queues to be unlimited. There is number of legacy code that uses ifqueue without setting a limit on it first. Easier to allow for that rather than improve legacy drivers. Modified: head/sys/sys/mbuf.h Modified: head/sys/sys/mbuf.h ============================================================================== --- head/sys/sys/mbuf.h Thu Aug 29 23:23:12 2019 (r351614) +++ head/sys/sys/mbuf.h Fri Aug 30 00:03:41 2019 (r351615) @@ -1434,7 +1434,7 @@ static inline int mbufq_full(const struct mbufq *mq) { - return (mq->mq_len >= mq->mq_maxlen); + return (mq->mq_maxlen > 0 && mq->mq_len >= mq->mq_maxlen); } static inline int _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"