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
This commit is contained in:
Kristof Provost 2020-11-25 17:15:24 +00:00
parent 07ef907f6e
commit bca0e1d2ac

View file

@ -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)
{