summaryrefslogtreecommitdiff
path: root/include/uapi
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2024-12-17 05:11:21 +0300
committerJakub Kicinski <kuba@kernel.org>2024-12-17 05:16:51 +0300
commit9163b05eca1d920653efc752b438867dd48fb88b (patch)
tree2f7a88d7a10614ad70b6a7974d5395f4b0ce6777 /include/uapi
parent4fe205539c46ab0add34675ab037f49caa30607c (diff)
parente45469e594b255ef8d750ed5576698743450d2ac (diff)
downloadlinux-9163b05eca1d920653efc752b438867dd48fb88b.tar.xz
Merge branch 'add-support-for-so_priority-cmsg'
Anna Emese Nyiri says: ==================== Add support for SO_PRIORITY cmsg Introduce a new helper function, `sk_set_prio_allowed`, to centralize the logic for validating priority settings. Add support for the `SO_PRIORITY` control message, enabling user-space applications to set socket priority via control messages (cmsg). ==================== Link: https://patch.msgid.link/20241213084457.45120-1-annaemesenyiri@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/asm-generic/socket.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/asm-generic/socket.h b/include/uapi/asm-generic/socket.h
index deacfd6dd197..aa5016ff3d91 100644
--- a/include/uapi/asm-generic/socket.h
+++ b/include/uapi/asm-generic/socket.h
@@ -143,6 +143,8 @@
#define SCM_TS_OPT_ID 81
+#define SO_RCVPRIORITY 82
+
#if !defined(__KERNEL__)
#if __BITS_PER_LONG == 64 || (defined(__x86_64__) && defined(__ILP32__))