Skip to content

program-type/BPF_PROG_TYPE_SOCK_OPS: add mention of BPF_WRITE_HDR_TCP_CURRENT_MSS - #290

Merged
dylandreimerink merged 1 commit into
isovalent:masterfrom
zaregata:master
Sep 3, 2026
Merged

program-type/BPF_PROG_TYPE_SOCK_OPS: add mention of BPF_WRITE_HDR_TCP_CURRENT_MSS#290
dylandreimerink merged 1 commit into
isovalent:masterfrom
zaregata:master

Conversation

@zaregata

Copy link
Copy Markdown

The kernel will sometime trigger the BPF_SOCK_OPS_HDR_OPT_LEN_CB event with a fake, empty packet to guess the future packet's size. See here https://elixir.bootlin.com/linux/v7.1.3/source/net/ipv4/tcp_output.c#L521.

When that's the case, it will add BPF_WRITE_HDR_TCP_CURRENT_MSS as the first arg to notify that no space will be actually reserved.

…_CURRENT_MSS

The kernel will sometime trigger the BPF_SOCK_OPS_HDR_OPT_LEN_CB event
with a fake, empty packet to guess the future packet's size. See here https://elixir.bootlin.com/linux/v7.1.3/source/net/ipv4/tcp_output.c#L521.

When that's the case, it will add `BPF_WRITE_HDR_TCP_CURRENT_MSS` as
the first arg to notify that no space will be actually reserved.

@dylandreimerink dylandreimerink left a comment

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.

Nice, thank you!

@dylandreimerink
dylandreimerink merged commit ddbdf99 into isovalent:master Sep 3, 2026
2 checks passed
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