From 568c57f368a5b09aa3cac9b6d7ddb6fae11059c0 Mon Sep 17 00:00:00 2001 From: harti Date: Wed, 29 Oct 2003 12:59:44 +0000 Subject: 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. --- sys/dev/hatm/if_hatm.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'sys/dev/hatm/if_hatm.c') 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); -- cgit v1.1