freebsd-dev/sys/net/route
Alexander V. Chernikov 29029b06a6 routing: remove info argument from add/change_route_nhop().
Currently, rt_addrinfo(info) serves as a main "transport" moving
 state between various functions inside the routing subsystem.
As all of the fields are filled in directly by the customers, it
 is problematic to maintain consistency, resulting in repeated checks
 inside many functions. Additionally, there are multiple ways of
 specifying the same value (RTAX_IFP vs rti_ifp / rti_ifa) and so on.
With the upcoming nhop(9) kpi it is possible to store all of the
 required state in the nexthops in the consistent fashion, reducing the
 need to use "info" in the KPI calls.
Finally, rt_addrinfo structure format was derived from the rtsock wire
 format, which is different from other kernel routing users or netlink.

This cleanup simplifies upcoming nhop(9) kpi and netlink introduction.

Reviewed by:	zlei.huang@gmail.com
Differential Revision: https://reviews.freebsd.org/D35972
MFC after:	2 weeks
2022-08-01 07:41:07 +00:00
..
fib_algo.c Introduce and use the NET_EPOCH_DRAIN_CALLBACKS() macro 2022-07-29 21:21:10 +02:00
fib_algo.h Fib algo: extend KPI by allowing algo to set datapath pointers. 2021-04-18 16:12:12 +01:00
mpath_ctl.c routing: remove info argument from add/change_route_nhop(). 2022-08-01 07:41:07 +00:00
nhgrp_ctl.c routing: actually sort nexthops in nhgs by their index 2022-06-27 17:30:52 +00:00
nhgrp_var.h Introduce scalable route multipath. 2020-10-03 10:47:17 +00:00
nhgrp.c routing: improve debugging. 2022-06-25 19:53:31 +00:00
nhop_ctl.c routing: move route expiration time to its nexthop 2022-08-01 07:26:53 +00:00
nhop_utils.c Remove unused nhop_ref_any() function. 2020-09-20 21:32:52 +00:00
nhop_utils.h [multipath][nhops] Fix random crashes with high route churn rate. 2021-08-01 10:07:37 +00:00
nhop_var.h routing: move route expiration time to its nexthop 2022-08-01 07:26:53 +00:00
nhop.c nhop: hash ifnet pointer instead of if_index 2021-12-04 10:05:46 -08:00
nhop.h routing: move route expiration time to its nexthop 2022-08-01 07:26:53 +00:00
route_ctl.c routing: remove info argument from add/change_route_nhop(). 2022-08-01 07:41:07 +00:00
route_ctl.h routing: Fix crashes with dpdk_lpm[46] algo. 2021-08-17 20:46:22 +00:00
route_ddb.c ddb: use _FLAGS command macros where appropriate 2022-07-05 11:56:55 -03:00
route_debug.h routing: add debug printing helpers for rtentry and RTM* cmds. 2022-07-31 09:01:42 +00:00
route_helpers.c routing: add debug printing helpers for rtentry and RTM* cmds. 2022-07-31 09:01:42 +00:00
route_ifaddrs.c Make gcc happy by initializing error in rib_handle_ifaddr_info(). 2021-04-25 08:44:59 +00:00
route_tables.c Introduce and use the NET_EPOCH_DRAIN_CALLBACKS() macro 2022-07-29 21:21:10 +02:00
route_temporal.c routing: move route expiration time to its nexthop 2022-08-01 07:26:53 +00:00
route_var.h routing: remove info argument from add/change_route_nhop(). 2022-08-01 07:41:07 +00:00