Skip to content

Conversation

@github-actions
Copy link

@github-actions github-actions bot commented Aug 4, 2025

Backport 1ed3c0d from #3124.

Fix Max Chunk reporting during Block_Information_Get:
If friendship is established, then max possible chunk size for transfer
is reported according to friend's queue size.

ChunkSize = (FndQ sz * Bytes per seg (12)) - Opcode(1) - Chunk_Num (2)-
            8 byte MIC (max)
	  = (FndQ sz * 12) - 11

This allows all segments of Chunk_Transfer messages to fit in a friend
queue. If this is not done, friend queue keeps overflowing
systematically causing unstable PULL_MODE transfers.

Fix Chunk requests:
Adapt number of requested chunks according to current friend queue size.
If friend queue is too small, at least 1 chunk is requested.

Signed-off-by: Omkar Kulkarni <[email protected]>
(cherry picked from commit 602fd0d)
(cherry picked from commit 1ed3c0d)
@Balaklaka Balaklaka added this to the ncs-3.1.0 milestone Aug 6, 2025
@carlescufi carlescufi merged commit 99b6861 into ncs-v3.1-branch Aug 6, 2025
1 check passed
@NordicBuilder
Copy link
Contributor

none

Note: This comment is automatically posted and updated by the Contribs GitHub Action.

@thst-nordic thst-nordic deleted the backport-3124-to-ncs-v3.1-branch branch August 29, 2025 11:09
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.

5 participants