From owner-cvs-all Mon Jul 8 17:53:34 2002 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 1AC5737B400; Mon, 8 Jul 2002 17:53:30 -0700 (PDT) Received: from root.com (nexus.root.com [209.102.106.178]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4200943E42; Mon, 8 Jul 2002 17:53:29 -0700 (PDT) (envelope-from dg@root.com) Received: (from dg@localhost) by root.com (8.11.2/8.11.2) id g690mMh72245; Mon, 8 Jul 2002 17:48:22 -0700 (PDT) (envelope-from dg) Date: Mon, 8 Jul 2002 17:48:22 -0700 From: David Greenman-Lawrence To: Mike Silbersack Cc: Peter Wemm , Luigi Rizzo , Don Lewis , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/dev/fxp if_fxp.c Message-ID: <20020708174822.B72088@nexus.root.com> References: <20020708215808.B34E53808@overcee.wemm.org> <20020708171914.C19349-100000@patrocles.silby.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020708171914.C19349-100000@patrocles.silby.com>; from silby@silby.com on Mon, Jul 08, 2002 at 05:28:48PM -0500 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 >There must be an oddity in how the fxp driver handles the timeout handling >vs other drivers. > >Hm, I see the problem. The fxp driver releases transmit mbufs in both >fxp_intr _and_ in fxp_tick. fxp_tick needs code such as: > > > for (txp = sc->cbl_first; sc->tx_queued && > (txp->cb_status & FXP_CB_STATUS_C) != 0; > txp = txp->next) { > if (txp->mb_head != NULL) { > m_freem(txp->mb_head); > txp->mb_head = NULL; > } > sc->tx_queued--; > } > sc->cbl_first = txp; >+ if (sc->tx_queued == 0) >+ ifp->if_timer = 0; > >Give that a whirl and see if it solves the problem. Yes, that should fix the problem. -DG D.G.Lawrence Download Technologies, Inc. - http://www.downloadtech.com - (866) 399 8500 TeraSolutions, Inc. - http://www.terasolutions.com - (503) 288 9544 The FreeBSD Project - http://www.freebsd.org Pave the road of life with opportunities. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message