]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: Remove unused skb_reset_mac_header()
authorLinus Lüssing <linus.luessing@c0d3.blue>
Sun, 7 Aug 2016 10:34:18 +0000 (12:34 +0200)
committerSimon Wunderlich <sw@simonwunderlich.de>
Sun, 30 Oct 2016 10:11:34 +0000 (11:11 +0100)
commit58a94bb31ae07122cc85dc8d83bfbf884cf36340
tree0928ccaa29def7300e79348283445b0f3424880f
parent5b0827cca4496aeda651102bc27022ef4bbc4869
batman-adv: Remove unused skb_reset_mac_header()

During broadcast queueing, the skb_reset_mac_header() sets the skb
to a place invalid for a MAC header, pointing right into the
batman-adv broadcast packet. Luckily, no one seems to actually use
eth_hdr(skb) afterwards until batadv_send_skb_packet() resets the
header to a valid position again.

Therefore removing this unnecessary, weird skb_reset_mac_header()
call.

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>
net/batman-adv/send.c