diff options
| author | Stephen Worley <sworley@nvidia.com> | 2022-02-15 17:56:50 -0500 |
|---|---|---|
| committer | Stephen Worley <sworley@nvidia.com> | 2022-03-09 18:02:44 -0500 |
| commit | ed7a1622c347bf5cb0929da07f9072e04f0730c1 (patch) | |
| tree | ee3b03d660f1e3585007b26af88cbaa41e71fc0e /zebra/if_netlink.c | |
| parent | 00d57e6dd546c4d901d64d4efd8d48fda0f36316 (diff) | |
zebra: make netlink protodown func more readable
Make the netlink protodown static function for checking
if the only bit set for protodown reason is FRR's more
easily readable to someone not familiar with the code.
Signed-off-by: Stephen Worley <sworley@nvidia.com>
Diffstat (limited to 'zebra/if_netlink.c')
| -rw-r--r-- | zebra/if_netlink.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zebra/if_netlink.c b/zebra/if_netlink.c index 47e0140256..0ed03ae750 100644 --- a/zebra/if_netlink.c +++ b/zebra/if_netlink.c @@ -815,7 +815,7 @@ static int netlink_bridge_interface(struct nlmsghdr *h, int len, ns_id_t ns_id, return 0; } -static bool is_if_protodown_r_only_frr(uint32_t rc_bitfield) +static bool is_if_protodown_reason_only_frr(uint32_t rc_bitfield) { /* This shouldn't be possible */ assert(frr_protodown_r_bit < 32); @@ -853,7 +853,7 @@ static void netlink_proc_dplane_if_protodown(struct zebra_if *zif, * set it. */ if (protodown && rc_bitfield && - is_if_protodown_r_only_frr(rc_bitfield) == false) + is_if_protodown_reason_only_frr(rc_bitfield) == false) zif->protodown_rc |= ZEBRA_PROTODOWN_EXTERNAL; else zif->protodown_rc &= ~ZEBRA_PROTODOWN_EXTERNAL; |
