Re: [dpdk-dev] [PATCH v3] net/virtio: fix wrong TX pkt length stats

2017-10-24 Thread Yuanhan Liu
On Tue, Oct 24, 2017 at 11:06:14AM +0800, Zhiyong Yang wrote: > In the function virtqueue_enqueue_xmit(), when can_push is true, > vtnet_hdr_size is added to pkt_len by calling rte_pktmbuf_prepend. > which is wrong for pkt stats, virtio header length should be subtracted > before calling stats func

[dpdk-dev] [PATCH v3] net/virtio: fix wrong TX pkt length stats

2017-10-23 Thread Zhiyong Yang
In the function virtqueue_enqueue_xmit(), when can_push is true, vtnet_hdr_size is added to pkt_len by calling rte_pktmbuf_prepend. which is wrong for pkt stats, virtio header length should be subtracted before calling stats function. Fixes: 58169a9c8153 ("net/virtio: support Tx checksum offload")