From 0fd46e3f4e18d3c634dbb397c6b36268b28e8293 Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Wed, 31 Jan 2024 11:29:30 +0200 Subject: [PATCH] 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 --- bgpd/bgp_rd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bgpd/bgp_rd.h b/bgpd/bgp_rd.h index e38c2fad3baf..93dda17236f6 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