summaryrefslogtreecommitdiff
path: root/Documentation/networking
diff options
context:
space:
mode:
authorKornilios Kourtis <kou@zurich.ibm.com>2018-01-09 11:52:22 +0300
committerDavid S. Miller <davem@davemloft.net>2018-01-10 23:01:49 +0300
commitaf60d61fa846725566f4a876ae04f891bdff1c7a (patch)
tree2c280254a7e5564cb444d8512f58e0e205b98258 /Documentation/networking
parent11d827a993a969c3c6ec56758ff63a44ba19b466 (diff)
downloadlinux-af60d61fa846725566f4a876ae04f891bdff1c7a.tar.xz
doc: clarification about setting SO_ZEROCOPY
Signed-off-by: Kornilios Kourtis <kou@zurich.ibm.com> Acked-by: Willem de Bruijn <willemb@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/networking')
-rw-r--r--Documentation/networking/msg_zerocopy.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/networking/msg_zerocopy.rst b/Documentation/networking/msg_zerocopy.rst
index 77f6d7e25cfd..291a01264967 100644
--- a/Documentation/networking/msg_zerocopy.rst
+++ b/Documentation/networking/msg_zerocopy.rst
@@ -72,6 +72,10 @@ this flag, a process must first signal intent by setting a socket option:
if (setsockopt(fd, SOL_SOCKET, SO_ZEROCOPY, &one, sizeof(one)))
error(1, errno, "setsockopt zerocopy");
+Setting the socket option only works when the socket is in its initial
+(TCP_CLOSED) state. Trying to set the option for a socket returned by accept(),
+for example, will lead to an EBUSY error. In this case, the option should be set
+to the listening socket and it will be inherited by the accepted sockets.
Transmission
------------