Commit 9163b05e authored by Jakub Kicinski's avatar Jakub Kicinski
Browse files

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: default avatarJakub Kicinski <kuba@kernel.org>
parents 4fe20553 e45469e5
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -148,6 +148,8 @@

#define SCM_TS_OPT_ID		81

#define SO_RCVPRIORITY		82

#if !defined(__KERNEL__)

#if __BITS_PER_LONG == 64
+2 −0
Original line number Diff line number Diff line
@@ -159,6 +159,8 @@

#define SCM_TS_OPT_ID		81

#define SO_RCVPRIORITY		82

#if !defined(__KERNEL__)

#if __BITS_PER_LONG == 64
+2 −0
Original line number Diff line number Diff line
@@ -140,6 +140,8 @@

#define SCM_TS_OPT_ID		0x404C

#define SO_RCVPRIORITY		0x404D

#if !defined(__KERNEL__)

#if __BITS_PER_LONG == 64
+2 −0
Original line number Diff line number Diff line
@@ -141,6 +141,8 @@

#define SCM_TS_OPT_ID            0x005a

#define SO_RCVPRIORITY           0x005b

#if !defined(__KERNEL__)


+1 −1
Original line number Diff line number Diff line
@@ -172,7 +172,7 @@ struct inet_cork {
	u8			tx_flags;
	__u8			ttl;
	__s16			tos;
	char			priority;
	u32			priority;
	__u16			gso_size;
	u32			ts_opt_id;
	u64			transmit_time;
Loading