svn commit: r351615 - head/sys/sys

Gleb Smirnoff glebius at FreeBSD.org
Fri Aug 30 00:03:42 UTC 2019


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


More information about the svn-src-head mailing list