From patchwork Mon Aug 13 13:35:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tobias Klauser X-Patchwork-Id: 28869 Received: (qmail 128292 invoked by alias); 13 Aug 2018 13:35:14 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 128270 invoked by uid 89); 13 Aug 2018 13:35:14 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-25.9 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=families, listen, H*F:D*ch, smc X-HELO: sym2.noone.org From: Tobias Klauser To: libc-alpha@sourceware.org Subject: [PATCH] Add PF_XDP, AF_XDP and SOL_XDP from Linux 4.18 to bits/socket.h. Date: Mon, 13 Aug 2018 15:35:07 +0200 Message-Id: <1534167307-25205-1-git-send-email-tklauser@distanz.ch> This patch adds the PF_XDP, AF_XDP and SOL_XDP macros from Linux 4.18 to sysdeps/unix/sysv/linux/bits/socket.h. * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45. (PF_XDP): New macro. (AF_XDP): New macro. (SOL_XDP): New macro. --- sysdeps/unix/sysv/linux/bits/socket.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sysdeps/unix/sysv/linux/bits/socket.h b/sysdeps/unix/sysv/linux/bits/socket.h index fa409f0fabc2..c3fbb2110296 100644 --- a/sysdeps/unix/sysv/linux/bits/socket.h +++ b/sysdeps/unix/sysv/linux/bits/socket.h @@ -85,7 +85,8 @@ typedef __socklen_t socklen_t; #define PF_KCM 41 /* Kernel Connection Multiplexor. */ #define PF_QIPCRTR 42 /* Qualcomm IPC Router. */ #define PF_SMC 43 /* SMC sockets. */ -#define PF_MAX 44 /* For now.. */ +#define PF_XDP 44 /* XDP sockets. */ +#define PF_MAX 45 /* For now.. */ /* Address families. */ #define AF_UNSPEC PF_UNSPEC @@ -135,6 +136,7 @@ typedef __socklen_t socklen_t; #define AF_KCM PF_KCM #define AF_QIPCRTR PF_QIPCRTR #define AF_SMC PF_SMC +#define AF_XDP PF_XDP #define AF_MAX PF_MAX /* Socket level values. Others are defined in the appropriate headers. @@ -164,6 +166,7 @@ typedef __socklen_t socklen_t; #define SOL_NFC 280 #define SOL_KCM 281 #define SOL_TLS 282 +#define SOL_XDP 283 /* Maximum queue length specifiable by listen. */ #define SOMAXCONN 128