Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vhost: fix missing enqueue pseudo-header calculation
[ upstream commit 7316b4fd610fe945a0bc20054ba5ab61b98bb155 ] The Virtio specification requires that in case of checksum offloading, the pseudo-header checksum must be set in the L4 header. When received from another Vhost-user port, the packet checksum might already contain the pseudo-header checksum but we have no way to know it. So we have no other choice than doing the pseudo-header checksum systematically. This patch handles this using the rte_net_intel_cksum_prepare() helper. Fixes: 859b480 ("vhost: add guest offload setting") Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com> Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
- Loading branch information