Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Apr 2002 22:00:06 -0700 (PDT)
From:      The Anarcat <anarcat@anarcat.dyndns.org>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/35720: Patch to vr(4) to fix network load problems
Message-ID:  <200204240500.g3O506881991@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/35720; it has been noted by GNATS.

From: The Anarcat <anarcat@anarcat.dyndns.org>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200204240500.g3O506881991>