Skip to content

Commit 173b6d1

Browse files
edumazetkuba-moo
authored andcommitted
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. Signed-off-by: Eric Dumazet <[email protected]> Cc: Martin KaFai Lau <[email protected]> Acked-by: Willem de Bruijn <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 85c2674 commit 173b6d1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Documentation/networking/timestamping.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,8 @@ enabling SOF_TIMESTAMPING_OPT_ID and comparing the byte offset at
357357
send time with the value returned for each timestamp. It can prevent
358358
the situation by always flushing the TCP stack in between requests,
359359
for instance by enabling TCP_NODELAY and disabling TCP_CORK and
360-
autocork.
360+
autocork. After linux-4.7, a better way to prevent coalescing is
361+
to use MSG_EOR flag at sendmsg() time.
361362

362363
These precautions ensure that the timestamp is generated only when all
363364
bytes have passed a timestamp point, assuming that the network stack

0 commit comments

Comments
 (0)