Blame SOURCES/0011-net-virtio-avoid-double-accounting-of-bytes.patch

2c1bf6
From 440731f30a1257c3318badfcf17f5ab9e5085317 Mon Sep 17 00:00:00 2001
2c1bf6
From: Jens Freimann <jfreimann@redhat.com>
2c1bf6
Date: Thu, 20 Dec 2018 11:56:24 +0100
2c1bf6
Subject: [PATCH 11/18] net/virtio: avoid double accounting of bytes
2c1bf6
2c1bf6
[ upstream commit 517ad3e018e31ab2596d1ece5369894703c850c2 ]
2c1bf6
2c1bf6
Accounting of bytes was moved to a common function, so at the moment we do
2c1bf6
it twice. This patches fixes it for sending packets with packed virtqueues.
2c1bf6
2c1bf6
Signed-off-by: Jens Freimann <jfreimann@redhat.com>
2c1bf6
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
2c1bf6
(cherry picked from commit 517ad3e018e31ab2596d1ece5369894703c850c2)
2c1bf6
Signed-off-by: Jens Freimann <jfreimann@redhat.com>
2c1bf6
---
2c1bf6
 drivers/net/virtio/virtio_rxtx.c | 1 -
2c1bf6
 1 file changed, 1 deletion(-)
2c1bf6
2c1bf6
diff --git a/drivers/net/virtio/virtio_rxtx.c b/drivers/net/virtio/virtio_rxtx.c
2c1bf6
index 0bcf3b08a..50eb4c694 100644
2c1bf6
--- a/drivers/net/virtio/virtio_rxtx.c
2c1bf6
+++ b/drivers/net/virtio/virtio_rxtx.c
2c1bf6
@@ -1931,7 +1931,6 @@ virtio_xmit_pkts_packed(void *tx_queue, struct rte_mbuf **tx_pkts,
2c1bf6
 		/* Enqueue Packet buffers */
2c1bf6
 		virtqueue_enqueue_xmit_packed(txvq, txm, slots, can_push);
2c1bf6
 
2c1bf6
-		txvq->stats.bytes += txm->pkt_len;
2c1bf6
 		virtio_update_packet_stats(&txvq->stats, txm);
2c1bf6
 	}
2c1bf6
 
2c1bf6
-- 
2c1bf6
2.21.0
2c1bf6