Author: arybchik
Date: Sun Feb 22 18:56:03 2015
New Revision: 279179
URL: https://svnweb.freebsd.org/changeset/base/279179
Log:
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)
Modified:
head/sys/dev/sfxge/sfxge_rx.c
head/sys/dev/sfxge/sfxge_tx.c
Modified: head/sys/dev/sfxge/sfxge_rx.c
==============================================================================
--- head/sys/dev/sfxge/sfxge_rx.c Sun Feb 22 18:54:16 2015
(r279178)
+++ head/sys/dev/sfxge/sfxge_rx.c Sun Feb 22 18:56:03 2015
(r279179)
@@ -1113,7 +1113,6 @@ sfxge_rx_qinit(struct sfxge_softc *sc, u
/* 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),
Modified: head/sys/dev/sfxge/sfxge_tx.c
==============================================================================
--- head/sys/dev/sfxge/sfxge_tx.c Sun Feb 22 18:54:16 2015
(r279178)
+++ head/sys/dev/sfxge/sfxge_tx.c Sun Feb 22 18:56:03 2015
(r279179)
@@ -1400,7 +1400,6 @@ sfxge_tx_qinit(struct sfxge_softc *sc, u
/* 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),
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"