Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tun: return NET_XMIT_DROP for dropped packets
After commit 5d09710 ("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 <[email protected]> Signed-off-by: Jason Wang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
- Loading branch information