From owner-freebsd-bugs Tue Apr 23 22: 0:25 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 1DA3737B422 for ; Tue, 23 Apr 2002 22:00:06 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g3O506881991; Tue, 23 Apr 2002 22:00:06 -0700 (PDT) (envelope-from gnats) Date: Tue, 23 Apr 2002 22:00:06 -0700 (PDT) Message-Id: <200204240500.g3O506881991@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: The Anarcat Subject: Re: kern/35720: Patch to vr(4) to fix network load problems Reply-To: The Anarcat Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR kern/35720; it has been noted by GNATS. From: The Anarcat To: freebsd-gnats-submit@FreeBSD.org, dominic_marks@btinternet.com Cc: Subject: Re: kern/35720: Patch to vr(4) to fix network load problems Date: Wed, 24 Apr 2002 00:50:52 -0400 I had to hack the source to apply the patch on -stable. I can confirm the fix works on stable, please commit! The .h file is not affected.=20 --- if_vr.c.orig Sun Dec 16 10:46:08 2001 +++ if_vr.c Wed Apr 24 00:24:17 2002 @@ -1308,14 +1308,24 @@ static void vr_start(ifp) struct ifnet *ifp; { + register int i; struct vr_softc *sc; struct mbuf *m_head =3D NULL; - struct vr_chain *cur_tx =3D NULL, *start_tx; + struct vr_chain *cur_tx =3D NULL, *start_tx, *tx_item; =20 sc =3D ifp->if_softc; =20 - if (ifp->if_flags & IFF_OACTIVE) + if (ifp->if_flags & IFF_OACTIVE) { + for (i =3D 0; i < VR_TX_LIST_CNT; i++) { + tx_item =3D &sc->vr_cdata.vr_tx_chain[i]; + if (tx_item->vr_mbuf !=3D NULL) { + m_freem (tx_item->vr_mbuf); + tx_item->vr_mbuf =3D NULL; + ifp->if_flags &=3D ~IFF_OACTIVE; + } + } return; + } =20 /* * Check for an available queue slot. If there are none, --=20 N'aimer qu'un seul est barbarie, car c'est au d=E9triment de tous les autres. F=FBt-ce l'amour de Dieu. - Nietzsche, "Par del=E0 le bien et le mal" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message