freebsd-dev/sys/dev/virtio/network
Bryan Venteicher 443c3d0bd1 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.
2014-02-02 05:15:36 +00:00
..
if_vtnet.c Do not place the sglist used for Rx/Tx on the stack 2014-02-02 05:15:36 +00:00
if_vtnetvar.h Do not place the sglist used for Rx/Tx on the stack 2014-02-02 05:15:36 +00:00
virtio_net.h Sync VirtIO net device header file from recent Linux 2013-09-01 04:23:54 +00:00