Date: Mon, 12 Jan 2015 15:48:17 +0000 (UTC) From: Gleb Smirnoff <glebius@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r277074 - projects/ifnet/sys/sys Message-ID: <201501121548.t0CFmHo1077099@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201501121548.t0CFmHo1077099>