vdpa/mlx5: fix TSO offload without checksum
authorXueming Li <xuemingl@nvidia.com>
Sun, 13 Jun 2021 12:51:39 +0000 (20:51 +0800)
committerChenbo Xia <chenbo.xia@intel.com>
Wed, 30 Jun 2021 11:39:23 +0000 (13:39 +0200)
commitff09f8069702bd233f5d39c4d0b8cfbc392d9edc
treecb414535aa85e37231f10aa5a741a4d2c4ff079b
parentb3d4a18b9c3ef2a1a4e39ff9e926c61b5e35f8e4
vdpa/mlx5: fix TSO offload without checksum

Packet was corrupted when TSO requested without CSUM update.

Enables CSUM automatically if only TSO requested.

Fixes: 2aa8444b0084 ("vdpa/mlx5: support stateless offloads")
Cc: stable@dpdk.org
Signed-off-by: Xueming Li <xuemingl@nvidia.com>
Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
drivers/vdpa/mlx5/mlx5_vdpa_virtq.c