From: Rick Jones Date: Mon, 21 Nov 2011 09:28:17 +0000 (+0000) Subject: virtio_net: return already tracked tx_fifo_errors via virtnet_getstats() X-Git-Tag: v3.3-rc1~182^2~478 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=021ac8d387594bdf51d9a279b2f9e9defb614c9b;p=profile%2Fcommon%2Fkernel-common.git virtio_net: return already tracked tx_fifo_errors via virtnet_getstats() Tx_fifo_errors are tracked in start_xmit_ for virtio_net, but not reported in the tallies returned by virtnet_stats(). Return them as the rx "sub-stats" rx_length_errors and rx_frame_errors are. Signed-off-by: Rick Jones Acked-by: Rusty Russell Signed-off-by: David S. Miller --- diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index 4dc9d84..5a96172 100644 --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c @@ -700,6 +700,7 @@ static struct rtnl_link_stats64 *virtnet_stats(struct net_device *dev, } tot->tx_dropped = dev->stats.tx_dropped; + tot->tx_fifo_errors = dev->stats.tx_fifo_errors; tot->rx_dropped = dev->stats.rx_dropped; tot->rx_length_errors = dev->stats.rx_length_errors; tot->rx_frame_errors = dev->stats.rx_frame_errors;