svn commit: r277074 - projects/ifnet/sys/sys
Gleb Smirnoff
glebius at FreeBSD.org
Mon Jan 12 15:48:18 UTC 2015
Author: glebius
Date: Mon Jan 12 15:48:17 2015
New Revision: 277074
URL: https://svnweb.freebsd.org/changeset/base/277074
Log:
Add mbufq_len() inline.
Modified:
projects/ifnet/sys/sys/mbuf.h
Modified: projects/ifnet/sys/sys/mbuf.h
==============================================================================
--- projects/ifnet/sys/sys/mbuf.h Mon Jan 12 15:47:39 2015 (r277073)
+++ projects/ifnet/sys/sys/mbuf.h Mon Jan 12 15:48:17 2015 (r277074)
@@ -1257,6 +1257,13 @@ mbufq_full(struct mbufq *mq)
}
static inline int
+mbufq_len(struct mbufq *mq)
+{
+
+ return (mq->mq_len);
+}
+
+static inline int
mbufq_enqueue(struct mbufq *mq, struct mbuf *m)
{
More information about the svn-src-projects
mailing list