diff options
author | Alexander V. Chernikov <melifaro@FreeBSD.org> | 2021-04-27 07:47:53 +0000 |
---|---|---|
committer | Alexander V. Chernikov <melifaro@FreeBSD.org> | 2021-04-27 07:47:53 +0000 |
commit | bc5ef45aec3fa8acf2dd3408cebd207317543a8b (patch) | |
tree | 6a4319fcb87c9740df49e49a2baf9b5d7ce56d5c /sys/net | |
parent | 0cd4b781a6fa1ed4ca04a7b642f41652e25bbc9b (diff) | |
download | src-bc5ef45aec3fa8acf2dd3408cebd207317543a8b.tar.gz src-bc5ef45aec3fa8acf2dd3408cebd207317543a8b.zip |
Fix drace CTF for the rib_head.
33cb3cb2e321 introduced an `rib_head` structure field under the
FIB_ALGO define. This may be problematic for the CTF, as some
of the files including `route_var.h` do not have `fib_algo`
defined.
Make dtrace happy by making the field unconditional.
Suggested by: markj
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/route/route_var.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/net/route/route_var.h b/sys/net/route/route_var.h index f12931476fd3..86fc64493e75 100644 --- a/sys/net/route/route_var.h +++ b/sys/net/route/route_var.h @@ -71,9 +71,7 @@ struct rib_head { struct callout expire_callout; /* Callout for expiring dynamic routes */ time_t next_expire; /* Next expire run ts */ uint32_t rnh_prefixes; /* Number of prefixes */ -#ifdef FIB_ALGO - rt_gen_t rnh_gen_rib; /* rib generation counter */ -#endif + 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 */ struct nh_control *nh_control; /* nexthop subsystem data */ |