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)
Jan 18 2024, 1:58 PM
Unknown Object (File)
Dec 26 2023, 5:26 AM
Unknown Object (File)
Dec 23 2023, 3:34 AM
Unknown Object (File)
Dec 13 2023, 4:01 AM
Unknown Object (File)
Nov 30 2023, 7:03 AM
Unknown Object (File)
Nov 26 2023, 3:45 AM
Unknown Object (File)
Nov 23 2023, 4:13 AM
Unknown Object (File)
Nov 4 2023, 7:59 PM
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 Passed
Unit
No Test Coverage
Build Status
Buildable 32959
Build 30353: arc lint + arc unit

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.