opnsense-src/sys/dev/virtio
Michael Tuexen 410be6ca70 vtnet, ptnet: include opt_*.h files early
Include opt_inet.h and opt_inet6.h early in the files including
virtio_net.h, since they use INET and/or INET6.
While there, remove redundant inclusion of sys/types.h, since it is
included already by sys/param.h.

There was a discussion to include opt_inet.h and opt_inet6.h also
in virtio_net.h. glebius suggested to add a mechanism for files
to check, if required opt_*.h files were included. virtio_net.h
will be the first consumer of this mechanism.

Reviewed by:		glebius, Peter Lei
Sponsored by:		Netflix, Inc.
Differential Revision:	https://reviews.freebsd.org/D52046

(cherry picked from commit 3077532b1bb2911d3012ee90bae9d9499c960569)
2025-09-08 10:25:23 +02:00
..
balloon sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
block sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
console virtio(4): Fix two typos in KASSERT messages 2024-06-21 05:46:51 +02:00
gpu vt: Add vd_bitblt_argb 2024-07-29 18:37:12 +02:00
mmio sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
network vtnet, ptnet: include opt_*.h files early 2025-09-08 10:25:23 +02:00
p9fs virtio_p9fs: Simplify vt9p_req_wait() a bit 2025-08-13 14:13:30 +02:00
pci virtio: Use device_set_descf() 2024-06-09 09:37:56 -04:00
random virtio_random: Pipeline fetching the data 2023-10-11 08:10:32 -07:00
scsi Use xpt_path_sbuf() in few drivers 2023-12-22 23:36:56 -05:00
virtio.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
virtio.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
virtio_bus_if.m sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06: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: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
virtqueue.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00