From fbdd8b3fa8077ad5377de5e65f7f21957193e6b8 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Fri, 20 Dec 2024 11:45:45 +0000 Subject: [PATCH] Add MSG_SOCK_DEVMEM from Linux 6.12 to bits/socket.h Linux 6.12 adds a constant MSG_SOCK_DEVMEM (recall that various constants such as this one are defined in the non-uapi linux/socket.h but still form part of the kernel/userspace interface, so that non-uapi header is one that needs checking each release for new such constants). Add it to glibc's bits/socket.h. Tested for x86_64. --- sysdeps/unix/sysv/linux/bits/socket.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sysdeps/unix/sysv/linux/bits/socket.h b/sysdeps/unix/sysv/linux/bits/socket.h index 5ab19a8c08..ca27a3c597 100644 --- a/sysdeps/unix/sysv/linux/bits/socket.h +++ b/sysdeps/unix/sysv/linux/bits/socket.h @@ -246,6 +246,8 @@ enum #define MSG_WAITFORONE MSG_WAITFORONE MSG_BATCH = 0x40000, /* sendmmsg: more messages coming. */ #define MSG_BATCH MSG_BATCH + MSG_SOCK_DEVMEM = 0x2000000, /* Receive devmem skbs as cmsg. */ +#define MSG_SOCK_DEVMEM MSG_SOCK_DEVMEM MSG_ZEROCOPY = 0x4000000, /* Use user data in kernel path. */ #define MSG_ZEROCOPY MSG_ZEROCOPY MSG_FASTOPEN = 0x20000000, /* Send data in TCP SYN. */