]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Move rtzone handling code to net/route_ctl.c
authorAlexander V. Chernikov <melifaro@FreeBSD.org>
Thu, 13 Aug 2020 18:35:29 +0000 (18:35 +0000)
committerAlexander V. Chernikov <melifaro@FreeBSD.org>
Thu, 13 Aug 2020 18:35:29 +0000 (18:35 +0000)
commit6cbadc42341b0cb4b0aa32fa96129c56138afcf7
treedbc6bf6f71c08111062476f36fddba89f74ccd9c
parenta459638fc430cf0450f7450fd8576a62305d316f
Move rtzone handling code to net/route_ctl.c

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 be removed. With that in mind, there is no sense in keeping
 custom zone callbacks.

Differential Revision: https://reviews.freebsd.org/D26051
sys/net/route.c
sys/net/route.h
sys/net/route/route_ctl.c
sys/net/route/route_var.h
sys/net/route/shared.h