diff options
| author | Louis Scalbert <louis.scalbert@6wind.com> | 2022-04-29 19:41:57 +0200 |
|---|---|---|
| committer | Louis Scalbert <louis.scalbert@6wind.com> | 2022-12-16 15:07:00 +0100 |
| commit | 667a4e92da1d789b5aa3da15c3f80d3f4658a53e (patch) | |
| tree | 23e151fb05db755f1b768c261caa1c1a9e442b0c /bgpd/bgp_attr.h | |
| parent | 86a1c2963266fe5a0683278668c276c748f32552 (diff) | |
bgpd: move mp_nexthop_prefer_global boolean attribute to nh_flag
Previous commits have introduced a new 8 bits nh_flag in the attr
struct that has increased the memory footprint.
Move the mp_nexthop_prefer_global boolean in the attr structure that
takes 8 bits to the new nh_flag in order to go back to the previous
memory utilization.
Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
Diffstat (limited to 'bgpd/bgp_attr.h')
| -rw-r--r-- | bgpd/bgp_attr.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/bgpd/bgp_attr.h b/bgpd/bgp_attr.h index 67677f999d..4eb742422d 100644 --- a/bgpd/bgp_attr.h +++ b/bgpd/bgp_attr.h @@ -174,6 +174,7 @@ struct attr { #define BGP_ATTR_NH_VALID 0x01 #define BGP_ATTR_NH_IF_OPERSTATE 0x02 +#define BGP_ATTR_NH_MP_PREFER_GLOBAL 0x04 /* MP Nexthop preference */ /* Path origin attribute */ uint8_t origin; @@ -224,9 +225,6 @@ struct attr { /* MP Nexthop length */ uint8_t mp_nexthop_len; - /* MP Nexthop preference */ - uint8_t mp_nexthop_prefer_global; - /* Static MAC for EVPN */ uint8_t sticky; |
