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

2017-10-23 Thread Yang, Zhiyong
Yuanhan, > -Original Message- > From: Yuanhan Liu [mailto:y...@fridaylinux.org] > Sent: Monday, October 23, 2017 9:22 PM > To: Yang, Zhiyong > Cc: dev@dpdk.org; sta...@dpdk.org; maxime.coque...@redhat.com > Subject: Re: [PATCH v2] net/virtio: fix wrong TX pkt length stats > > On Mon, Oct

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

2017-10-23 Thread Yuanhan Liu
On Mon, Oct 23, 2017 at 02:40:36PM +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. > So, virtio header length should be subtracted before calling stats > function. > > Fixes: 58169a9c

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

2017-10-22 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. So, virtio header length should be subtracted before calling stats function. Fixes: 58169a9c8153 ("net/virtio: support Tx checksum offload") Cc: sta...@dpdk.org Cc: