svn commit: r280585 - stable/10/sys/dev/sfxge

Andrew Rybchenko arybchik at FreeBSD.org
Wed Mar 25 13:06:39 UTC 2015


Author: arybchik
Date: Wed Mar 25 13:06:37 2015
New Revision: 280585
URL: https://svnweb.freebsd.org/changeset/base/280585

Log:
  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)

Modified:
  stable/10/sys/dev/sfxge/sfxge_rx.c
  stable/10/sys/dev/sfxge/sfxge_tx.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/sfxge/sfxge_rx.c
==============================================================================
--- stable/10/sys/dev/sfxge/sfxge_rx.c	Wed Mar 25 13:05:33 2015	(r280584)
+++ stable/10/sys/dev/sfxge/sfxge_rx.c	Wed Mar 25 13:06:37 2015	(r280585)
@@ -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: stable/10/sys/dev/sfxge/sfxge_tx.c
==============================================================================
--- stable/10/sys/dev/sfxge/sfxge_tx.c	Wed Mar 25 13:05:33 2015	(r280584)
+++ stable/10/sys/dev/sfxge/sfxge_tx.c	Wed Mar 25 13:06:37 2015	(r280585)
@@ -1399,7 +1399,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),


More information about the svn-src-all mailing list