1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00

MFp4 @180887:

With pr_destroy being gone, call ip_destroy from an ordered
  VNET_SYSUNINT.  Make ip_destroy() static.

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Bjoern A. Zeeb 2016-01-22 18:22:03 +00:00
parent 0ea826e094
commit f2cf0121ca
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/vnet/; revision=294583
2 changed files with 4 additions and 5 deletions

View File

@ -361,8 +361,8 @@ ip_init(void)
}
#ifdef VIMAGE
void
ip_destroy(void)
static void
ip_destroy(void *unused __unused)
{
int error;
@ -388,6 +388,8 @@ ip_destroy(void)
/* Destroy IP reassembly queue. */
ipreass_destroy();
}
VNET_SYSUNINIT(ip, SI_SUB_PROTO_DOMAIN, SI_ORDER_THIRD, ip_destroy, NULL);
#endif
#ifdef RSS

View File

@ -209,9 +209,6 @@ int ip_fragment(struct ip *ip, struct mbuf **m_frag, int mtu,
u_long if_hwassist_flags);
void ip_forward(struct mbuf *m, int srcrt);
void ip_init(void);
#ifdef VIMAGE
void ip_destroy(void);
#endif
extern int
(*ip_mforward)(struct ip *, struct ifnet *, struct mbuf *,
struct ip_moptions *);