]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: refactor tipc_sendmsg() and tipc_lookup_anycast()
authorJon Maloy <jmaloy@redhat.com>
Wed, 17 Mar 2021 02:06:15 +0000 (22:06 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Mar 2021 18:51:04 +0000 (11:51 -0700)
commit1b72736c651bc5761d7d2625f391addf05d2fd3d
tree28bd3ddd764b527d45aa6d5438af7d83855b44a2
parent704e81487b3637642f6c8935eb93863ec1f558cf
tipc: refactor tipc_sendmsg() and tipc_lookup_anycast()

We simplify the signature if function tipc_nametbl_lookup_anycast(),
using address structures instead of discrete integers.

This also makes it possible to make some improvements to the functions
__tipc_sendmsg() in socket.c and tipc_msg_lookup_dest() in msg.c.

Signed-off-by: Jon Maloy <jmaloy@redhat.com>
Acked-by: Ying Xue <ying.xue@windriver.com>
Acked-by: Hoang Le <hoang.h.le@dektech.com.au>
Acked-by: Tung Nguyen <tung.q.nguyen@dektech.com.au>
Acked-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/msg.c
net/tipc/name_table.c
net/tipc/name_table.h
net/tipc/socket.c