diff options
| author | Christoph Hellwig <[email protected]> | 2020-05-28 05:12:36 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2020-05-28 18:11:46 +0000 |
| commit | 095ae612530c9465df6d372d688cb30c6abfc5f5 (patch) | |
| tree | 79271cfd7014dfd17cdb32495757374c7e1c18c4 /net/tipc/socket.h | |
| parent | rxrpc: add rxrpc_sock_set_min_security_level (diff) | |
| download | kernel-095ae612530c9465df6d372d688cb30c6abfc5f5.tar.gz kernel-095ae612530c9465df6d372d688cb30c6abfc5f5.zip | |
tipc: call tsk_set_importance from tipc_topsrv_create_listener
Avoid using kernel_setsockopt for the TIPC_IMPORTANCE option when we can
just use the internal helper. The only change needed is to pass a struct
sock instead of tipc_sock, which is private to socket.c
Signed-off-by: Christoph Hellwig <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/tipc/socket.h')
| -rw-r--r-- | net/tipc/socket.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/tipc/socket.h b/net/tipc/socket.h index 235b9679acee..b11575afc66f 100644 --- a/net/tipc/socket.h +++ b/net/tipc/socket.h @@ -75,4 +75,6 @@ u32 tipc_sock_get_portid(struct sock *sk); bool tipc_sk_overlimit1(struct sock *sk, struct sk_buff *skb); bool tipc_sk_overlimit2(struct sock *sk, struct sk_buff *skb); +int tsk_set_importance(struct sock *sk, int imp); + #endif |
