Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <edumazet@google.com>
Cc: Martin KaFai Lau <kafai@fb.com>
Acked-by: Willem de Bruijn <willemb@google.com>
Link: https://lore.kernel.org/r/20231212110608.3673677-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Eric Dumazet and committed by
Jakub Kicinski
173b6d1c 85c2674d

+2 -1
+2 -1
Documentation/networking/timestamping.rst
··· 357 357 send time with the value returned for each timestamp. It can prevent 358 358 the situation by always flushing the TCP stack in between requests, 359 359 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. 361 362 362 363 These precautions ensure that the timestamp is generated only when all 363 364 bytes have passed a timestamp point, assuming that the network stack