Skip to content

net: zperf: make TCP receiver buffer size configurable via Kconfig#3

Closed
Surya-Tumma wants to merge 1 commit into
mainfrom
zperf_tcp_RECV_BUF
Closed

net: zperf: make TCP receiver buffer size configurable via Kconfig#3
Surya-Tumma wants to merge 1 commit into
mainfrom
zperf_tcp_RECV_BUF

Conversation

@Surya-Tumma

@Surya-Tumma Surya-Tumma commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

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.

@Surya-Tumma Surya-Tumma requested a review from sayoojkkarun June 8, 2026 13:02
@Surya-Tumma Surya-Tumma self-assigned this Jun 8, 2026
Comment thread subsys/net/lib/zperf/Kconfig Outdated
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>
@Surya-Tumma Surya-Tumma force-pushed the zperf_tcp_RECV_BUF branch from 464f957 to 900db70 Compare June 9, 2026 07:41
@Surya-Tumma

Copy link
Copy Markdown
Collaborator Author

Closing this PR got two appoval on Open source PR and issue resolved!!

@Surya-Tumma Surya-Tumma closed this Jun 9, 2026
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.

2 participants