[dpdk-dev] [PATCH v4 1/2] net/virtio: add Tx preparation

Maxime Coquelin maxime.coquelin at redhat.com
Thu Jun 20 11:58:15 CEST 2019



On 6/17/19 1:31 PM, Andrew Rybchenko wrote:
> From: Dilshod Urazov<Dilshod.Urazov at oktetlabs.ru>
> 
> Virtio requires pseudo-header checksum in TCP/UDP checksum to do
> offload, but it was lost when Tx prepare is introduced. Also
> rte_validate_tx_offload() should be used to validate Tx offloads.
> 
> Also it is incorrect to do virtio_tso_fix_cksum() after prepend
> to mbuf without taking prepended size into account, since layer 2/3/4
> lengths provide incorrect offsets after prepend.
> 
> Fixes: 4fb7e803eb1a ("ethdev: add Tx preparation")
> Cc:stable at dpdk.org
> 
> Signed-off-by: Dilshod Urazov<Dilshod.Urazov at oktetlabs.ru>
> Signed-off-by: Andrew Rybchenko<arybchenko at solarflare.com>
> Reviewed-by: Tiwei Bie<tiwei.bie at intel.com>
> ---
>   drivers/net/virtio/virtio_ethdev.c |  1 +
>   drivers/net/virtio/virtio_ethdev.h |  3 +++
>   drivers/net/virtio/virtio_rxtx.c   | 32 +++++++++++++++++++++++++++++-
>   3 files changed, 35 insertions(+), 1 deletion(-)


Applied to dpdk-next-virtio/master.

Thanks,
Maxime


More information about the dev mailing list