Date: Wed, 1 Oct 2025 16:56:52 GMT From: Kristof Provost <kp@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: ebb60d47a535 - main - Revert "IfAPI: Added missing accessor for if_home_vnet" Message-ID: <202510011656.591GuqVF050218@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=ebb60d47a5350e5d752b97cba8b3b0c3be8aa1eb commit ebb60d47a5350e5d752b97cba8b3b0c3be8aa1eb Author: Kristof Provost <kp@FreeBSD.org> AuthorDate: 2025-10-01 16:13:54 +0000 Commit: Kristof Provost <kp@FreeBSD.org> CommitDate: 2025-10-01 16:13:54 +0000 Revert "IfAPI: Added missing accessor for if_home_vnet" This reverts commit 4e7a375804e5ad4b244ce9a035fa971cbf2f0944. We do not want out-of-tree consumers to access the home_vnet variable. As discussed with the author and Gleb Smirnoff. --- share/man/man9/ifnet.9 | 10 +--------- sys/net/if.c | 6 ------ sys/net/if_var.h | 1 - 3 files changed, 1 insertion(+), 16 deletions(-) diff --git a/share/man/man9/ifnet.9 b/share/man/man9/ifnet.9 index ac059b59eb81..3c45e4f29e2d 100644 --- a/share/man/man9/ifnet.9 +++ b/share/man/man9/ifnet.9 @@ -26,7 +26,7 @@ .\" OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd September 29, 2025 +.Dd December 10, 2024 .Dt IFNET 9 .Os .Sh NAME @@ -253,8 +253,6 @@ .Fn if_getlladdr "const if_t ifp" .Ft struct vnet * .Fn if_getvnet "const if_t ifp" -.Ft struct vnet * -.Fn if_gethomevnet "const if_t ifp" .Ft void * .Fn if_gethandle "u_char" .Ft void @@ -518,12 +516,6 @@ or A pointer to the virtual network stack instance. This is initialized by .Fn if_attach . -.It Fn if_gethomevnet -.Pq Vt "struct vnet *" -A pointer to the parent virtual network stack, -where this struct ifnet originates from. -This is initialized by -.Fn if_attach . .It Fn if_gethandle .It Fn if_vlancap .It Fn if_getcounter diff --git a/sys/net/if.c b/sys/net/if.c index 6a68d627c07f..b6a798aa0fab 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -5116,12 +5116,6 @@ if_getvnet(if_t ifp) return (ifp->if_vnet); } -struct vnet * -if_gethomevnet(if_t ifp) -{ - return (ifp->if_home_vnet); -} - void * if_getafdata(if_t ifp, int af) { diff --git a/sys/net/if_var.h b/sys/net/if_var.h index e71fe798fdec..f2df612b19c1 100644 --- a/sys/net/if_var.h +++ b/sys/net/if_var.h @@ -648,7 +648,6 @@ u_int16_t if_getvtag(struct mbuf *m); int if_vlantrunkinuse(if_t ifp); char *if_getlladdr(const if_t ifp); struct vnet *if_getvnet(const if_t ifp); -struct vnet *if_gethomevnet(const if_t ifp); void *if_gethandle(u_char); void if_vlancap(if_t ifp); int if_transmit(if_t ifp, struct mbuf *m);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202510011656.591GuqVF050218>