From: Sven Eckelmann Date: Sun, 17 Jul 2016 19:04:01 +0000 (+0200) Subject: batman-adv: Count all non-success TX packets as dropped X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=eaac2c876ecce420d24ff5d5b6d6a51390446798;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git batman-adv: Count all non-success TX packets as dropped A failure during the submission also causes dropped packets. batadv_interface_tx should therefore also increase the DROPPED counter for these returns. Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- diff --git a/net/batman-adv/soft-interface.c b/net/batman-adv/soft-interface.c index 2f0304ec459c..7b3494ae6ad9 100644 --- a/net/batman-adv/soft-interface.c +++ b/net/batman-adv/soft-interface.c @@ -386,7 +386,7 @@ send: ret = batadv_send_skb_via_tt(bat_priv, skb, dst_hint, vid); } - if (ret == NET_XMIT_DROP) + if (ret != NET_XMIT_SUCCESS) goto dropped_freed; }