Skip to content

Commit

Permalink
iob: limit the iob bufsize is sufficient to fill all L2/L3/L4 headers
Browse files Browse the repository at this point in the history
rndis header length is 36, L2 header is 14, IPv6 header is 40, tcp header is 56 when sack option count is 4(default max_ofosegs is 4). so the iob bufsize should greater than we need.

Signed-off-by: zhanghongyu <[email protected]>
  • Loading branch information
zhhyu7 authored and xiaoxiang781216 committed Sep 20, 2023
1 parent 55d5006 commit 13f5912
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mm/iob/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ config IOB_NBUFFERS

config IOB_BUFSIZE
int "Payload size of one I/O buffer"
range 196 65535 if NET_TCP_SELECTIVE_ACK && NET_IPv6 && RNDIS
range 128 65535 if NET_TCP_SELECTIVE_ACK && (NET_IPv4 || NET_IPv6)
default 196
---help---
Each packet is represented by a series of small I/O buffers in a
Expand Down

0 comments on commit 13f5912

Please sign in to comment.