Skip to content

Commit

Permalink
batman-adv: Count all non-success TX packets as dropped
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
ecsv authored and simonwunderlich committed Oct 30, 2016
1 parent bd687fe commit eaac2c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/batman-adv/soft-interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit eaac2c8

Please sign in to comment.