[dpdk-stable] [dpdk-dev] [PATCH 1/2] vhost: fix TCP csum not set

Yuanhan Liu yliu at fridaylinux.org
Sun Jul 2 01:27:37 CEST 2017


On Wed, Jun 07, 2017 at 09:25:38PM +0200, Maxime Coquelin wrote:
> 
> 
> On 06/07/2017 08:41 AM, Jianfeng Tan wrote:
> >As PKT_TX_TCP_SEG flag in mbuf->ol_flags implies PKT_TX_TCP_CKSUM,
> >applications, e.g., testpmd, don't set PKT_TX_TCP_CKSUM when TSO
> >is set.
> >
> >This leads to that packets get dropped in VM tcp stack layer because
> >of bad TCP csum.
> >
> >To fix this, we make sure TCP NEEDS_CSUM info is set into virtio net
> >header when PKT_TX_TCP_SEG is set, so that VM tcp stack will not
> >check the TCP csum.
> >
> >Fixes: 859b480d5afd ("vhost: add guest offload setting")
> >Cc: stable at dpdk.org
> >
> >Cc: Yuanhan Liu <yuanhan.liu at linux.intel.com>
> >Cc: Maxime Coquelin <maxime.coquelin at redhat.com>
> >Cc: Jiayu Hu <jiayu.hu at intel.com>
> >Signed-off-by: Jianfeng Tan <jianfeng.tan at intel.com>
> 
> Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>

Series applied to dpdk-next-virtio.

Thanks!

	--yliu


More information about the stable mailing list