From dd58cd4d38f7282ba33bbee08c4a84ec50984b29 Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Thu, 3 Aug 2023 22:54:36 +0300 Subject: [PATCH] bgpd: Use SET_FLAG when setting AIGP attribute flag Just reuse an existing more-readable code. Signed-off-by: Donatas Abraitis --- bgpd/bgp_attr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bgpd/bgp_attr.h b/bgpd/bgp_attr.h index f1296af159..961e5f1224 100644 --- a/bgpd/bgp_attr.h +++ b/bgpd/bgp_attr.h @@ -594,7 +594,7 @@ static inline void bgp_attr_set_aigp_metric(struct attr *attr, uint64_t aigp) attr->aigp_metric = aigp; if (aigp) - attr->flag |= ATTR_FLAG_BIT(BGP_ATTR_AIGP); + SET_FLAG(attr->flag, ATTR_FLAG_BIT(BGP_ATTR_AIGP)); } static inline struct cluster_list *bgp_attr_get_cluster(const struct attr *attr) -- 2.39.5