docs: networking: timestamping: mention MSG_EOR flag
Subsystems (4)
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.
--- Documentation/networking/timestamping.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
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. 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
Quoted 9 lines · Eric Dumazet
TCP got
MSG_EORsupport 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.
Signed-off-by Eric Dumazet <[email protected]>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
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.
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_EORsupport 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.
Signed-off-by Eric Dumazet <[email protected]>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