diff options
author | Christoph Hellwig <hch@lst.de> | 2020-05-28 07:12:11 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-05-28 11:11:44 -0700 |
commit | 6e43496745e75ac49d644df984d2f4ee5b5b6b4e (patch) | |
tree | ef3eeb80b015aa53a98072d925fe7900b8634a07 /include/net/sock.h | |
parent | c433594c07457d2b2e41a87014bfad9bec279abf (diff) | |
download | linux-6e43496745e75ac49d644df984d2f4ee5b5b6b4e.tar.gz linux-6e43496745e75ac49d644df984d2f4ee5b5b6b4e.tar.bz2 linux-6e43496745e75ac49d644df984d2f4ee5b5b6b4e.zip |
net: add sock_set_priority
Add a helper to directly set the SO_PRIORITY sockopt from kernel space
without going through a fake uaccess.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/sock.h')
-rw-r--r-- | include/net/sock.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/sock.h b/include/net/sock.h index 6ed00bf009bb..a3a43141a4be 100644 --- a/include/net/sock.h +++ b/include/net/sock.h @@ -2689,6 +2689,7 @@ static inline bool sk_dev_equal_l3scope(struct sock *sk, int dif) void sock_def_readable(struct sock *sk); void sock_no_linger(struct sock *sk); +void sock_set_priority(struct sock *sk, u32 priority); void sock_set_reuseaddr(struct sock *sk); #endif /* _SOCK_H */ |