]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: batman-adv: Only clone skb data for multiple broadcasts
authorSven Eckelmann <sven.eckelmann@gmx.de>
Sat, 4 Sep 2010 23:58:29 +0000 (01:58 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 5 Sep 2010 07:29:46 +0000 (00:29 -0700)
commit3a13b6848fbf47bfbf9a44ab113242e220b4e74d
tree16db4471b64a1384ad7297e3280f096febc2ab3a
parent6bffd1b685a306a760189602ee4c61f6126336f0
Staging: batman-adv: Only clone skb data for multiple broadcasts

batman-adv tries to resend broadcasts on all interfaces up to three
times. For each round and each interface it must provide a skb which
gets consumed by the sending function.

It is unnecessary to copy the data of each broadcast because the actual
data is either not shared or already copied by add_bcast_packet_to_list.
So it is enough to just copy the skb control data

Reported-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/batman-adv/send.c