From owner-cvs-all Sat Feb 22 6:46:34 2003 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 796F337B401; Sat, 22 Feb 2003 06:46:32 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 19C6543F75; Sat, 22 Feb 2003 06:46:32 -0800 (PST) (envelope-from bmilekic@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h1MEkV0U057649; Sat, 22 Feb 2003 06:46:31 -0800 (PST) (envelope-from bmilekic@repoman.freebsd.org) Received: (from bmilekic@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h1MEkVWF057648; Sat, 22 Feb 2003 06:46:31 -0800 (PST) Message-Id: <200302221446.h1MEkVWF057648@repoman.freebsd.org> From: Bosko Milekic Date: Sat, 22 Feb 2003 06:46:31 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/pci if_xl.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG bmilekic 2003/02/22 06:46:31 PST Modified files: sys/pci if_xl.c Log: Make xl use m_getcl() to allocate an mbuf and a cluster in one shot, as opposed to one after the other. This is faster in both -CURRENT and -STABLE. Additionally, there is less code duplication for error-checking. One thing to note is that this code seems to return(1) when no buffers are available; perhaps ENOBUFS should be the correct return value? Partially submitted & tested by: Hiten Pandya MFC after: 1 week Revision Changes Path 1.130 +5 -19 src/sys/pci/if_xl.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message