mirror_frr/tests/bgpd
Yuqing Zhao 6e7f305e54 bgpd: Convert from struct bgp_node to struct bgp_dest
This is based on @donaldsharp's work

The current code base is the struct bgp_node data structure.
The problem with this is that it creates a bunch of
extra data per route_node.
The table structure generates ‘holder’ nodes
that are never going to receive bgp routes,
and now the memory of those nodes is allocated
as if they are a full bgp_node.

After splitting up the bgp_node into bgp_dest and route_node,
the memory of ‘holder’ node which does not have any bgp data
will be allocated as the route_node, not the bgp_node,
and the memory usage is reduced.
The memory usage of BGP node will be reduced from 200B to 96B.
The total memory usage optimization of this part is ~16.00%.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Signed-off-by: Yuqing Zhao <xiaopanghu99@163.com>
2023-08-22 09:35:46 +08:00
..
subdir.am build: break up tests/subdir.am 2021-11-11 14:40:03 +01:00
test_aspath.c bgpd: Convert struct peer_connection to dynamically allocated 2023-08-18 09:29:04 -04:00
test_aspath.py *: reformat python files 2020-10-07 17:22:26 -04:00
test_bgp_table.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
test_bgp_table.py *: reformat python files 2020-10-07 17:22:26 -04:00
test_capability.c bgpd: Convert struct peer_connection to dynamically allocated 2023-08-18 09:29:04 -04:00
test_capability.py bgpd: Add RFC9234 implementation 2022-06-17 13:14:46 +03:00
test_ecommunity.c *: Convert struct event_master to struct event_loop 2023-03-24 08:32:17 -04:00
test_ecommunity.py *: reformat python files 2020-10-07 17:22:26 -04:00
test_mp_attr.c bgpd: Convert struct peer_connection to dynamically allocated 2023-08-18 09:29:04 -04:00
test_mp_attr.py *: reformat python files 2020-10-07 17:22:26 -04:00
test_mpath.c bgpd: Convert from struct bgp_node to struct bgp_dest 2023-08-22 09:35:46 +08:00
test_mpath.py *: reformat python files 2020-10-07 17:22:26 -04:00
test_packet.c bgpd: Convert struct peer_connection to dynamically allocated 2023-08-18 09:29:04 -04:00
test_peer_attr.c *: Convert struct event_master to struct event_loop 2023-03-24 08:32:17 -04:00
test_peer_attr.py tests: Check if peer->af_flags can be higher than uint32_t 2023-02-24 00:24:20 +02:00