Skip to content

Frame: add hardware checksum offload and TSO metadata - #154

Open
rpaulo wants to merge 1 commit into
apple:mainfrom
rpaulo:frame-checksum
Open

rpaulo wants to merge 1 commit into
apple:mainfrom
rpaulo:frame-checksum

Conversation

@rpaulo

@rpaulo rpaulo commented Sep 16, 2026

Copy link
Copy Markdown
Contributor
  • Add RX transport checksum validation flags and hardware checksum value reporting
  • Add TX partial-checksum offload start/store offsets
  • Add TSO segment size and IPv6 super-packet support
  • Fix inverted guard conditions in aggregate buffer length handling

@rpaulo rpaulo added the 🆕 semver/minor Adds new public API. label Sep 16, 2026
- Add RX transport checksum validation flags and hardware checksum
  value reporting
- Add TX partial-checksum offload start/store offsets
- Add TSO segment size and IPv6 super-packet support
- Fix inverted guard conditions in aggregate buffer length handling
final class SwiftNetworkFrameTests: XCTestCase {
func testFrameLayout() {
XCTAssertEqual(MemoryLayout<Frame>.size, 136)
XCTAssertEqual(MemoryLayout<Frame>.stride, 136)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

It would be great to find a way to not increase the size for most frames, but I don't see a great option at this point.

@rpaulo rpaulo Sep 17, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

If this is a problem for embedded, maybe we could not support checksum offloading there and make this structure smaller?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🆕 semver/minor Adds new public API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants