]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: Add lower layer needed_(head|tail)room to own ones
authorSven Eckelmann <sven@narfation.org>
Fri, 7 Aug 2015 17:28:42 +0000 (19:28 +0200)
committerAntonio Quartulli <antonio@meshcoding.com>
Thu, 27 Aug 2015 18:15:34 +0000 (20:15 +0200)
commit90677c3512772bf2671eba7e5a5c8f96cd39158b
tree8f0ceaf67dc4f858cd9ba2a88e23f6a34c41b342
parent0b4cab5a32b95776ed5c58952f1cd88b0503dbf6
batman-adv: Add lower layer needed_(head|tail)room to own ones

The maximum of hard_header_len and maximum of all needed_(head|tail)room of
all slave interfaces of a batman-adv device must be used to define the
batman-adv device needed_(head|tail)room. This is required to avoid too
small buffer problems when these slave devices try to send the encapsulated
packet in a tx path without the possibility to resize the skbuff.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
net/batman-adv/hard-interface.c
net/batman-adv/soft-interface.c