[dpdk-stable] [PATCH 18.11] net/virtio: fix mbuf data and packet length mismatch

Kevin Traynor ktraynor at redhat.com
Thu Mar 19 00:01:29 CET 2020


On 16/03/2020 12:35, Marvin Liu wrote:
> [ upstream commit 1ae55ad38e5e00b61704e4cb29037098b143688a ]
> 
> If reserve virtio header room by function rte_pktmbuf_prepend, both
> segment data length and packet length of mbuf will be increased.
> Data length will be equal to descriptor length, while packet length
> should be decreased as virtio-net header won't be taken into packet.
> Thus will cause mismatch in mbuf structure. Fix this issue by calculate
> mbuf data address directly.
> 
> Fixes: 58169a9c8153 ("net/virtio: support Tx checksum offload")
> Fixes: 892dc798fa9c ("net/virtio: implement Tx path for packed queues")
> Fixes: e5f456a98d3c ("net/virtio: support in-order Rx and Tx")
> 
> Reported-by: Stephen Hemminger <stephen at networkplumber.org>
> Signed-off-by: Marvin Liu <yong.liu at intel.com>
> Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>

Applied, thanks.



More information about the stable mailing list