mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-01 12:19:28 +00:00
account tx retry-fail errors in if_oerrors.
This commit is contained in:
parent
a5f92d5a54
commit
f014cff4cd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=154633
@ -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_softc *sc = (struct ural_softc *)priv;
|
||||||
struct ural_amrr *amrr = &sc->amrr;
|
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;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* count TX retry-fail as Tx errors */
|
||||||
|
ifp->if_oerrors += sc->sta[9];
|
||||||
|
|
||||||
amrr->retrycnt =
|
amrr->retrycnt =
|
||||||
sc->sta[7] + /* TX one-retry ok count */
|
sc->sta[7] + /* TX one-retry ok count */
|
||||||
|
Loading…
Reference in New Issue
Block a user