diff options
author | Gleb Smirnoff <glebius@FreeBSD.org> | 2014-03-22 18:24:44 +0000 |
---|---|---|
committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2014-03-22 18:24:44 +0000 |
commit | c1974e298d1f9efaafbd2724b15f2c2df955f5e5 (patch) | |
tree | 3b2dbc4f8df0e7c257a3b2780789dc7983291070 /sys/dev/sfxge/sfxge_tx.h | |
parent | 97bd480fe38abb5950359b9d864a62037b4ab5f7 (diff) | |
download | src-c1974e298d1f9efaafbd2724b15f2c2df955f5e5.tar.gz src-c1974e298d1f9efaafbd2724b15f2c2df955f5e5.zip |
sfxge: limit software Tx queue size.
Previous implementation limits put queue size only (when Tx lock can't
be acquired), but get queue may grow unboundedly which results in mbuf
pools exhaustion and latency growth.
Submitted by: Andrew Rybchenko <Andrew.Rybchenko at oktetlabs.ru>
Sponsored by: Solarflare Communications, Inc.
Notes
Notes:
svn path=/head/; revision=263649
Diffstat (limited to 'sys/dev/sfxge/sfxge_tx.h')
-rw-r--r-- | sys/dev/sfxge/sfxge_tx.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/sfxge/sfxge_tx.h b/sys/dev/sfxge/sfxge_tx.h index 8c74729eb4e7..33ce8b9126f9 100644 --- a/sys/dev/sfxge/sfxge_tx.h +++ b/sys/dev/sfxge/sfxge_tx.h @@ -75,7 +75,8 @@ struct sfxge_tx_mapping { enum sfxge_tx_buf_flags flags; }; -#define SFXGE_TX_MAX_DEFERRED 64 +#define SFXGE_TX_DPL_GET_PKT_LIMIT_DEFAULT 64 +#define SFXGE_TX_DPL_PUT_PKT_LIMIT_DEFAULT 64 /* * Deferred packet list. |