Kristof Provost eb03a44325 vlan: Fix panic when vnet jail with a vlan interface is destroyed
During vnet cleanup vnet_if_uninit() checks that no more interfaces remain in
the vnet. Any interface borrowed from another vnet is returned by
vnet_if_return(). Other interfaces (i.e. cloned interfaces) should have been
destroyed by their cloner at this point.

The if_vlan VNET_SYSUNINIT had priority SI_ORDER_FIRST, which means it had
equal priority as vnet_if_uninit(). In other words: it was possible for it to
be called *after* vnet_if_uninit(), which would lead to assertion failures.

Set the priority to SI_ORDER_ANY, like other cloners to ensure that vlan
interfaces are destroyed before we enter vnet_if_uninit().

The sys/net/if_vlan test provoked this.
2020-01-31 22:54:44 +00:00
..
2019-10-17 21:33:01 +00:00
2019-10-17 21:33:01 +00:00
2019-10-17 21:33:01 +00:00
2019-12-21 21:01:03 +00:00
2019-07-14 03:49:48 +00:00
2019-03-09 01:12:59 +00:00
2019-11-13 11:21:02 +00:00
2019-07-25 22:23:34 +00:00
2019-07-24 16:10:20 +00:00
2019-09-30 15:59:07 +00:00
2019-05-09 11:34:46 +00:00
2020-01-31 10:51:13 +00:00
2019-03-15 11:08:44 +00:00
2020-01-22 13:53:18 +00:00
2020-01-22 13:53:18 +00:00
2019-10-08 11:06:24 +00:00