git: c67225080bcd - main - net/dpdk: Remove devclass from DRIVER_MODULE on recent main.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 03 Aug 2022 22:49:41 UTC
The branch main has been updated by jhb (doc, src committer): URL: https://cgit.FreeBSD.org/ports/commit/?id=c67225080bcd9e42984411363f2f5735b844ae5f commit c67225080bcd9e42984411363f2f5735b844ae5f Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-08-03 22:47:24 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-08-03 22:47:24 +0000 net/dpdk: Remove devclass from DRIVER_MODULE on recent main. Reviewed by: erj Differential Revision: https://reviews.freebsd.org/D35955 --- .../files/patch-kernel_freebsd_nic__uio_nic__uio.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/net/dpdk/files/patch-kernel_freebsd_nic__uio_nic__uio.c b/net/dpdk/files/patch-kernel_freebsd_nic__uio_nic__uio.c new file mode 100644 index 000000000000..d4dac8f04019 --- /dev/null +++ b/net/dpdk/files/patch-kernel_freebsd_nic__uio_nic__uio.c @@ -0,0 +1,18 @@ +--- kernel/freebsd/nic_uio/nic_uio.c.orig 2022-07-26 18:39:52 UTC ++++ kernel/freebsd/nic_uio/nic_uio.c +@@ -78,10 +78,14 @@ struct pci_bdf { + uint32_t function; + }; + ++DEFINE_CLASS_0(nic_uio, nic_uio_driver, nic_uio_methods, sizeof(struct nic_uio_softc)); ++#if __FreeBSD_version >= 1400058 ++DRIVER_MODULE(nic_uio, pci, nic_uio_driver, nic_uio_modevent, NULL); ++#else + static devclass_t nic_uio_devclass; + +-DEFINE_CLASS_0(nic_uio, nic_uio_driver, nic_uio_methods, sizeof(struct nic_uio_softc)); + DRIVER_MODULE(nic_uio, pci, nic_uio_driver, nic_uio_devclass, nic_uio_modevent, 0); ++#endif + + static int + nic_uio_mmap(struct cdev *cdev, vm_ooffset_t offset, vm_paddr_t *paddr,