Date: Thu, 23 Oct 2025 23:37:17 GMT From: Colin Percival <cperciva@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 70d9247e3a11 - releng/15.0 - LinuxKPI: netdevice add attach/detach skeleton functions Message-ID: <202510232337.59NNbHWk026515@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch releng/15.0 has been updated by cperciva: URL: https://cgit.FreeBSD.org/src/commit/?id=70d9247e3a1137f75535b51ee6cdd6e3644ade0b commit 70d9247e3a1137f75535b51ee6cdd6e3644ade0b Author: Bjoern A. Zeeb <bz@FreeBSD.org> AuthorDate: 2025-10-17 20:28:36 +0000 Commit: Colin Percival <cperciva@FreeBSD.org> CommitDate: 2025-10-23 23:32:24 +0000 LinuxKPI: netdevice add attach/detach skeleton functions For the moment add skeleton functions for netif_device_attach/detach() needed by rtw8[89] v6.17. Approved by: re (cperciva) (cherry picked from commit 5ea941a4fbfd1ba2483e47fe30ed6713fe912284) (cherry picked from commit 4bdd0e51d7113aadcbfba9a76d72d8e924c5dcdf) --- sys/compat/linuxkpi/common/include/linux/netdevice.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/netdevice.h b/sys/compat/linuxkpi/common/include/linux/netdevice.h index 3b808a4a1749..cf27753bcb80 100644 --- a/sys/compat/linuxkpi/common/include/linux/netdevice.h +++ b/sys/compat/linuxkpi/common/include/linux/netdevice.h @@ -485,6 +485,21 @@ netdev_priv(const struct net_device *ndev) return (__DECONST(void *, ndev->drv_priv)); } +/* -------------------------------------------------------------------------- */ + +static __inline void +netif_device_attach(struct net_device *ndev) +{ + pr_debug("%s: TODO\n", __func__); +} + +static __inline void +netif_device_detach(struct net_device *ndev) +{ + pr_debug("%s: TODO\n", __func__); +} + + /* -------------------------------------------------------------------------- */ /* This is really rtnetlink and probably belongs elsewhere. */home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202510232337.59NNbHWk026515>
