net: zperf: make TCP receiver buffer size configurable via Kconfig#3
Closed
Surya-Tumma wants to merge 1 commit into
Closed
net: zperf: make TCP receiver buffer size configurable via Kconfig#3Surya-Tumma wants to merge 1 commit into
Surya-Tumma wants to merge 1 commit into
Conversation
sayoojkkarun
requested changes
Jun 9, 2026
Problem description: The TCP receiver buffer in zperf_tcp_receiver.c was hard-coded to 1500 bytes due to this the speed is limited. Fix description: Introduce CONFIG_NET_ZPERF_TCP_RECEIVER_BUF_SIZE as a Kconfig int option (default 1500, range 256-65535) so users can config the buffer size based on the requirement. Tests Done: Increasing this value to 32768 has been observed to improve TCP receive throughput from ~80 Mbps to ~130 Mbps on Ethernet hardware. Signed-off-by: Surya Prakash T <suryat@aerlync.com>
464f957 to
900db70
Compare
sayoojkkarun
approved these changes
Jun 9, 2026
sayoojkkarun
approved these changes
Jun 9, 2026
Collaborator
Author
|
Closing this PR got two appoval on Open source PR and issue resolved!! |
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.
Problem description:
The TCP receiver buffer in zperf_tcp_receiver.c was hard-coded to 1500 bytes
This limits throughput because only 1500 bytes are fixed size of buffer.
Fix description:
Add new CONFIG_NET_ZPERF_TCP_RECEIVER_BUF_SIZE as a Kconfig int option (default 1500, range 256-65535) so users can config the buffer size based on the requirement.
Tests Done:
Increasing this value to 32768 has been observed to improve TCP receive throughput from ~80 Mbps to ~130 Mbps on Ethernet hardware.