sock: Introduce SO_RCVPRIORITY socket option
authorAnna Emese Nyiri <annaemesenyiri@gmail.com>
Fri, 13 Dec 2024 08:44:57 +0000 (09:44 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 17 Dec 2024 02:16:44 +0000 (18:16 -0800)
commite45469e594b255ef8d750ed5576698743450d2ac
tree2f7a88d7a10614ad70b6a7974d5395f4b0ce6777
parentcda7d5abe089cc8bd6d623cd6577627d8125d155
sock: Introduce SO_RCVPRIORITY socket option

Add new socket option, SO_RCVPRIORITY, to include SO_PRIORITY in the
ancillary data returned by recvmsg().
This is analogous to the existing support for SO_RCVMARK,
as implemented in commit 6fd1d51cfa253 ("net: SO_RCVMARK socket option
for SO_MARK with recvmsg()").

Reviewed-by: Willem de Bruijn <willemb@google.com>
Suggested-by: Ferenc Fejes <fejes@inf.elte.hu>
Signed-off-by: Anna Emese Nyiri <annaemesenyiri@gmail.com>
Link: https://patch.msgid.link/20241213084457.45120-5-annaemesenyiri@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
arch/alpha/include/uapi/asm/socket.h
arch/mips/include/uapi/asm/socket.h
arch/parisc/include/uapi/asm/socket.h
arch/sparc/include/uapi/asm/socket.h
include/net/sock.h
include/uapi/asm-generic/socket.h
net/core/sock.c
net/socket.c
tools/include/uapi/asm-generic/socket.h