summaryrefslogtreecommitdiffstats
path: root/sys/dev/cxgb/cxgb_adapter.h
diff options
context:
space:
mode:
authorkmacy <kmacy@FreeBSD.org>2007-04-04 05:29:18 +0000
committerkmacy <kmacy@FreeBSD.org>2007-04-04 05:29:18 +0000
commit7db0b7227a660d06b4fef79738da201c3b2d64fc (patch)
tree8f17ab5ec1d380c0facb0940ee00d67309a56cd4 /sys/dev/cxgb/cxgb_adapter.h
parentb366dad5ed87beff464b42ed6cd36288df45107e (diff)
downloadFreeBSD-src-7db0b7227a660d06b4fef79738da201c3b2d64fc.zip
FreeBSD-src-7db0b7227a660d06b4fef79738da201c3b2d64fc.tar.gz
Make DMA tags per-queue to facilate parallel mappings
Defer mbuf allocation and initialization until after data has already been received in a cluster This reduces cpu utilization somewhat, but it only improves the rx path. Recent changes to TCP appear to make us rate limited by the TX path. This is the first step in reducing mbuf management overhead for manipulating clusters. MFC after: 3 days
Diffstat (limited to 'sys/dev/cxgb/cxgb_adapter.h')
-rw-r--r--sys/dev/cxgb/cxgb_adapter.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/cxgb/cxgb_adapter.h b/sys/dev/cxgb/cxgb_adapter.h
index 62efb1a..288d620 100644
--- a/sys/dev/cxgb/cxgb_adapter.h
+++ b/sys/dev/cxgb/cxgb_adapter.h
@@ -175,7 +175,9 @@ struct sge_fl {
uint64_t empty;
bus_dma_tag_t desc_tag;
bus_dmamap_t desc_map;
- struct mtx fl_locks[8];
+ bus_dma_tag_t entry_tag;
+ uma_zone_t zone;
+ int type;
};
struct tx_desc;
@@ -201,6 +203,7 @@ struct sge_txq {
uint64_t restarts;
bus_dma_tag_t desc_tag;
bus_dmamap_t desc_map;
+ bus_dma_tag_t entry_tag;
struct mtx lock;
};
OpenPOWER on IntegriCloud