From owner-cvs-all Mon Dec 10 19: 2:55 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id B474C37B405; Mon, 10 Dec 2001 19:02:48 -0800 (PST) Received: (from luigi@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id fBB32mU93520; Mon, 10 Dec 2001 19:02:48 -0800 (PST) (envelope-from luigi) Message-Id: <200112110302.fBB32mU93520@freefall.freebsd.org> From: Luigi Rizzo Date: Mon, 10 Dec 2001 19:02:48 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/pci if_dc.c X-FreeBSD-CVS-Branch: RELENG_4 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 luigi 2001/12/10 19:02:48 PST Modified files: (Branch: RELENG_4) sys/pci if_dc.c Log: MFC (done now because the code is slightly different from the one in -current): avoid an unnecessary copy when the packet is already in a single buffer. With this one-line patch, a 750MHz box goes from 128kpps to 148kpps (full wire speed) even with NICs that require packets in a single mbuf. Trivia: the 21143, which can handle multiple buffers, seems to introduce extra delay between packets when they are split over multiple tx descriptors. So if you are in this situation and have CPU cycles to burn, doing the copy is the only way to achieve wire speed (short of arranging tx descriptors as an array instead of a linked list). Revision Changes Path 1.9.2.30 +3 -1 src/sys/pci/if_dc.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message