diff options
author | arybchik <arybchik@FreeBSD.org> | 2015-03-25 13:06:37 +0000 |
---|---|---|
committer | arybchik <arybchik@FreeBSD.org> | 2015-03-25 13:06:37 +0000 |
commit | 4e10773aa14a4e137cf1256b93ac88b697203507 (patch) | |
tree | 606f52b6552d6688bd4aa3816cc3a559178ba700 | |
parent | 2f95e74aa7fc02e9ffa1bec17a970d1ac3e63175 (diff) | |
download | FreeBSD-src-4e10773aa14a4e137cf1256b93ac88b697203507.zip FreeBSD-src-4e10773aa14a4e137cf1256b93ac88b697203507.tar.gz |
MFC: 279179
sfxge: DMA allocated memory is set to zeros because of BUS_DMA_ZERO flag
It is not required to set it to zeros once again.
Sponsored by: Solarflare Communications, Inc.
Approved by: gnn (mentor)
-rw-r--r-- | sys/dev/sfxge/sfxge_rx.c | 1 | ||||
-rw-r--r-- | sys/dev/sfxge/sfxge_tx.c | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/sys/dev/sfxge/sfxge_rx.c b/sys/dev/sfxge/sfxge_rx.c index e8a84d4..fdb7901 100644 --- a/sys/dev/sfxge/sfxge_rx.c +++ b/sys/dev/sfxge/sfxge_rx.c @@ -1113,7 +1113,6 @@ sfxge_rx_qinit(struct sfxge_softc *sc, unsigned int index) /* Allocate and zero DMA space. */ if ((rc = sfxge_dma_alloc(sc, EFX_RXQ_SIZE(sc->rxq_entries), esmp)) != 0) return (rc); - (void)memset(esmp->esm_base, 0, EFX_RXQ_SIZE(sc->rxq_entries)); /* Allocate buffer table entries. */ sfxge_sram_buf_tbl_alloc(sc, EFX_RXQ_NBUFS(sc->rxq_entries), diff --git a/sys/dev/sfxge/sfxge_tx.c b/sys/dev/sfxge/sfxge_tx.c index e23d94f..a3a1788 100644 --- a/sys/dev/sfxge/sfxge_tx.c +++ b/sys/dev/sfxge/sfxge_tx.c @@ -1399,7 +1399,6 @@ sfxge_tx_qinit(struct sfxge_softc *sc, unsigned int txq_index, /* Allocate and zero DMA space for the descriptor ring. */ if ((rc = sfxge_dma_alloc(sc, EFX_TXQ_SIZE(sc->txq_entries), esmp)) != 0) return (rc); - (void)memset(esmp->esm_base, 0, EFX_TXQ_SIZE(sc->txq_entries)); /* Allocate buffer table entries. */ sfxge_sram_buf_tbl_alloc(sc, EFX_TXQ_NBUFS(sc->txq_entries), |