mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 13:37:17 +02:00
bgpd: Optimize memory for rd_ip struct
``` struct rd_ip { uint16_t type; /* 0 2 */ uint16_t val; /* 2 2 */ struct in_addr ip; /* 4 4 */ /* size: 8, cachelines: 1, members: 3 */ /* last cacheline: 8 bytes */ }; /* saved 4 bytes! */ ``` Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
This commit is contained in:
parent
642078de8e
commit
0fd46e3f4e
|
@ -41,8 +41,8 @@ struct rd_as {
|
|||
|
||||
struct rd_ip {
|
||||
uint16_t type;
|
||||
struct in_addr ip;
|
||||
uint16_t val;
|
||||
struct in_addr ip;
|
||||
};
|
||||
|
||||
#ifdef ENABLE_BGP_VNC
|
||||
|
|
Loading…
Reference in a new issue