diff options
author | John Baldwin <jhb@FreeBSD.org> | 2022-08-03 22:47:24 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2022-08-03 22:47:24 +0000 |
commit | c67225080bcd9e42984411363f2f5735b844ae5f (patch) | |
tree | bb43893688d70f5297df0659da73e5f513456682 /net/dpdk | |
parent | de3758e2e34c09c0b12343f1346aabf1834c8224 (diff) | |
download | ports-c67225080bcd9e42984411363f2f5735b844ae5f.tar.gz ports-c67225080bcd9e42984411363f2f5735b844ae5f.zip |
net/dpdk: Remove devclass from DRIVER_MODULE on recent main.
Reviewed by: erj
Differential Revision: https://reviews.freebsd.org/D35955
Diffstat (limited to 'net/dpdk')
-rw-r--r-- | net/dpdk/files/patch-kernel_freebsd_nic__uio_nic__uio.c | 18 |
1 files changed, 18 insertions, 0 deletions
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, |