diff options
author | arybchik <arybchik@FreeBSD.org> | 2015-01-29 19:02:25 +0000 |
---|---|---|
committer | arybchik <arybchik@FreeBSD.org> | 2015-01-29 19:02:25 +0000 |
commit | 29730cbc73a86015328c02e08bed32b537b35891 (patch) | |
tree | 080dd049b845723250fdbdb6196a80e6e0c45964 | |
parent | ca8d3fdee681b07f7bd1a266dc801d9dd2d356b0 (diff) | |
download | FreeBSD-src-29730cbc73a86015328c02e08bed32b537b35891.zip FreeBSD-src-29730cbc73a86015328c02e08bed32b537b35891.tar.gz |
sfxge: Do not bzero() DMA allocated memory once again
sfxge_dma_alloc() calls bus_dmamem_alloc() with BUS_DMA_ZERO flag, so
allocated memory is already filled in by zeros
Sponsored by: Solarflare Communications, Inc.
Approved by: gnn (mentor)
-rw-r--r-- | sys/dev/sfxge/sfxge_port.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/dev/sfxge/sfxge_port.c b/sys/dev/sfxge/sfxge_port.c index 6e28d7c..ae81505 100644 --- a/sys/dev/sfxge/sfxge_port.c +++ b/sys/dev/sfxge/sfxge_port.c @@ -583,7 +583,6 @@ sfxge_port_init(struct sfxge_softc *sc) M_SFXGE, M_WAITOK | M_ZERO); if ((rc = sfxge_dma_alloc(sc, EFX_PHY_STATS_SIZE, phy_stats_buf)) != 0) goto fail; - bzero(phy_stats_buf->esm_base, phy_stats_buf->esm_size); sfxge_phy_stat_init(sc); sysctl_ctx = device_get_sysctl_ctx(sc->dev); @@ -605,7 +604,6 @@ sfxge_port_init(struct sfxge_softc *sc) M_SFXGE, M_WAITOK | M_ZERO); if ((rc = sfxge_dma_alloc(sc, EFX_MAC_STATS_SIZE, mac_stats_buf)) != 0) goto fail2; - bzero(mac_stats_buf->esm_base, mac_stats_buf->esm_size); sfxge_mac_stat_init(sc); port->init_state = SFXGE_PORT_INITIALIZED; |