From: Jens Freimann Date: Thu, 20 Dec 2018 10:56:24 +0000 (+0100) Subject: net/virtio: avoid double accounting of bytes X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=517ad3e018e31ab2596d1ece5369894703c850c2;p=dpdk.git net/virtio: avoid double accounting of bytes Accounting of bytes was moved to a common function, so at the moment we do it twice. This patches fixes it for sending packets with packed virtqueues. Signed-off-by: Jens Freimann Reviewed-by: Maxime Coquelin --- diff --git a/drivers/net/virtio/virtio_rxtx.c b/drivers/net/virtio/virtio_rxtx.c index 8564f18a7c..8a08606fb7 100644 --- a/drivers/net/virtio/virtio_rxtx.c +++ b/drivers/net/virtio/virtio_rxtx.c @@ -1931,7 +1931,6 @@ virtio_xmit_pkts_packed(void *tx_queue, struct rte_mbuf **tx_pkts, /* Enqueue Packet buffers */ virtqueue_enqueue_xmit_packed(txvq, txm, slots, can_push); - txvq->stats.bytes += txm->pkt_len; virtio_update_packet_stats(&txvq->stats, txm); }