Date: Wed, 3 Aug 2022 22:49:42 GMT From: John Baldwin <jhb@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: d2badf4e4136 - main - net/dpdk-20.11: Remove devclass from DRIVER_MODULE on recent main. Message-ID: <202208032249.273MngBB021468@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhb (doc, src committer): URL: https://cgit.FreeBSD.org/ports/commit/?id=d2badf4e41360c7a17b9ae83b4290c74982db9c1 commit d2badf4e41360c7a17b9ae83b4290c74982db9c1 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-08-03 22:48:46 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-08-03 22:48:46 +0000 net/dpdk-20.11: Remove devclass from DRIVER_MODULE on recent main. Reviewed by: erj, bruce.richardson@intel.com (maintainer) Differential Revision: https://reviews.freebsd.org/D35956 --- .../files/patch-kernel_freebsd_nic__uio_nic__uio.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/net/dpdk-20.11/files/patch-kernel_freebsd_nic__uio_nic__uio.c b/net/dpdk-20.11/files/patch-kernel_freebsd_nic__uio_nic__uio.c new file mode 100644 index 000000000000..27bd60e20b78 --- /dev/null +++ b/net/dpdk-20.11/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:52:05 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,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202208032249.273MngBB021468>