[dpdk-stable] [PATCH v3] net/virtio: fix wrong TX pkt length stats
yliu at fridaylinux.org
Tue Oct 24 10:46:21 CEST 2017
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 at dpdk.org
> Cc: yliu at fridaylinux.org
> Cc: maxime.coquelin at redhat.com
> Signed-off-by: Zhiyong Yang <zhiyong.yang at intel.com>
> Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>
Applied to dpdk-next-virtio.
More information about the stable