diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2024-01-29 15:37:23 +0200 |
|---|---|---|
| committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2024-01-29 15:37:23 +0200 |
| commit | 89e124f042f514b5ce0e3dc39796613152e225b8 (patch) | |
| tree | 8537ca69268baf39c625541775d54f467d9dbd74 /python/makefile.py | |
| parent | 7133cce19621746cba36e142060816fd6de7b64a (diff) | |
bgpd: Optimize memory usage for bgp_nlri struct
```
struct bgp_nlri {
uint16_t afi; /* 0 2 */
uint8_t safi; /* 2 1 */
/* XXX 1 byte hole, try to pack */
bgp_size_t length; /* 4 2 */
/* XXX 2 bytes hole, try to pack */
uint8_t * nlri; /* 8 8 */
/* size: 16, cachelines: 1, members: 4 */
/* sum members: 13, holes: 2, sum holes: 3 */
/* last cacheline: 16 bytes */
}; /* saved 8 bytes! */
```
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'python/makefile.py')
0 files changed, 0 insertions, 0 deletions
