]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: add new functions for multicast and broadcast distribution
authorJon Paul Maloy <jon.maloy@ericsson.com>
Thu, 17 Jul 2014 00:41:00 +0000 (20:41 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Jul 2014 04:38:18 +0000 (21:38 -0700)
commit11e4862e66298f47b4ce0347f9855b870cfdecfa
tree8b30dce59fa8512d15a53cbcc404962c09372047
parent0fe406afc670072a24c25de6044dc37787a0a64a
tipc: add new functions for multicast and broadcast distribution

We add a new broadcast link transmit function in bclink.c and a new
receive function in socket.c. The purpose is to move the branching
between external and internal destination down to the link layer,
just as we have done with unicast in earlier commits. We also make
use of the new link-independent fragmentation support that was
introduced in an earlier commit series.

This gives a shorter and simpler code path, and makes it possible
to obtain copy-free buffer delivery to all node local destination
sockets.

The new transmission code is added in parallel with the existing one,
and will be used by the socket multicast send function in the next
commit in this series.

Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Reviewed-by: Erik Hugne <erik.hugne@ericsson.com>
Reviewed-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/bcast.c
net/tipc/bcast.h
net/tipc/msg.c
net/tipc/msg.h
net/tipc/socket.c
net/tipc/socket.h