]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit73d4831bfe016907d1baf011b57658de29c84a27
tree4c5e313c22aa50eddf909ebf7974ec3c32670dc8
parent72a52e1c0c5f968d1cc14b58de62af6a16208e12
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