1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

Increase a maximum segment size of DMA to 4096. Previously it used

MCLBYTES for the segment size but it used too many Tx descriptors in
TSO case.
While I'm here adjust maximum size of the sum of all segment lengths
in a given DMA mapping to 65535, the maximum size, in bytes, of a IP
packet.
This commit is contained in:
Pyun YongHyeon 2007-06-12 02:35:01 +00:00
parent b5f0caf909
commit 1c88901672
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=170595
2 changed files with 4 additions and 2 deletions

View File

@ -1555,9 +1555,9 @@ nfe_alloc_tx_ring(struct nfe_softc *sc, struct nfe_tx_ring *ring)
BUS_SPACE_MAXADDR,
BUS_SPACE_MAXADDR,
NULL, NULL,
MCLBYTES * NFE_MAX_SCATTER,
NFE_TSO_MAXSIZE,
NFE_MAX_SCATTER,
MCLBYTES,
NFE_TSO_MAXSGSIZE,
0,
NULL, NULL,
&ring->tx_data_tag);

View File

@ -50,6 +50,8 @@
#define NFE_JMEM ((NFE_JLEN * NFE_JSLOTS) + NFE_RESID)
#define NFE_MAX_SCATTER 32
#define NFE_TSO_MAXSGSIZE 4096
#define NFE_TSO_MAXSIZE 65535
#define NFE_IRQ_STATUS 0x000
#define NFE_IRQ_MASK 0x004