summaryrefslogtreecommitdiff
path: root/drivers/net/virtio
diff options
context:
space:
mode:
authorJens Freimann <jfreimann@redhat.com>2018-12-20 11:56:24 +0100
committerFerruh Yigit <ferruh.yigit@intel.com>2018-12-21 16:22:41 +0100
commit517ad3e018e31ab2596d1ece5369894703c850c2 (patch)
treed14e41573d1db6be520eef0e4461d4bf3bdc0f15 /drivers/net/virtio
parent815814c4ff67572e3f3b46ae584e032474eeda4f (diff)
downloaddpdk-next-eventdev-517ad3e018e31ab2596d1ece5369894703c850c2.zip
dpdk-next-eventdev-517ad3e018e31ab2596d1ece5369894703c850c2.tar.gz
dpdk-next-eventdev-517ad3e018e31ab2596d1ece5369894703c850c2.tar.xz
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 <jfreimann@redhat.com> Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Diffstat (limited to 'drivers/net/virtio')
-rw-r--r--drivers/net/virtio/virtio_rxtx.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/virtio/virtio_rxtx.c b/drivers/net/virtio/virtio_rxtx.c
index 8564f18..8a08606 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);
}