Explorar o código

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>
Sven Eckelmann %!s(int64=9) %!d(string=hai) anos
pai
achega
eaac2c876e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      net/batman-adv/soft-interface.c

+ 1 - 1
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;
 	}