batman-adv: use consume_skb for non-dropped packets
authorSven Eckelmann <sven@narfation.org>
Sun, 17 Jul 2016 19:04:00 +0000 (21:04 +0200)
committerSimon Wunderlich <sw@simonwunderlich.de>
Sun, 30 Oct 2016 10:11:36 +0000 (11:11 +0100)
commitbd687fe41991611a6904b7cbc1d596f687584ebb
tree515668dc83bd3a60a3b2a7acd4f5a28ea76e8111
parent3111beed0d595d26551afb607c9812fe49da2ead
batman-adv: use consume_skb for non-dropped packets

kfree_skb assumes that an skb is dropped after an failure and notes that.
consume_skb should be used in non-failure situations. Such information is
important for dropmonitor netlink which tells how many packets were dropped
and where this drop happened.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
net/batman-adv/bat_iv_ogm.c
net/batman-adv/fragmentation.c
net/batman-adv/network-coding.c
net/batman-adv/send.c
net/batman-adv/send.h
net/batman-adv/soft-interface.c