d8307d
commit 38b0593e9a862c3b35392a0f5b202696b8116aa3
d8307d
Author: Tobias Klauser <tklauser@distanz.ch>
d8307d
Date:   Tue Aug 21 17:22:53 2018 +0000
d8307d
d8307d
    Add PF_XDP, AF_XDP and SOL_XDP from Linux 4.18 to bits/socket.h.
d8307d
    
d8307d
    This patch adds the PF_XDP, AF_XDP and SOL_XDP macros from Linux 4.18 to
d8307d
    sysdeps/unix/sysv/linux/bits/socket.h.
d8307d
    
d8307d
            * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
d8307d
            (PF_XDP): New macro.
d8307d
            (AF_XDP): New macro.
d8307d
            (SOL_XDP): New macro.
d8307d
d8307d
diff --git a/sysdeps/unix/sysv/linux/bits/socket.h b/sysdeps/unix/sysv/linux/bits/socket.h
d8307d
index fa409f0fabc22d33..c3fbb2110296273c 100644
d8307d
--- a/sysdeps/unix/sysv/linux/bits/socket.h
d8307d
+++ b/sysdeps/unix/sysv/linux/bits/socket.h
d8307d
@@ -85,7 +85,8 @@ typedef __socklen_t socklen_t;
d8307d
 #define PF_KCM		41	/* Kernel Connection Multiplexor.  */
d8307d
 #define PF_QIPCRTR	42	/* Qualcomm IPC Router.  */
d8307d
 #define PF_SMC		43	/* SMC sockets.  */
d8307d
-#define PF_MAX		44	/* For now..  */
d8307d
+#define PF_XDP		44	/* XDP sockets.  */
d8307d
+#define PF_MAX		45	/* For now..  */
d8307d
 
d8307d
 /* Address families.  */
d8307d
 #define AF_UNSPEC	PF_UNSPEC
d8307d
@@ -135,6 +136,7 @@ typedef __socklen_t socklen_t;
d8307d
 #define AF_KCM		PF_KCM
d8307d
 #define AF_QIPCRTR	PF_QIPCRTR
d8307d
 #define AF_SMC		PF_SMC
d8307d
+#define AF_XDP		PF_XDP
d8307d
 #define AF_MAX		PF_MAX
d8307d
 
d8307d
 /* Socket level values.  Others are defined in the appropriate headers.
d8307d
@@ -164,6 +166,7 @@ typedef __socklen_t socklen_t;
d8307d
 #define SOL_NFC		280
d8307d
 #define SOL_KCM		281
d8307d
 #define SOL_TLS		282
d8307d
+#define SOL_XDP		283
d8307d
 
d8307d
 /* Maximum queue length specifiable by listen.  */
d8307d
 #define SOMAXCONN	128