Page MenuHomeFreeBSD

linux: Initialize per-VNET state earlier
AcceptedPublic

Authored by markj on Mon, Oct 5, 10:14 PM.
Tags
None
Referenced Files
F174994287: D60389.id188763.diff
Wed, Oct 7, 11:57 AM
Unknown Object (File)
Tue, Oct 6, 12:40 PM
Unknown Object (File)
Mon, Oct 5, 11:51 PM
Unknown Object (File)
Mon, Oct 5, 11:49 PM
Unknown Object (File)
Mon, Oct 5, 11:30 PM
Subscribers

Details

Reviewers
pouria
glebius
Group Reviewers
network
Summary

Make sure that linux_ifnet_departure() can't run after
linux_ifnet_vnet_uninit() has destroyed the per-VNET unit number
allocator. Otherwise, when ifc_detach_cloner() destroys instances of an
interface type, it might be running too late. Most cloner-based drivers
tear themselves down during SI_SUB_PSEUDO or SI_SUB_PROTO_IF.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 77745
Build 74628: arc lint + arc unit

Event Timeline

pouria added a subscriber: pouria.

I was trying to do the same thing with PROTO_IF + SI_ORDER_FIRST on VNET_SYSUNINIT. But this version looks better to me. of course it depends on if_epair.

This revision is now accepted and ready to land.Tue, Oct 6, 3:06 PM