mirror of
https://github.com/opnsense/src.git
synced 2026-03-09 17:51:07 -04:00
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 (cherry picked from commit 0ea4b4084845bfeedc8c692e4d34252023b78cb3) |
||
|---|---|---|
| .. | ||
| balloon | ||
| block | ||
| console | ||
| gpu | ||
| mmio | ||
| network | ||
| pci | ||
| random | ||
| scsi | ||
| virtio.c | ||
| virtio.h | ||
| virtio_bus_if.m | ||
| virtio_config.h | ||
| virtio_endian.h | ||
| virtio_ids.h | ||
| virtio_if.m | ||
| virtio_ring.h | ||
| virtqueue.c | ||
| virtqueue.h | ||