Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dwc_eqos - jumbo packets up to 4088 #35

Merged
merged 1 commit into from
Jan 8, 2024
Merged

dwc_eqos - jumbo packets up to 4088 #35

merged 1 commit into from
Jan 8, 2024

Conversation

idigdoug
Copy link
Collaborator

@idigdoug idigdoug commented Jan 7, 2024

Support jumbo packets up to 4088 bytes (MTU 4074). This means raising the receive buffer size up to 4096, but since it appears that NetAdapterCx allocates buffers at page granularity anyway, I don't think this actually costs anything.

I tried to enable 9014-byte packets, but with system-managed buffering, I can't see how to specify that I want a small buffer (e.g. 2KB or 4KB) while also indicating that I might receive a large packet (e.g. 9014 bytes) -- the two sizes appear to be tied together. I think if we want 9014-byte jumbo frames, we either use 12KB receive buffers (very inefficient use of memory) or we use driver-managed receive buffers (a bit more work that I can't finish tonight). So stick with a 4088 byte limit for now.

Support jumbo packets up to 4088 bytes (MTU 4074). This means raising
the receive buffer size up to 4096, but since it appears that
NetAdapterCx allocates buffers at page granularity anyway, I don't think
this actually costs anything.

I tried to enable 9014-byte packets, but with system-managed buffering,
I can't see how to specify that I want a small buffer (e.g. 2KB or 4KB) while
also indicating that I might receive a large packet (e.g. 9014 bytes) -- the
two sizes appear to be tied together. I think if we want 9014-byte jumbo
frames, we either use 12KB receive buffers (very inefficient use of
memory) or we use driver-managed receive buffers (a bit more work that I
can't finish tonight). So stick with a 4088 byte limit for now.
@idigdoug idigdoug merged commit 4739f2d into master Jan 8, 2024
2 checks passed
@idigdoug idigdoug deleted the dwc_eqos_4088 branch January 8, 2024 00:07
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