Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eaac2c87 authored by Sven Eckelmann's avatar Sven Eckelmann Committed by Simon Wunderlich
Browse files

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: default avatarSven Eckelmann <sven@narfation.org>
Signed-off-by: default avatarSimon Wunderlich <sw@simonwunderlich.de>
parent bd687fe4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -386,7 +386,7 @@ static int batadv_interface_tx(struct sk_buff *skb,
			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;
	}