diff options
author | Donald Sharp <sharpd@nvidia.com> | 2024-09-26 16:46:23 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2024-10-01 18:25:57 +0200 |
commit | 6e0fe595f174e593133fbd52dcafdee511897db2 (patch) | |
tree | 04ffac4728bc9143d0a151dbeac41bc90d2c43a6 /bgpd/bgp_mpath.h | |
parent | bgpd: Use CHECK_FLAG to remain consistent for mp_flags (diff) | |
download | frr-6e0fe595f174e593133fbd52dcafdee511897db2.tar.xz frr-6e0fe595f174e593133fbd52dcafdee511897db2.zip |
bgpd: Ensure mpath data is only on bestpath
The mpath data structure has data that is only relevant
for the first mpath in the list. It is not being used
anywhere else. Let's document that a bit more.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'bgpd/bgp_mpath.h')
-rw-r--r-- | bgpd/bgp_mpath.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/bgpd/bgp_mpath.h b/bgpd/bgp_mpath.h index 129682d1d..267d729e0 100644 --- a/bgpd/bgp_mpath.h +++ b/bgpd/bgp_mpath.h @@ -25,15 +25,18 @@ struct bgp_path_info_mpath { /* When attached to best path, the number of selected multipaths */ uint16_t mp_count; - /* Flags - relevant as noted. */ + /* Flags - relevant as noted, attached to bestpath. */ uint16_t mp_flags; #define BGP_MP_LB_PRESENT 0x1 /* Link-bandwidth present for >= 1 path */ #define BGP_MP_LB_ALL 0x2 /* Link-bandwidth present for all multipaths */ - /* Aggregated attribute for advertising multipath route */ + /* + * Aggregated attribute for advertising multipath route, + * attached to bestpath + */ struct attr *mp_attr; - /* Cumulative bandiwdth of all multipaths - attached to best path. */ + /* Cumulative bandiwdth of all multipaths - attached to bestpath. */ uint64_t cum_bw; }; |