mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +00:00
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>
This commit is contained in:
parent
298cd88a66
commit
095ae61253
3 changed files with 15 additions and 13 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue