{{ message }}
net-tcp_bbr: v3: use correct 64-bit division [bbr-v3-upstream-prep-2024-02-19-01]#11
Open
ptpt52 wants to merge 1 commit into
Conversation
85c4407 to
0bb5b56
Compare
Collaborator
|
Thanks for the patch! Let's try to converge with the upstream tcp_tso_autosize(): The motivation here: we will likely ultimately just switch BBR to using that. So instead of this patch, can you please change the declaration of the "bytes" variable from: to: I imagine that will fix it? If so, let's go with that. Thanks! |
…tso_segs_generic` This change addresses a build failure on 32-bit systems due to undefined division symbols: arm: ERROR: modpost: "__aeabi_uldivmod" [net/ipv4/tcp_bbr.ko] undefined! ERROR: modpost: "__aeabi_ldivmod" [net/ipv4/tcp_bbr.ko] undefined! x86, mips, ppc: ERROR: modpost: "__udivdi3" [net/ipv4/tcp_bbr.ko] undefined! ERROR: modpost: "__divdi3" [net/ipv4/tcp_bbr.ko] undefined! Since `sk->sk_pacing_rate` is already an `unsigned long`, the `bytes` variable is updated to `unsigned long` to resolve these division issues and ensure compatibility across both 32-bit and 64-bit platforms. Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
0bb5b56 to
dcc8b20
Compare
Author
|
@nealcardwell |
Collaborator
|
Hi. I just noticed this is proposing to add this commit to bbr-v3-upstream-prep-2024-02-19-01. Any reason you are proposing to use that branch instead of v3? |
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This commit addresses an issue with integer division on 32-bit system builds, which resulted in undefined symbol errors during the build process.
Errors observed:
arm:
ERROR: modpost: "__aeabi_uldivmod" [net/ipv4/tcp_bbr.ko] undefined! ERROR: modpost: "__aeabi_ldivmod" [net/ipv4/tcp_bbr.ko] undefined!
x86, mips, ppc:
ERROR: modpost: "__udivdi3" [net/ipv4/tcp_bbr.ko] undefined! ERROR: modpost: "__divdi3" [net/ipv4/tcp_bbr.ko] undefined!
The fix ensures proper 64-bit division on affected architectures.