net: add sock_set_reuseport
Add a helper to directly set the SO_REUSEPORT sockopt from kernel space without going through a fake uaccess. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
26cfabf9cd
commit
fe31a326a4
@@ -2695,6 +2695,7 @@ void sock_set_keepalive(struct sock *sk);
|
||||
void sock_set_priority(struct sock *sk, u32 priority);
|
||||
void sock_set_rcvbuf(struct sock *sk, int val);
|
||||
void sock_set_reuseaddr(struct sock *sk);
|
||||
void sock_set_reuseport(struct sock *sk);
|
||||
void sock_set_sndtimeo(struct sock *sk, s64 secs);
|
||||
|
||||
#endif /* _SOCK_H */
|
||||
|
Reference in New Issue
Block a user