diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2024-01-31 11:29:30 +0200 |
|---|---|---|
| committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2024-01-31 11:29:30 +0200 |
| commit | 0fd46e3f4e18d3c634dbb397c6b36268b28e8293 (patch) | |
| tree | 3addff76d5894e0b07af3fdc7c7be18b605c81a5 /bgpd/bgp_rd.h | |
| parent | 642078de8e9c277fc90d11f9976afe475ef4bac8 (diff) | |
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>
Diffstat (limited to 'bgpd/bgp_rd.h')
| -rw-r--r-- | bgpd/bgp_rd.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_rd.h b/bgpd/bgp_rd.h index e38c2fad3b..93dda17236 100644 --- a/bgpd/bgp_rd.h +++ b/bgpd/bgp_rd.h @@ -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 |
