diff options
author | bryanv <bryanv@FreeBSD.org> | 2014-02-02 05:15:36 +0000 |
---|---|---|
committer | bryanv <bryanv@FreeBSD.org> | 2014-02-02 05:15:36 +0000 |
commit | e20207898f027cd1a95ce57fd619395353ac553d (patch) | |
tree | a1b3643d200b5e8dd9588a1efbbb3afc8eae69d0 /Makefile | |
parent | 734d68c62464e8dd39078271c026027f204ed144 (diff) | |
download | FreeBSD-src-e20207898f027cd1a95ce57fd619395353ac553d.zip FreeBSD-src-e20207898f027cd1a95ce57fd619395353ac553d.tar.gz |
Do not place the sglist used for Rx/Tx on the stack
The sglist segment array has grown to a bit over 512 bytes (on
64-bit system) which is more than ideally should be put on the
stack. Instead allocate an appropriately sized sglist and hang
it off each Rx/Tx queue structure.
Bump the maximum number of Tx segments to 64 to make it unlikely
we'll have defragment an mbuf chain. Our previous count was
rounded up to this value since it is the next power of two, so
effective memory usage should not change.
Also only allocate the maximum number of Tx segments if TSO was
negotiated.
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions