Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bgpd: Optimize memory for rd_ip struct #15264

Merged

Conversation

ton31337
Copy link
Member

No description provided.

```
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 <[email protected]>
@frrbot frrbot bot added the bgp label Jan 31, 2024
@ton31337 ton31337 added this to the 10.0 milestone Jan 31, 2024
@donaldsharp donaldsharp merged commit 62443d7 into FRRouting:master Feb 1, 2024
11 checks passed
@ton31337 ton31337 deleted the fix/memory_optimization branch February 1, 2024 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants