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)
commit7bca68c7844b1642868809a5ef4387c1f099ab1d
tree8f0ceaf67dc4f858cd9ba2a88e23f6a34c41b342
parenta5256f7e74d85d7ae60ac3bd557d5fe3444be810
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