batman-adv: Add multicast-to-unicast support for multiple targets
With this patch multicast packets with a limited number of destinations (current default: 16) will be split and transmitted by the originator as individual unicast transmissions. Wifi broadcasts with their low bitrate are still a costly undertaking. In a mesh network this cost multiplies with the overall size of the mesh network. Therefore using multiple unicast transmissions instead of broadcast flooding is almost always less burdensome for the mesh network. The maximum amount of unicast packets can be configured via the newly introduced multicast_fanout parameter. If this limit is exceeded distribution will fall back to classic broadcast flooding. The multicast-to-unicast conversion is performed on the initial multicast sender node and counts on a final destination node, mesh-wide basis (and not next hop, neighbor node basis). Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue> Signed-off-by: Sven Eckelmann <sven@narfation.org> Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
This commit is contained in:

committed by
Simon Wunderlich

parent
099e6cc158
commit
32e727449c
@@ -193,7 +193,7 @@ batadv_tt_local_hash_find(struct batadv_priv *bat_priv, const u8 *addr,
|
||||
* Return: a pointer to the corresponding tt_global_entry struct if the client
|
||||
* is found, NULL otherwise.
|
||||
*/
|
||||
static struct batadv_tt_global_entry *
|
||||
struct batadv_tt_global_entry *
|
||||
batadv_tt_global_hash_find(struct batadv_priv *bat_priv, const u8 *addr,
|
||||
unsigned short vid)
|
||||
{
|
||||
@@ -288,8 +288,7 @@ static void batadv_tt_global_entry_release(struct kref *ref)
|
||||
* possibly release it
|
||||
* @tt_global_entry: tt_global_entry to be free'd
|
||||
*/
|
||||
static void
|
||||
batadv_tt_global_entry_put(struct batadv_tt_global_entry *tt_global_entry)
|
||||
void batadv_tt_global_entry_put(struct batadv_tt_global_entry *tt_global_entry)
|
||||
{
|
||||
kref_put(&tt_global_entry->common.refcount,
|
||||
batadv_tt_global_entry_release);
|
||||
|
Reference in New Issue
Block a user