projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd687fe
)
batman-adv: Count all non-success TX packets as dropped
author
Sven Eckelmann
<sven@narfation.org>
Sun, 17 Jul 2016 19:04:01 +0000
(21:04 +0200)
committer
Simon Wunderlich
<sw@simonwunderlich.de>
Sun, 30 Oct 2016 10:11:36 +0000
(11:11 +0100)
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>
net/batman-adv/soft-interface.c
patch
|
blob
|
history
diff --git
a/net/batman-adv/soft-interface.c
b/net/batman-adv/soft-interface.c
index 2f0304ec459c04b7eada64aa3900254e2c85557b..7b3494ae6ad93fd0d32391e5c88f5d636f43acd5 100644
(file)
--- 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;
}