Merge pull request #15275 from opensourcerouting/fix/one_more_memory_optimization_attr_struct

bgpd: One more attr struct memory optimization
This commit is contained in:
Donald Sharp 2024-02-01 20:46:09 -05:00 committed by GitHub
commit a4f222292b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -201,6 +201,10 @@ struct attr {
/* Distance as applied by Route map */
uint8_t distance;
/* EVPN DF preference for DF election on local ESs */
uint8_t df_alg;
uint16_t df_pref;
/* PMSI tunnel type (RFC 6514). */
enum pta_type pmsi_tnl_type;
@ -215,6 +219,9 @@ struct attr {
/* ifIndex corresponding to mp_nexthop_local. */
ifindex_t nh_lla_ifindex;
/* MPLS label */
mpls_label_t label;
/* Extended Communities attribute. */
struct ecommunity *ecommunity;
@ -262,13 +269,6 @@ struct attr {
/* Label index */
uint32_t label_index;
/* MPLS label */
mpls_label_t label;
/* EVPN DF preference for DF election on local ESs */
uint16_t df_pref;
uint8_t df_alg;
/* SRv6 VPN SID */
struct bgp_attr_srv6_vpn *srv6_vpn;