Page MenuHomeFreeBSD

Move rtzone handling code to net/route_ctl.c
ClosedPublic

Authored by melifaro on Aug 12 2020, 9:15 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Oct 15, 11:00 PM
Unknown Object (File)
Tue, Oct 14, 9:24 AM
Unknown Object (File)
Mon, Oct 13, 10:12 AM
Unknown Object (File)
Mon, Oct 13, 10:12 AM
Unknown Object (File)
Mon, Oct 13, 10:12 AM
Unknown Object (File)
Mon, Oct 13, 10:12 AM
Unknown Object (File)
Sun, Oct 12, 9:42 PM
Unknown Object (File)
Sat, Oct 11, 4:25 AM
Subscribers

Details

Summary

After moving the route control plane code from net/route.c, all rtzone users ended up being in net/route_ctl.c.
Move uma(9) rtzone setup/teardown code to net/route_ctl.c as well to have everything in a single place.

While here, remove custom initializers from the zone. It was added originally to avoid setup/teardown of costy per-cpu couters. With these counters removed, the only remaining job was avoiding rte mutex setup/teardown. Mutex setup is relatively cheap. Additionally, this mutex will soon disappear. With that in mind, there is no sense in keeping custom zone callbacks.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Update diff to add rtfree().

This revision was not accepted when it landed; it landed in state Needs Review.Aug 13 2020, 6:35 PM
This revision was automatically updated to reflect the committed changes.