diff options
author | sam <sam@FreeBSD.org> | 2005-01-18 19:42:17 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2005-01-18 19:42:17 +0000 |
commit | cdb6261cd573b4ba8ebe5d87634e22ae50a8917b (patch) | |
tree | 9ffb4afc2e1f522890c31624110ad089568a10c3 | |
parent | 5f9d7fe992ab57ec28e14e0de5197e4d2ca87026 (diff) | |
download | FreeBSD-src-cdb6261cd573b4ba8ebe5d87634e22ae50a8917b.zip FreeBSD-src-cdb6261cd573b4ba8ebe5d87634e22ae50a8917b.tar.gz |
adjust tx buffer allocation based on empirical testing:
o increase the max per-frame tx descriptor count and the number of tx
buffers for forthcoming fast frame support
o correct the max scatter/gather count; it cannot be larger than the
max(tx,rx,beacon) descriptor counts
-rw-r--r-- | sys/dev/ath/if_athvar.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ath/if_athvar.h b/sys/dev/ath/if_athvar.h index 9b180d7..f3ee87b 100644 --- a/sys/dev/ath/if_athvar.h +++ b/sys/dev/ath/if_athvar.h @@ -52,8 +52,8 @@ #define ATH_TIMEOUT 1000 #define ATH_RXBUF 40 /* number of RX buffers */ -#define ATH_TXBUF 60 /* number of TX buffers */ -#define ATH_TXDESC 8 /* number of descriptors per buffer */ +#define ATH_TXBUF 100 /* number of TX buffers */ +#define ATH_TXDESC 10 /* number of descriptors per buffer */ #define ATH_TXMAXTRY 11 /* max number of transmit attempts */ #define ATH_TXINTR_PERIOD 5 /* max number of batched tx descriptors */ @@ -89,7 +89,7 @@ struct ath_buf { struct mbuf *bf_m; /* mbuf for buf */ struct ieee80211_node *bf_node; /* pointer to the node */ bus_size_t bf_mapsize; -#define ATH_MAX_SCATTER 64 +#define ATH_MAX_SCATTER ATH_TXDESC /* max(tx,rx,beacon) desc's */ bus_dma_segment_t bf_segs[ATH_MAX_SCATTER]; }; typedef STAILQ_HEAD(, ath_buf) ath_bufhead; |