Skip to contentSkip to conversation

docs: networking: timestamping: mention MSG_EOR flag

PATCH Applied Eric Dumazet 3 participants 3 messages Dec 12, 2023 – Dec 14, 2023

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docs: networking: timestamping: mention MSG_EOR flag

TCP got MSG_EOR support in linux-4.7.

This is a canonical way of making sure no coalescing will be performed on the skb, even if it could not be immediately sent.

Cc Martin KaFai Lau <[email protected]
Cc Willem de Bruijn <[email protected]>
---
 Documentation/networking/timestamping.rst | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/networking/timestamping.rst +2 -1
index f17c01834a1230d31957112bb7f9c207e9178ecc..5e93cd71f99f1b17169b31f2ff93e8bd5220e5cd 100644
@@ -357,7 +357,8 @@ enabling SOF_TIMESTAMPING_OPT_ID and comparing the byte offset at
 send time with the value returned for each timestamp. It can prevent
 the situation by always flushing the TCP stack in between requests,
 for instance by enabling TCP_NODELAY and disabling TCP_CORK and
-autocork.
+autocork. After linux-4.7, a better way to prevent coalescing is
+to use MSG_EOR flag at sendmsg() time.
 
 These precautions ensure that the timestamp is generated only when all
 bytes have passed a timestamp point, assuming that the network stack
Signature · 1 line
2.43.0.472.g3155946c3a-goog
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines · Eric Dumazet

TCP got MSG_EOR support in linux-4.7.

This is a canonical way of making sure no coalescing will be performed on the skb, even if it could not be immediately sent.

Cc Martin KaFai Lau <[email protected]
Cc Willem de Bruijn <[email protected]>
Quoted 9 lines
---
 Documentation/networking/timestamping.rst | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/networking/timestamping.rst +0 -0
index f17c01834a1230d31957112bb7f9c207e9178ecc..5e93cd71f99f1b17169b31f2ff93e8bd5220e5cd 100644

Documentation/networking/timestamping.rst enabling SOF_TIMESTAMPING_OPT_ID and comparing the byte offset at · line 361

Quoted 6 lines
Documentation/networking/timestamping.rst +2 -1
@@ -357,7 +357,8 @@ enabling SOF_TIMESTAMPING_OPT_ID and comparing the byte offset at
 send time with the value returned for each timestamp. It can prevent
 the situation by always flushing the TCP stack in between requests,
 for instance by enabling TCP_NODELAY and disabling TCP_CORK and
-autocork.
+autocork. After linux-4.7, a better way to prevent coalescing is
+to use MSG_EOR flag at sendmsg() time.

Good catch. We could even remove the old deprecated suggestion, and drop the versioning, as this Documentation ships with the kernel to which it applies.

#2 lore raw
In reply to Eric Dumazet
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 11 lines · On Tue, 12 Dec 2023 11:06:08 +0000 you wrote:

TCP got MSG_EOR support in linux-4.7.

This is a canonical way of making sure no coalescing will be performed on the skb, even if it could not be immediately sent.

Cc Martin KaFai Lau <[email protected]
Cc Willem de Bruijn <[email protected]>

[...]

Here is the summary with links:
- [net-next] docs: networking: timestamping: mention MSG_EOR flag

    https://git.kernel.org/netdev/net-next/c/173b6d1cdf58

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html