Skip to content

Commit

Permalink
Merge pull request #15275 from opensourcerouting/fix/one_more_memory_…
Browse files Browse the repository at this point in the history
…optimization_attr_struct

bgpd: One more attr struct memory optimization
  • Loading branch information
donaldsharp authored Feb 2, 2024
2 parents 9d8fd14 + 0223b98 commit a4f2222
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions bgpd/bgp_attr.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;

Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit a4f2222

Please sign in to comment.