tipc: introduce replicast as transport option for multicast
TIPC multicast messages are currently carried over a reliable 'broadcast link', making use of the underlying media's ability to transport packets as L2 broadcast or IP multicast to all nodes in the cluster. When the used bearer is lacking that ability, we can instead emulate the broadcast service by replicating and sending the packets over as many unicast links as needed to reach all identified destinations. We now introduce a new TIPC link-level 'replicast' service that does this. Reviewed-by: Parthasarathy Bhuvaragan <parthasarathy.bhuvaragan@ericsson.com> Acked-by: Ying Xue <ying.xue@windriver.com> Signed-off-by: Jon Maloy <jon.maloy@ericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
2ae0b8af1f
commit
a853e4c6d0
@@ -1032,11 +1032,17 @@ int tipc_link_retrans(struct tipc_link *l, u16 from, u16 to,
|
||||
static bool tipc_data_input(struct tipc_link *l, struct sk_buff *skb,
|
||||
struct sk_buff_head *inputq)
|
||||
{
|
||||
switch (msg_user(buf_msg(skb))) {
|
||||
struct tipc_msg *hdr = buf_msg(skb);
|
||||
|
||||
switch (msg_user(hdr)) {
|
||||
case TIPC_LOW_IMPORTANCE:
|
||||
case TIPC_MEDIUM_IMPORTANCE:
|
||||
case TIPC_HIGH_IMPORTANCE:
|
||||
case TIPC_CRITICAL_IMPORTANCE:
|
||||
if (unlikely(msg_type(hdr) == TIPC_MCAST_MSG)) {
|
||||
skb_queue_tail(l->bc_rcvlink->inputq, skb);
|
||||
return true;
|
||||
}
|
||||
case CONN_MANAGER:
|
||||
skb_queue_tail(inputq, skb);
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user