Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Nov 2004 00:43:36 +0200
From:      Ruslan Ermilov <ru@FreeBSD.org>
To:        John-Mark Gurney <jmg@FreeBSD.org>, Bruce Evans <bde@FreeBSD.org>
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/pci if_sk.c
Message-ID:  <20041117224336.GC1562@ip.net.ua>
In-Reply-To: <200411172135.iAHLZNfR098453@repoman.freebsd.org>
References:  <200411172135.iAHLZNfR098453@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--96YOpH+ONegL0A3E
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Nov 17, 2004 at 09:35:23PM +0000, John-Mark Gurney wrote:
> jmg         2004-11-17 21:35:22 UTC
>=20
>   FreeBSD src repository
>=20
>   Modified files:
>     sys/pci              if_sk.c=20
>   Log:
>   only clear the IFF_OACTIVE flag when we have a chance of being able to
>   queue a packet to the hardware... instead of when the hardware queue is
>   empty..
>  =20
>   don't initalize cur_tx now that it doesn't need to be...
>  =20
>   Pointed out by: bde
>  =20
>   Revision  Changes    Path
>   1.92      +4 -4      src/sys/pci/if_sk.c
>=20
Wrong wording.  The correct wording would be:

> clear the IFF_OACTIVE flag AS SOON AS we have a chance of being
> able to queue a packet to the hardware... instead of ONLY when
> the hardware TX queue is empty..

My old patch (that I didn't commit due to the lack of h/w),
resets IFF_OACTIVE inside the while() loop, like this:

                sc_if->sk_cdata.sk_tx_cnt--;
+               ifp->if_flags &=3D ~IFF_OACTIVE;
                SK_INC(idx, SK_TX_RING_CNT);

I believe this is more correct than what got committed,
but I cannot prove it.  ;)


Cheers,
--=20
Ruslan Ermilov
ru@FreeBSD.org
FreeBSD committer

--96YOpH+ONegL0A3E
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (FreeBSD)

iD8DBQFBm9QYqRfpzJluFF4RAkgZAJ9GdwW0oDSyNwvU9ePO+XpdKyUCRACfZUYd
W2kzqba+Zlz1QrH+EXExDEI=
=4H9x
-----END PGP SIGNATURE-----

--96YOpH+ONegL0A3E--



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