Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Feb 2009 16:17:05 +0000 (UTC)
From:      Sam Leffler <sam@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r188582 - in head/sys/dev: iwn wpi
Message-ID:  <200902131617.n1DGH5nk093151@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sam
Date: Fri Feb 13 16:17:05 2009
New Revision: 188582
URL: http://svn.freebsd.org/changeset/base/188582

Log:
  remove references to ic_stats
  
  Spotted by:	Lucius Windschuh <lwindschuh@googlemail.com>

Modified:
  head/sys/dev/iwn/if_iwn.c
  head/sys/dev/wpi/if_wpi.c

Modified: head/sys/dev/iwn/if_iwn.c
==============================================================================
--- head/sys/dev/iwn/if_iwn.c	Fri Feb 13 16:00:19 2009	(r188581)
+++ head/sys/dev/iwn/if_iwn.c	Fri Feb 13 16:17:05 2009	(r188582)
@@ -1442,7 +1442,6 @@ iwn_rx_intr(struct iwn_softc *sc, struct
 	if (len < sizeof (struct ieee80211_frame)) {
 		DPRINTF(sc, IWN_DEBUG_RECV, "%s: frame too short: %d\n",
 		    __func__, len);
-		ic->ic_stats.is_rx_tooshort++;
 		ifp->if_ierrors++;
 		return;
 	}
@@ -1452,7 +1451,6 @@ iwn_rx_intr(struct iwn_softc *sc, struct
 	if (mnew == NULL) {
 		DPRINTF(sc, IWN_DEBUG_ANY, "%s: no mbuf to restock ring\n",
 		    __func__);
-		ic->ic_stats.is_rx_nobuf++;
 		ifp->if_ierrors++;
 		return;
 	}
@@ -1463,7 +1461,6 @@ iwn_rx_intr(struct iwn_softc *sc, struct
 		device_printf(sc->sc_dev,
 		    "%s: bus_dmamap_load failed, error %d\n", __func__, error);
 		m_freem(mnew);
-		ic->ic_stats.is_rx_nobuf++;	/* XXX need stat */
 		ifp->if_ierrors++;
 		return;
 	}

Modified: head/sys/dev/wpi/if_wpi.c
==============================================================================
--- head/sys/dev/wpi/if_wpi.c	Fri Feb 13 16:00:19 2009	(r188581)
+++ head/sys/dev/wpi/if_wpi.c	Fri Feb 13 16:17:05 2009	(r188582)
@@ -1478,7 +1478,6 @@ wpi_rx_intr(struct wpi_softc *sc, struct
 	if (mnew == NULL) {
 		DPRINTFN(WPI_DEBUG_RX, ("%s: no mbuf to restock ring\n",
 		    __func__));
-		ic->ic_stats.is_rx_nobuf++;
 		ifp->if_ierrors++;
 		return;
 	}
@@ -1489,7 +1488,6 @@ wpi_rx_intr(struct wpi_softc *sc, struct
 		device_printf(sc->sc_dev,
 		    "%s: bus_dmamap_load failed, error %d\n", __func__, error);
 		m_freem(mnew);
-		ic->ic_stats.is_rx_nobuf++;	/* XXX need stat */
 		ifp->if_ierrors++;
 		return;
 	}



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