diff options
| author | Pouria Mousavizadeh Tehrani <pouria@FreeBSD.org> | 2026-07-29 17:52:56 +0000 |
|---|---|---|
| committer | Pouria Mousavizadeh Tehrani <pouria@FreeBSD.org> | 2026-07-30 12:59:38 +0000 |
| commit | 81efd611d81743fa08d36ee830d4c28e1955badd (patch) | |
| tree | 80499fee48eb65b857883a083e25d61adc176b68 | |
| parent | 25165e4499e17f4f75fcf7fe7691fc7f865d4015 (diff) | |
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
| -rw-r--r-- | sys/net/route/route_var.h | 6 |
1 files 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 */ |
