1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-29 12:03:03 +00:00

account tx retry-fail errors in if_oerrors.

This commit is contained in:
Damien Bergamini 2006-01-21 12:46:57 +00:00
parent a5f92d5a54
commit f014cff4cd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=154633

View File

@ -2305,9 +2305,16 @@ ural_amrr_update(usbd_xfer_handle xfer, usbd_private_handle priv,
{
struct ural_softc *sc = (struct ural_softc *)priv;
struct ural_amrr *amrr = &sc->amrr;
struct ifnet *ifp = sc->sc_ic.ic_ifp;
if (status != USBD_NORMAL_COMPLETION)
if (status != USBD_NORMAL_COMPLETION) {
device_printf(sc->sc_dev, "could not retrieve Tx statistics - "
"cancelling automatic rate control\n");
return;
}
/* count TX retry-fail as Tx errors */
ifp->if_oerrors += sc->sta[9];
amrr->retrycnt =
sc->sta[7] + /* TX one-retry ok count */