svn commit: r330157 - stable/11/sys/dev/iwm
Eitan Adler
eadler at FreeBSD.org
Thu Mar 1 05:01:56 UTC 2018
Author: eadler
Date: Thu Mar 1 05:01:55 2018
New Revision: 330157
URL: https://svnweb.freebsd.org/changeset/base/330157
Log:
MFC r306900:
iwm: add missing 'Rx errors' counter incrementation.
Modified:
stable/11/sys/dev/iwm/if_iwm.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/dev/iwm/if_iwm.c
==============================================================================
--- stable/11/sys/dev/iwm/if_iwm.c Thu Mar 1 04:59:55 2018 (r330156)
+++ stable/11/sys/dev/iwm/if_iwm.c Thu Mar 1 05:01:55 2018 (r330157)
@@ -2918,14 +2918,14 @@ iwm_mvm_rx_rx_mpdu(struct iwm_softc *sc,
device_printf(sc->sc_dev,
"dsp size out of range [0,20]: %d\n",
phy_info->cfg_phy_cnt);
- return;
+ goto fail;
}
if (!(rx_pkt_status & IWM_RX_MPDU_RES_STATUS_CRC_OK) ||
!(rx_pkt_status & IWM_RX_MPDU_RES_STATUS_OVERRUN_OK)) {
IWM_DPRINTF(sc, IWM_DEBUG_RECV,
"Bad CRC or FIFO: 0x%08X.\n", rx_pkt_status);
- return; /* drop */
+ goto fail;
}
if (sc->sc_capaflags & IWM_UCODE_TLV_FLAGS_RX_ENERGY_API) {
@@ -2947,7 +2947,7 @@ iwm_mvm_rx_rx_mpdu(struct iwm_softc *sc,
if (iwm_rx_addbuf(sc, IWM_RBUF_SIZE, sc->rxq.cur) != 0) {
device_printf(sc->sc_dev, "%s: unable to add more buffers\n",
__func__);
- return;
+ goto fail;
}
IWM_DPRINTF(sc, IWM_DEBUG_RECV,
@@ -3020,6 +3020,10 @@ iwm_mvm_rx_rx_mpdu(struct iwm_softc *sc,
ieee80211_input_mimo_all(ic, m, &rxs);
}
IWM_LOCK(sc);
+
+ return;
+
+fail: counter_u64_add(ic->ic_ierrors, 1);
}
static int
More information about the svn-src-stable-11
mailing list