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

datapath_epoll: adjust CXPLAT_MAX_IO_BATCH_SIZE arithmetic #3919

Merged
merged 1 commit into from
Oct 16, 2023

Conversation

jwhited
Copy link
Contributor

@jwhited jwhited commented Oct 13, 2023

It should account for MIN MTU, not MAX.

Updates #3917

Description

This PR increases the value for the constant controlling the max number of datagrams per coalesced group on Linux. Previously this value was lower than what the max batch size needed to reach in cases where MTU < 1500.

Testing

I'm not familiar with related unit tests, but I have verified this fixes #3917 in functional testing.

Documentation

Not to my knowledge.

It should account for MIN MTU, not MAX.

Updates microsoft#3917

Signed-off-by: Jordan Whited <jordan@tailscale.com>
@jwhited jwhited requested a review from a team as a code owner October 13, 2023 23:16
@codecov
Copy link

codecov bot commented Oct 14, 2023

Codecov Report

Merging #3919 (646f177) into main (c19a3cd) will decrease coverage by 0.40%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #3919      +/-   ##
==========================================
- Coverage   86.97%   86.58%   -0.40%     
==========================================
  Files          56       56              
  Lines       16889    16889              
==========================================
- Hits        14690    14624      -66     
- Misses       2199     2265      +66     

see 13 files with indirect coverage changes

@nibanks nibanks merged commit 496a291 into microsoft:main Oct 16, 2023
384 of 385 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MTU < 1500 on Linux results in performance regression w/UDP_GRO
2 participants