Skip to content

fix(connlib): take into account header overhead for GSO#9088

Merged
thomaseizinger merged 1 commit into
mainfrom
fix/smaller-batch-size
May 12, 2025
Merged

fix(connlib): take into account header overhead for GSO#9088
thomaseizinger merged 1 commit into
mainfrom
fix/smaller-batch-size

Conversation

@thomaseizinger

Copy link
Copy Markdown
Member

When calculating the maximum size of the UDP payload we can send in a single syscall, we need to take into account the overhead of the IP and UDP headers.

@thomaseizinger thomaseizinger requested a review from jamilbk May 12, 2025 07:35
@vercel

vercel Bot commented May 12, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
firezone ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 12, 2025 7:36am

Copilot AI review requested due to automatic review settings May 12, 2025 07:35
@sentry

sentry Bot commented May 12, 2025

Copy link
Copy Markdown

Sentry Issue: GATEWAY-CG

@thomaseizinger thomaseizinger enabled auto-merge May 12, 2025 07:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the UDP payload size calculation to account for the IP and UDP header overhead in scenarios involving Generic Segmentation Offload (GSO).

  • Updated the calculate_chunk_size function to include the destination SocketAddr parameter for header overhead calculations.
  • Adjusted the maximum payload calculation by subtracting the appropriate header lengths based on IP version.

Comment thread rust/connlib/socket-factory/src/lib.rs
Comment thread rust/connlib/socket-factory/src/lib.rs
@sentry

sentry Bot commented May 12, 2025

Copy link
Copy Markdown

Sentry Issue: GATEWAY-CD

@thomaseizinger thomaseizinger added this pull request to the merge queue May 12, 2025
Merged via the queue into main with commit 7e4fe68 May 12, 2025
111 checks passed
@thomaseizinger thomaseizinger deleted the fix/smaller-batch-size branch May 12, 2025 11:45
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.

3 participants