From: Daniel Borkmann Date: Wed, 2 Apr 2014 18:52:56 +0000 (+0200) Subject: packet: report tx_dropped in packet_direct_xmit X-Git-Tag: v3.15-rc1~47^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f97ede45e65ffb6eab856313e79b14b902bcfaa;p=pandora-kernel.git packet: report tx_dropped in packet_direct_xmit Since commit 015f0688f57c ("net: net: add a core netdev->tx_dropped counter"), we can now account for TX drops from within the core stack instead of drivers. Therefore, fix packet_direct_xmit() and increase drop count when we encounter a problem before driver's xmit function was called (we do not want to doubly account for it). Suggested-by: Eric Dumazet Signed-off-by: Daniel Borkmann Signed-off-by: David S. Miller --- Reading git-diff-tree failed