Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Nov 2020 17:15:25 +0000 (UTC)
From:      Kristof Provost <kp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r368025 - head/sys/net
Message-ID:  <202011251715.0APHFPix003065@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kp
Date: Wed Nov 25 17:15:24 2020
New Revision: 368025
URL: https://svnweb.freebsd.org/changeset/base/368025

Log:
  if: Fix non-VIMAGE build
  
  if_link_ifnet() and if_unlink_ifnet() are needed even when VIMAGE is not
  enabled.
  
  MFC after:	2 weeks
  Sponsored by:	Modirum MDPay

Modified:
  head/sys/net/if.c

Modified: head/sys/net/if.c
==============================================================================
--- head/sys/net/if.c	Wed Nov 25 17:12:21 2020	(r368024)
+++ head/sys/net/if.c	Wed Nov 25 17:15:24 2020	(r368025)
@@ -468,6 +468,7 @@ vnet_if_uninit(const void *unused __unused)
 }
 VNET_SYSUNINIT(vnet_if_uninit, SI_SUB_INIT_IF, SI_ORDER_FIRST,
     vnet_if_uninit, NULL);
+#endif
 
 static void
 if_link_ifnet(struct ifnet *ifp)
@@ -504,6 +505,7 @@ if_unlink_ifnet(struct ifnet *ifp, bool vmove)
 	return (found);
 }
 
+#ifdef VIMAGE
 static void
 vnet_if_return(const void *unused __unused)
 {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202011251715.0APHFPix003065>