tipc: simplify signature of tipc_nametbl_lookup_mcast_nodes()
We follow up the preceding commits by reducing the signature of the function tipc_nametbl_lookup_mcast_nodes(). 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>
This commit is contained in:
committed by
David S. Miller
parent
45ceea2d40
commit
833f867089
@@ -698,20 +698,20 @@ exit:
|
||||
* Used on nodes which are sending out a multicast/broadcast message
|
||||
* Returns a list of nodes, including own node if applicable
|
||||
*/
|
||||
void tipc_nametbl_lookup_mcast_nodes(struct net *net, u32 type, u32 lower,
|
||||
u32 upper, struct tipc_nlist *nodes)
|
||||
void tipc_nametbl_lookup_mcast_nodes(struct net *net, struct tipc_uaddr *ua,
|
||||
struct tipc_nlist *nodes)
|
||||
{
|
||||
struct service_range *sr;
|
||||
struct tipc_service *sc;
|
||||
struct publication *p;
|
||||
|
||||
rcu_read_lock();
|
||||
sc = tipc_service_find(net, type);
|
||||
sc = tipc_service_find(net, ua->sr.type);
|
||||
if (!sc)
|
||||
goto exit;
|
||||
|
||||
spin_lock_bh(&sc->lock);
|
||||
service_range_foreach_match(sr, sc, lower, upper) {
|
||||
service_range_foreach_match(sr, sc, ua->sr.lower, ua->sr.upper) {
|
||||
list_for_each_entry(p, &sr->all_publ, all_publ) {
|
||||
tipc_nlist_add(nodes, p->sk.node);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user