opnsense-src/sys/dev/virtio/network
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
..
if_vtnet.c vtnet: Avoid ifdefs based on __NO_STRICT_ALIGNMENT 2024-02-04 22:43:49 -07:00
if_vtnetvar.h vtnet: Account for the padding when selecting allocation size 2024-02-04 22:43:39 -07:00
virtio_net.h virtio(4): Fix a typo in a source code comment 2024-01-22 21:59:06 +01:00