git: 81efd611d817 - main - routing: Remove unused rib_head members
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 30 Jul 2026 13:01:52 UTC
The branch main has been updated by pouria:
URL: https://cgit.FreeBSD.org/src/commit/?id=81efd611d81743fa08d36ee830d4c28e1955badd
commit 81efd611d81743fa08d36ee830d4c28e1955badd
Author: Pouria Mousavizadeh Tehrani <pouria@FreeBSD.org>
AuthorDate: 2026-07-29 17:52:56 +0000
Commit: Pouria Mousavizadeh Tehrani <pouria@FreeBSD.org>
CommitDate: 2026-07-30 12:59:38 +0000
routing: Remove unused rib_head members
Remove unused rnh_multipath and rib_algo_fixed members.
While here, convert rib_dying and rib_algo_init from uint32_t to bool.
Reviewed by: glebius
Differential Revision: https://reviews.freebsd.org/D58537
---
sys/net/route/route_var.h | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/sys/net/route/route_var.h b/sys/net/route/route_var.h
index c91002e6c005..b830890295a6 100644
--- a/sys/net/route/route_var.h
+++ b/sys/net/route/route_var.h
@@ -56,7 +56,6 @@ struct rib_head {
rn_walktree_from_t *rnh_walktree_from; /* traverse tree below a */
rnh_set_nh_pfxflags_f_t *rnh_set_nh_pfxflags; /* hook to alter record prior to insertion */
rt_gen_t rnh_gen; /* datapath generation counter */
- int rnh_multipath; /* multipath capable ? */
struct radix_node rnh_nodes[3]; /* empty tree for common case */
struct rmlock rib_lock; /* config/data path lock */
struct radix_mask_head rmhead; /* masks radix head */
@@ -67,9 +66,8 @@ struct rib_head {
time_t next_expire; /* Next expire run ts */
uint32_t rnh_prefixes; /* Number of prefixes */
rt_gen_t rnh_gen_rib; /* fib algo: rib generation counter */
- uint32_t rib_dying:1; /* rib is detaching */
- uint32_t rib_algo_fixed:1;/* fixed algorithm */
- uint32_t rib_algo_init:1;/* algo init done */
+ bool rib_dying:1, /* rib is detaching */
+ rib_algo_init:1;/* algo init done */
struct nh_control *nh_control; /* nexthop subsystem data */
rnh_augment_nh_f_t *rnh_augment_nh;/* hook to alter nexthop prior to insertion */
CK_STAILQ_HEAD(, rib_subscription) rnh_subscribers;/* notification subscribers */