svn commit: r221638 - head/sys/dev/iwn
Bernhard Schmidt
bschmidt at FreeBSD.org
Sun May 8 10:54:50 UTC 2011
Author: bschmidt
Date: Sun May 8 10:54:50 2011
New Revision: 221638
URL: http://svn.freebsd.org/changeset/base/221638
Log:
Allocate all TX rings, those will be use for TX packet aggregation.
Modified:
head/sys/dev/iwn/if_iwn.c
Modified: head/sys/dev/iwn/if_iwn.c
==============================================================================
--- head/sys/dev/iwn/if_iwn.c Sun May 8 10:35:16 2011 (r221637)
+++ head/sys/dev/iwn/if_iwn.c Sun May 8 10:54:50 2011 (r221638)
@@ -1489,13 +1489,6 @@ iwn_alloc_tx_ring(struct iwn_softc *sc,
__func__, error);
goto fail;
}
- /*
- * We only use rings 0 through 4 (4 EDCA + cmd) so there is no need
- * to allocate commands space for other rings.
- * XXX Do we really need to allocate descriptors for other rings?
- */
- if (qid > 4)
- return 0;
size = IWN_TX_RING_COUNT * sizeof (struct iwn_tx_cmd);
error = iwn_dma_contig_alloc(sc, &ring->cmd_dma, (void **)&ring->cmd,
More information about the svn-src-head
mailing list