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

bird2: update to 2.16.1 #1097

Merged
merged 1 commit into from
Jan 13, 2025

Conversation

PolynomialDivision
Copy link
Member

Previously, we used the -mno-unaligned-access flag to instruct GCC to forbid unaligned memory access on arm processors. This was a workaround for alignment issues that caused crashes.

This commit imports a patch from the BIRD mailing list discussion [0] that resolves the alignment issue by modifying the net_addr structure, removing the need for the GCC flag. The patch addresses the alignment problem more efficiently and avoids the performance, code size, and hardware optimization drawbacks of the flag.

[0] - http://trubka.network.cz/pipermail/bird-users/2024-December/017957.html

Maintainer: @tohojo
Compile tested: arm7
Run tested: arm7

@PolynomialDivision PolynomialDivision marked this pull request as draft December 18, 2024 00:14
@PolynomialDivision PolynomialDivision marked this pull request as ready for review December 18, 2024 00:21
Copy link
Contributor

@tohojo tohojo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs PKG_RELEASE bump...

@spolack
Copy link

spolack commented Dec 18, 2024

@tohojo
Copy link
Contributor

tohojo commented Dec 19, 2024

There are two patches upstream, let's include both - cf: http://trubka.network.cz/pipermail/bird-users/2024-December/017988.html

@PolynomialDivision PolynomialDivision force-pushed the bird2-replace-gcc-flag branch 3 times, most recently from f670143 to 793147a Compare January 13, 2025 15:07
@PolynomialDivision PolynomialDivision changed the title bird2: replace gcc flag workaround with patch fixing alignment issues bird2: update to 2.16.1 including patch fixing alignment issues Jan 13, 2025
The bird package has been updated to include a patch that directly fixes the
alignment issue, which previously required the use of the -mno-unaligned-access
GCC flag on ARM processors. This patch, originally discussed on the BIRD mailing
list [0], modifies the net_addr structure to resolve the alignment problem
without needing the workaround.

By incorporating this patch, the alignment issue is addressed more efficiently,
eliminating the performance, code size, and hardware optimization drawbacks
associated with the GCC flag.

Release Notes:
http://trubka.network.cz/pipermail/bird-users/2025-January/018041.html

[0] - http://trubka.network.cz/pipermail/bird-users/2024-December/017957.html

Signed-off-by: Nick Hainke <vincent@systemli.org>
@PolynomialDivision PolynomialDivision changed the title bird2: update to 2.16.1 including patch fixing alignment issues bird2: update to 2.16.1 Jan 13, 2025
@PolynomialDivision
Copy link
Member Author

@tohojo I updated now to latest bird2 release.

@tohojo
Copy link
Contributor

tohojo commented Jan 13, 2025

Great, thanks!

@tohojo tohojo merged commit 4a65e35 into openwrt:master Jan 13, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants