aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/sfxge/sfxge_tx.c
diff options
context:
space:
mode:
authorAndrew Rybchenko <arybchik@FreeBSD.org>2015-02-21 06:24:48 +0000
committerAndrew Rybchenko <arybchik@FreeBSD.org>2015-02-21 06:24:48 +0000
commit45923e76906ddbcb280d40ff56c747a380291e40 (patch)
tree49667e4a0a10ac2f27a990725416720f4748c05c /sys/dev/sfxge/sfxge_tx.c
parent0f8bd5df8d5588442a8f53c2c79cde42c6e7be6b (diff)
Notes
Diffstat (limited to 'sys/dev/sfxge/sfxge_tx.c')
-rw-r--r--sys/dev/sfxge/sfxge_tx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/sfxge/sfxge_tx.c b/sys/dev/sfxge/sfxge_tx.c
index ffd5d936e895d..f03d3a735528b 100644
--- a/sys/dev/sfxge/sfxge_tx.c
+++ b/sys/dev/sfxge/sfxge_tx.c
@@ -72,10 +72,10 @@ __FBSDID("$FreeBSD$");
* maximum mbuf length we might need more than a ring-ful of
* descriptors, but this should not happen in practice except
* due to deliberate attack. In that case we will truncate
- * the output at a packet boundary. Allow for a reasonable
- * minimum MSS of 512.
+ * the output at a packet boundary.
*/
-#define SFXGE_TSO_MAX_DESC ((65535 / 512) * 2 + SFXGE_TX_MAPPING_MAX_SEG - 1)
+#define SFXGE_TSO_MAX_DESC \
+ (SFXGE_TSO_MAX_SEGS * 2 + SFXGE_TX_MAPPING_MAX_SEG - 1)
#define SFXGE_TXQ_BLOCK_LEVEL(_entries) ((_entries) - SFXGE_TSO_MAX_DESC)
#ifdef SFXGE_HAVE_MQ