]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
LinuxKPI: add KPI for netdev_notifier_info returning ifp
authorBjoern A. Zeeb <bz@FreeBSD.org>
Fri, 28 May 2021 12:44:16 +0000 (12:44 +0000)
committerBjoern A. Zeeb <bz@FreeBSD.org>
Sun, 18 Jul 2021 00:35:03 +0000 (00:35 +0000)
commit4b2af7db20125df4ee1e481e1bf4318cd612e7ed
tree73165304967f34f489afdca03a03fd4079c1b92c
parenta30fe52a12f2d99dcc431c291d3451dae06209bd
LinuxKPI: add KPI for netdev_notifier_info returning ifp

While currently the ifp gets cast to a net_device and then returned
and consumers are expecting an ifp again, allow parallel usage now and
in the future by extending and also passing the ifp directly back in
the netdev_notifier_info.  Add a function to return the ifp instead of
the net_device.

Sponsored by: The FreeBSD Foundation
Suggested by: hselasky
Reviewed by: hselasky
Differential Revision: https://reviews.freebsd.org/D30522

(cherry picked from commit 801cf532e70f6b0ebfb2d536b235f166b2e6f0a4)
sys/compat/linuxkpi/common/include/linux/netdevice.h
sys/compat/linuxkpi/common/src/linux_compat.c