batman-adv: Consume skb in batadv_send_skb_to_orig
authorSven Eckelmann <sven@narfation.org>
Sun, 17 Jul 2016 19:04:03 +0000 (21:04 +0200)
committerSimon Wunderlich <sw@simonwunderlich.de>
Sun, 30 Oct 2016 10:11:37 +0000 (11:11 +0100)
commit1ad5bcb2a032262170fdc508abfa0acb0565e2b5
tree4c5e313c22aa50eddf909ebf7974ec3c32670dc8
parent8def0be82dd1507bcdc5fd35d12e35ace1e39dff
batman-adv: Consume skb in batadv_send_skb_to_orig

Sending functions in Linux consume the supplied skbuff. Doing the same in
batadv_send_skb_to_orig avoids the hack of returning -1 (-EPERM) to signal
the caller that he is responsible for cleaning up the skb.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
net/batman-adv/routing.c
net/batman-adv/send.c
net/batman-adv/tp_meter.c
net/batman-adv/tvlv.c