summaryrefslogtreecommitdiffstats
path: root/sys/dev/hatm/if_hatm.c
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2003-10-29 12:59:44 +0000
committerharti <harti@FreeBSD.org>2003-10-29 12:59:44 +0000
commit568c57f368a5b09aa3cac9b6d7ddb6fae11059c0 (patch)
tree9d42396102479ef0a920fb92a586c9ed15b548c1 /sys/dev/hatm/if_hatm.c
parent36edae8e0d6caa4c38b5624886e0b8a21fc77870 (diff)
downloadFreeBSD-src-568c57f368a5b09aa3cac9b6d7ddb6fae11059c0.zip
FreeBSD-src-568c57f368a5b09aa3cac9b6d7ddb6fae11059c0.tar.gz
Get rid of the mutexes for the exernal buffer free lists. Use
atomic instructions instead. Remove the stuff used to track whether an external mbuf travels through the system. This is temporary only and will come back soon.
Diffstat (limited to 'sys/dev/hatm/if_hatm.c')
-rw-r--r--sys/dev/hatm/if_hatm.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/sys/dev/hatm/if_hatm.c b/sys/dev/hatm/if_hatm.c
index a35544a..14d9491 100644
--- a/sys/dev/hatm/if_hatm.c
+++ b/sys/dev/hatm/if_hatm.c
@@ -316,10 +316,6 @@ hatm_destroy_smbufs(struct hatm_softc *sc)
if_printf(&sc->ifatm.ifnet,
"%s -- mbuf page=%u card buf %u\n",
__func__, i, b);
- if (MBUF_TST_BIT(pg->hdr.used, b))
- if_printf(&sc->ifatm.ifnet,
- "%s -- mbuf page=%u used buf %u\n",
- __func__, i, b);
}
bus_dmamap_unload(sc->mbuf_tag, pg->hdr.map);
bus_dmamap_destroy(sc->mbuf_tag, pg->hdr.map);
@@ -492,8 +488,6 @@ hatm_destroy(struct hatm_softc *sc)
cv_destroy(&sc->cv_rcclose);
cv_destroy(&sc->vcc_cv);
- mtx_destroy(&sc->mbuf0_mtx);
- mtx_destroy(&sc->mbuf1_mtx);
mtx_destroy(&sc->mtx);
}
@@ -1655,13 +1649,9 @@ hatm_attach(device_t dev)
sc->he622 = 0;
sc->ifatm.phy = &sc->utopia;
- SLIST_INIT(&sc->mbuf0_list);
- SLIST_INIT(&sc->mbuf1_list);
SLIST_INIT(&sc->tpd_free);
mtx_init(&sc->mtx, device_get_nameunit(dev), MTX_NETWORK_LOCK, MTX_DEF);
- mtx_init(&sc->mbuf0_mtx, device_get_nameunit(dev), "HEb0", MTX_DEF);
- mtx_init(&sc->mbuf1_mtx, device_get_nameunit(dev), "HEb1", MTX_DEF);
cv_init(&sc->vcc_cv, "HEVCCcv");
cv_init(&sc->cv_rcclose, "RCClose");
@@ -2340,7 +2330,6 @@ hatm_stop(struct hatm_softc *sc)
for (i = 0; i < pg->hdr.nchunks; i++) {
if (MBUF_TST_BIT(pg->hdr.card, i)) {
MBUF_CLR_BIT(pg->hdr.card, i);
- MBUF_CLR_BIT(pg->hdr.used, i);
ch = (struct mbuf_chunk_hdr *) ((char *)pg +
i * pg->hdr.chunksize + pg->hdr.hdroff);
m_freem(ch->mbuf);
OpenPOWER on IntegriCloud