From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yuanhan Liu Subject: Re: [PATCH v3] net/virtio: fix wrong TX pkt length stats Date: Tue, 24 Oct 2017 16:46:21 +0800 Message-ID: <20171024084621.GO1545@yliu-home> References: <20171023064036.56821-1-zhiyong.yang@intel.com> <20171024030614.37690-1-zhiyong.yang@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org, stable@dpdk.org, maxime.coquelin@redhat.com To: Zhiyong Yang Return-path: Content-Disposition: inline In-Reply-To: <20171024030614.37690-1-zhiyong.yang@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 function. > > Fixes: 58169a9c8153 ("net/virtio: support Tx checksum offload") > > Cc: stable@dpdk.org > Cc: yliu@fridaylinux.org > Cc: maxime.coquelin@redhat.com > Signed-off-by: Zhiyong Yang > Reviewed-by: Maxime Coquelin Applied to dpdk-next-virtio. Thanks. --yliu