summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2016-07-17 22:04:01 +0300
committerSimon Wunderlich <sw@simonwunderlich.de>2016-10-30 13:11:36 +0300
commiteaac2c876ecce420d24ff5d5b6d6a51390446798 (patch)
tree7d136c50718d0c2c8b1cad4f0fa3323669f1476e
parentbd687fe41991611a6904b7cbc1d596f687584ebb (diff)
downloadlinux-eaac2c876ecce420d24ff5d5b6d6a51390446798.tar.xz
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 <sven@narfation.org> Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
-rw-r--r--net/batman-adv/soft-interface.c2
1 files changed, 1 insertions, 1 deletions
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;
}