From owner-cvs-all Thu Oct 21 12:42:19 1999 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 66B9514FD4; Thu, 21 Oct 1999 12:42:04 -0700 (PDT) (envelope-from wpaul@FreeBSD.org) Received: (from wpaul@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id MAA09097; Thu, 21 Oct 1999 12:42:04 -0700 (PDT) (envelope-from wpaul@FreeBSD.org) Message-Id: <199910211942.MAA09097@freefall.freebsd.org> From: Bill Paul Date: Thu, 21 Oct 1999 12:42:04 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/pci if_rl.c if_rlreg.h Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk wpaul 1999/10/21 12:42:04 PDT Modified files: sys/pci if_rl.c if_rlreg.h Log: Make some tweaks to the RealTek driver: - Fix a bug in rl_rxeof() handler: in the case where the packet wraps from the end of the receive buffer back to the beginning, we need to insure that at least sizeof(ether_header) bytes make it into the first mbuf. If we don't, then doing eh = mtod(m, struct ether_header *) loses. To avoid this, we use m_pullup() to suck at least MHLEN - RL_ETHER_ALIGN bytes into the first mbuf, which should also help small packets fit into a single mbuf. Pointed out by: Philip A. Prindeville - Make the transmit threshold autotuning: start off with a small value and jack it up when TX underruns are detected. - Also improve TX error recovery: kick the chip in the head with a reset/init sequence to make sure it recovers afer a transmit error. Revision Changes Path 1.35 +27 -13 src/sys/pci/if_rl.c 1.14 +4 -2 src/sys/pci/if_rlreg.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message