sfxge: avoid TSO packets collapses bacause of not 2K aligned data
Sponsored by: Solarflare Communications, Inc. MFC after: 2 days Differential Revision: https://reviews.freebsd.org/D4310
This commit is contained in:
parent
4424a685c2
commit
cb3acb3e9b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=291488
@ -51,11 +51,13 @@
|
||||
|
||||
/* Maximum number of DMA segments needed to map an mbuf chain. With
|
||||
* TSO, the mbuf length may be just over 64K, divided into 2K mbuf
|
||||
* clusters. (The chain could be longer than this initially, but can
|
||||
* be shortened with m_collapse().)
|
||||
* clusters taking into account that the first may be not 2K cluster
|
||||
* boundary aligned.
|
||||
* The chain could be longer than this initially, but can be shortened
|
||||
* with m_collapse().
|
||||
*/
|
||||
#define SFXGE_TX_MAPPING_MAX_SEG \
|
||||
(1 + howmany(SFXGE_TSO_MAX_SIZE, MCLBYTES))
|
||||
(1 + howmany(SFXGE_TSO_MAX_SIZE, MCLBYTES) + 1)
|
||||
|
||||
/*
|
||||
* Buffer mapping flags.
|
||||
|
Loading…
Reference in New Issue
Block a user