aboutsummaryrefslogtreecommitdiff
path: root/net/tipc/socket.h
diff options
context:
space:
mode:
authorGravatar Christoph Hellwig <hch@lst.de> 2020-05-28 07:12:36 +0200
committerGravatar David S. Miller <davem@davemloft.net> 2020-05-28 11:11:46 -0700
commit095ae612530c9465df6d372d688cb30c6abfc5f5 (patch)
tree79271cfd7014dfd17cdb32495757374c7e1c18c4 /net/tipc/socket.h
parentrxrpc: add rxrpc_sock_set_min_security_level (diff)
downloadlinux-095ae612530c9465df6d372d688cb30c6abfc5f5.tar.gz
linux-095ae612530c9465df6d372d688cb30c6abfc5f5.tar.bz2
linux-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 <hch@lst.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/socket.h')
-rw-r--r--net/tipc/socket.h2
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