Page MenuHomeFreeBSD

Move rtzone handling code to net/route_ctl.c
ClosedPublic

Authored by melifaro on Aug 12 2020, 9:15 PM.

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
Lint
Lint OK
Unit
No Unit Test Coverage
Build Status
Buildable 32960
Build 30354: 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.