Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 266102
b: refs/heads/master
c: 2ff9f92
h: refs/heads/master
v: v3
  • Loading branch information
Allan Stephens authored and Paul Gortmaker committed Sep 1, 2011
1 parent b5ad383 commit 34f669a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2e2d9be8454e295374dfbddd7ceaba2e4fc01c76
refs/heads/master: 2ff9f924a565aa22c06169c89fcd2133d820a9d2
24 changes: 12 additions & 12 deletions trunk/net/tipc/bcast.c
Original file line number Diff line number Diff line change
Expand Up @@ -535,10 +535,11 @@ u32 tipc_bclink_acks_missing(struct tipc_node *n_ptr)
/**
* tipc_bcbearer_send - send a packet through the broadcast pseudo-bearer
*
* Send through as many bearers as necessary to reach all nodes
* that support TIPC multicasting.
* Send packet over as many bearers as necessary to reach all nodes
* that have joined the broadcast link.
*
* Returns 0 if packet sent successfully, non-zero if not
* Returns 0 (packet sent successfully) under all circumstances,
* since the broadcast link's pseudo-bearer never blocks
*/

static int tipc_bcbearer_send(struct sk_buff *buf,
Expand All @@ -547,7 +548,12 @@ static int tipc_bcbearer_send(struct sk_buff *buf,
{
int bp_index;

/* Prepare buffer for broadcasting (if first time trying to send it) */
/*
* Prepare broadcast link message for reliable transmission,
* if first time trying to send it;
* preparation is skipped for broadcast link protocol messages
* since they are sent in an unreliable manner and don't need it
*/

if (likely(!msg_non_seq(buf_msg(buf)))) {
struct tipc_msg *msg;
Expand Down Expand Up @@ -596,18 +602,12 @@ static int tipc_bcbearer_send(struct sk_buff *buf,
}

if (bcbearer->remains_new.count == 0)
return 0;
break; /* all targets reached */

bcbearer->remains = bcbearer->remains_new;
}

/*
* Unable to reach all targets (indicate success, since currently
* there isn't code in place to properly block & unblock the
* pseudo-bearer used by the broadcast link)
*/

return TIPC_OK;
return 0;
}

/**
Expand Down

0 comments on commit 34f669a

Please sign in to comment.