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

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
...@@ -386,7 +386,7 @@ static int batadv_interface_tx(struct sk_buff *skb, ...@@ -386,7 +386,7 @@ static int batadv_interface_tx(struct sk_buff *skb,
ret = batadv_send_skb_via_tt(bat_priv, skb, dst_hint, ret = batadv_send_skb_via_tt(bat_priv, skb, dst_hint,
vid); vid);
} }
if (ret == NET_XMIT_DROP) if (ret != NET_XMIT_SUCCESS)
goto dropped_freed; goto dropped_freed;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment