net/virtio: avoid double accounting of bytes
authorJens Freimann <jfreimann@redhat.com>
Thu, 20 Dec 2018 10:56:24 +0000 (11:56 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 21 Dec 2018 15:22:41 +0000 (16:22 +0100)
commit517ad3e018e31ab2596d1ece5369894703c850c2
treed14e41573d1db6be520eef0e4461d4bf3bdc0f15
parent815814c4ff67572e3f3b46ae584e032474eeda4f
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>
drivers/net/virtio/virtio_rxtx.c