freebsd-src/sys/dev/virtio
Warner Losh e9da71cd35 vtnet: Better adjust for ethernet alignment.
Move adjustment of the mbuf from where we allocate it to where we are
about to queue it to the device. Do this only on those platforms that
require it. This allows us to receive an entire jumbo frame on other
platforms. It also doesn't make the adjustment on subsequent frames when
we queue mulitple mbufs for LRO operations.

For the normal use case on armv7, there's no difference because we only
ever allocate one mbuf. However, for the LRO cases it increases what's
available in LRO. It also ensure that we get enough mbufs in those cases
as well (though I have no ability to test this on a LRO scenario with
armv7).

This has the side effect of reverting 527b62e37e68.

Fixes:			527b62e37e68
Sponsored by:		Netflix
2023-12-27 23:25:53 -07:00
..
balloon sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
block sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
console sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
gpu vtgpu: Fix the physical memory size 2023-09-21 11:50:29 +01:00
mmio sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
network vtnet: Better adjust for ethernet alignment. 2023-12-27 23:25:53 -07:00
pci sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
random sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
scsi sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
virtio.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
virtio.h virtio: remove virtio_alloc_virtqueues' flags arg 2023-09-18 22:03:31 +02:00
virtio_bus_if.m virtio: remove virtio_alloc_virtqueues' flags arg 2023-09-18 22:03:31 +02:00
virtio_config.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
virtio_endian.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
virtio_ids.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
virtio_if.m sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
virtio_ring.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
virtqueue.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
virtqueue.h virtio: use bool for boolean functions 2023-09-18 22:03:26 +02:00