summaryrefslogtreecommitdiff
path: root/ospfclient/ospfclient.py
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2024-02-09 17:25:05 +0200
committerDonatas Abraitis <donatas@opensourcerouting.org>2024-02-09 17:25:05 +0200
commitc6e5b8030f7489a4362892492c0fc48f6785bf3d (patch)
tree3bf0adb1940acaaa3488debf05d838b968230f45 /ospfclient/ospfclient.py
parentd13abf1180fed6a04088680cf0708e7eae720265 (diff)
bgpd: Optimize memory for bgp_nexthop_cache struct
``` struct bgp_nexthop_cache { afi_t afi; /* 0 4 */ ifindex_t ifindex_ipv6_ll; /* 4 4 */ struct bgp_nexthop_cache_item entry; /* 8 32 */ uint32_t metric; /* 40 4 */ uint8_t nexthop_num; /* 44 1 */ _Bool is_evpn_gwip_nexthop; /* 45 1 */ uint16_t change_flags; /* 46 2 */ struct nexthop * nexthop; /* 48 8 */ time_t last_update; /* 56 8 */ /* --- cacheline 1 boundary (64 bytes) --- */ uint16_t flags; /* 64 2 */ /* XXX 2 bytes hole, try to pack */ uint32_t srte_color; /* 68 4 */ struct bgp_nexthop_cache_head * tree; /* 72 8 */ struct prefix prefix __attribute__((__aligned__(8))); /* 80 56 */ /* --- cacheline 2 boundary (128 bytes) was 8 bytes ago --- */ void * nht_info; /* 136 8 */ struct path_list paths; /* 144 8 */ unsigned int path_count; /* 152 4 */ /* XXX 4 bytes hole, try to pack */ struct bgp * bgp; /* 160 8 */ /* size: 168, cachelines: 3, members: 17 */ /* sum members: 162, holes: 2, sum holes: 6 */ /* forced alignments: 1 */ /* last cacheline: 40 bytes */ } __attribute__((__aligned__(8))); /* saved 16 bytes! */ ``` Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'ospfclient/ospfclient.py')
0 files changed, 0 insertions, 0 deletions