summaryrefslogtreecommitdiff
path: root/lib/linux_string.c
diff options
context:
space:
mode:
authorPranav Tilak <[email protected]>2026-03-10 18:28:25 +0530
committerTom Rini <[email protected]>2026-03-13 10:52:02 -0600
commit67586012490a4b2b4db6b79647aaf946f03eb767 (patch)
tree2a6bb5918dc1275df53d9cc98db78e83a4426cae /lib/linux_string.c
parentb3ee14ea6d233a507a7983ccb5f1328cc8d683c2 (diff)
net: lwip: scale buffer pool size with TFTP block size
TFTP transfers fail when tftpblocksize is set to 8192 or larger due to insufficient buffer resources for IP fragment reassembly. Calculate PBUF_POOL_SIZE and IP_REASS_MAX_PBUFS dynamically based on CONFIG_TFTP_BLOCKSIZE using IP fragmentation boundaries (1480 usable bytes per fragment at 1500 MTU). The pool size includes headroom for TX, ARP, and protocol overhead, while ensuring PBUF_POOL_SIZE remains greater than IP_REASS_MAX_PBUFS as required by lwIP. Signed-off-by: Pranav Tilak <[email protected]>
Diffstat (limited to 'lib/linux_string.c')
0 files changed, 0 insertions, 0 deletions