Skip to content

Commit f35e0cc

Browse files
baruchsiachborkmann
authored andcommitted
doc, af_xdp: Fix bind flags option typo
Fix XDP_ZERO_COPY flag typo since it is actually named XDP_ZEROCOPY instead as per if_xdp.h uapi header. Signed-off-by: Baruch Siach <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Magnus Karlsson <[email protected]> Link: https://lore.kernel.org/bpf/1656fdf94704e9e735df0f8b97667d8f26dd098b.1625550240.git.baruch@tkos.co.il
1 parent a5de4be commit f35e0cc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Documentation/networking/af_xdp.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,16 +243,16 @@ Configuration Flags and Socket Options
243243
These are the various configuration flags that can be used to control
244244
and monitor the behavior of AF_XDP sockets.
245245

246-
XDP_COPY and XDP_ZERO_COPY bind flags
247-
-------------------------------------
246+
XDP_COPY and XDP_ZEROCOPY bind flags
247+
------------------------------------
248248

249249
When you bind to a socket, the kernel will first try to use zero-copy
250250
copy. If zero-copy is not supported, it will fall back on using copy
251251
mode, i.e. copying all packets out to user space. But if you would
252252
like to force a certain mode, you can use the following flags. If you
253253
pass the XDP_COPY flag to the bind call, the kernel will force the
254254
socket into copy mode. If it cannot use copy mode, the bind call will
255-
fail with an error. Conversely, the XDP_ZERO_COPY flag will force the
255+
fail with an error. Conversely, the XDP_ZEROCOPY flag will force the
256256
socket into zero-copy mode or fail.
257257

258258
XDP_SHARED_UMEM bind flag

0 commit comments

Comments
 (0)