From: Joseph Myers Date: Fri, 20 Dec 2024 11:45:45 +0000 (+0000) Subject: Add MSG_SOCK_DEVMEM from Linux 6.12 to bits/socket.h X-Git-Tag: glibc-2.41~281 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fbdd8b3fa8077ad5377de5e65f7f21957193e6b8;p=thirdparty%2Fglibc.git 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. --- 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. */