From: Jason Wang Date: Tue, 18 Nov 2014 05:20:41 +0000 (+0800) Subject: tun: return NET_XMIT_DROP for dropped packets X-Git-Tag: omap-for-v3.19/fixes-rc1~125^2~167 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=baeababb5b85d5c4e6c917efe2a1504179438d3b;p=pandora-kernel.git tun: return NET_XMIT_DROP for dropped packets After commit 5d097109257c03a71845729f8db6b5770c4bbedc ("tun: only queue packets on device"), NETDEV_TX_OK was returned for dropped packets. This will confuse pktgen since dropped packets were counted as sent ones. Fixing this by returning NET_XMIT_DROP to let pktgen count it as error packet. Cc: Michael S. Tsirkin Signed-off-by: Jason Wang Signed-off-by: David S. Miller --- Reading git-diff-tree failed