opnsense-src/sys/dev/virtio
Warner Losh 0ea4b40848 vtnet: Avoid ifdefs based on __NO_STRICT_ALIGNMENT
Some platforms require an adjustment of the ethernet hearders. Rather
than make this be on __NO_STRICT_ALIGNMENT being defined, define
VTNET_ETHER_ALIGN to be either 0 or ETHER_ALIGN (aka 2). Add a test to
the if statements to only do them when != 0. This eliminates the #ifdef
sprinkled in the code, still communicates the intent and gives the same
compiled results.

Sponsored by:		Netflix
Reviewed by:		bz, bryanv
Differential Revision:	https://reviews.freebsd.org/D43654
2024-02-04 22:43:49 -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: Avoid ifdefs based on __NO_STRICT_ALIGNMENT 2024-02-04 22:43:49 -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 virtio: Add more device IDs from the specification 2024-01-30 23:08:12 -06: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 virtio: Add more device IDs from the specification 2024-01-30 23:08:12 -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