forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-09 05e59e5fb0064c97a1c10921ecd549f2d4a58565
kernel/Documentation/networking/af_xdp.rst
....@@ -433,6 +433,15 @@
433433 application to use. The final option is the flags field, but it will
434434 be dealt with in separate sections for each UMEM flag.
435435
436
+SO_BINDTODEVICE setsockopt
437
+--------------------------
438
+
439
+This is a generic SOL_SOCKET option that can be used to tie AF_XDP
440
+socket to a particular network interface. It is useful when a socket
441
+is created by a privileged process and passed to a non-privileged one.
442
+Once the option is set, kernel will refuse attempts to bind that socket
443
+to a different interface. Updating the value requires CAP_NET_RAW.
444
+
436445 XDP_STATISTICS getsockopt
437446 -------------------------
438447