All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Xie, Huawei" <huawei.xie-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
To: "Gray,
	Mark D" <mark.d.gray-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
	Thomas Monjalon
	<thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>,
	Franck BAUDIN
	<Franck.BAUDIN-kQLz4VG1Jc7QT0dZR+AlfA@public.gmane.org>
Cc: "dev-VfR2kkLFssw@public.gmane.org"
	<dev-VfR2kkLFssw@public.gmane.org>,
	"dpdk-ovs-hn68Rpc1hR1g9hUCZPvPmw@public.gmane.org"
	<dpdk-ovs-hn68Rpc1hR1g9hUCZPvPmw@public.gmane.org>
Subject: Re: Wrong TCP checksum of packets sent by Linux guest	(virtIO/vhost)
Date: Wed, 3 Sep 2014 11:13:09 +0000	[thread overview]
Message-ID: <C37D651A908B024F974696C65296B57B0F284EE2@SHSMSX101.ccr.corp.intel.com> (raw)
In-Reply-To: <738D45BC1F695740A983F43CFE1B7EA92D72308F-kPTMFJFq+rFP9JyJpTNKArfspsVTdybXVpNB7YpNyf8@public.gmane.org>



> -----Original Message-----
> From: Gray, Mark D
> Sent: Wednesday, September 03, 2014 6:01 PM
> To: Thomas Monjalon; Franck BAUDIN; Xie, Huawei
> Cc: dev@dpdk.org; dpdk-ovs@lists.01.org
> Subject: RE: [dpdk-dev] Wrong TCP checksum of packets sent by Linux guest
> (virtIO/vhost)
> 
> >
> > Hi Franck,
> >
> > 2014-09-02 13:20, Franck BAUDIN:
> > > I am using dpdk-ovs 1.1.0 (latest release) as follow :
> > >
> > > linux-guest (no DPKD) <---  virtIO ---> OVDK 1.1.0 (with latest DPDK [*]) < --
> > - Niantic --- > linux-native
> > >
> > [...]
> > > UDP/ICMP connectivity is fine, but TCP checksum of packet sent by the
> > guest are incorrect, as showed with tcpdump on linux-native.
> >
> > Thanks for reporting.
> > Could you try virtio without vhost?
> >
> >
> 
> Looping in the dpdk-ovs list.
> 
> * Does the new vhost API allow a user to know if all the relevant offloads have
> been
> turned on/off for that interface? It seems that this is possible through the
> virtio_net
> structure but it would be good to get some feedback from the relevant person
> working on DPDK (Huawei?).
> 
> * If this is the case, then it is probably in the realm of the vswitch do the actual
> checksum (for VM-VM) or correctly configure the NIC when sending out through
> the physical interface.
> 
> Comments?


Mark:
So far not supported. This is important as well in VxLan case. For the packet flow  
Guest A->  virtio -> ..->OVDK->.. -> Guest B.
1) If guest A and B are on different host machines, say A and B respectively,  and if the nic on A supports
vxlan checksum offload, then both guest and host needn't generate checksum, the nic will  
generate checksum for both inner and outer packet.
2) In VM2VM case, as it is trusted communication channel, could we negotiate with the guest tcp stack not to verify checksum 
for received packet? 

> 
> Mark

  parent reply	other threads:[~2014-09-03 11:13 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-02 13:20 Wrong TCP checksum of packets sent by Linux guest (virtIO/vhost) Franck BAUDIN
     [not found] ` <D84D5A6C1B26E448A0F35B539111D0E721D8C0-tjtCPadWEHp5RdiqnJbviwvhXHaN8uqmQQ4Iyu8u01E@public.gmane.org>
2014-09-02 13:29   ` Thomas Monjalon
2014-09-02 14:37     ` Franck Baudin
2014-09-03 10:00     ` Gray, Mark D
     [not found]       ` <738D45BC1F695740A983F43CFE1B7EA92D72308F-kPTMFJFq+rFP9JyJpTNKArfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2014-09-03 11:13         ` Xie, Huawei [this message]
     [not found]           ` <C37D651A908B024F974696C65296B57B0F284EE2-0J0gbvR4kThpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2014-09-03 14:12             ` Franck Baudin
     [not found]               ` <540721E8.2010307-kQLz4VG1Jc7QT0dZR+AlfA@public.gmane.org>
2014-09-03 16:07                 ` Gray, Mark D
2014-09-04  2:54                 ` Xie, Huawei
2014-09-03 16:15             ` Gray, Mark D

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=C37D651A908B024F974696C65296B57B0F284EE2@SHSMSX101.ccr.corp.intel.com \
    --to=huawei.xie-ral2jqcrhueavxtiumwx3w@public.gmane.org \
    --cc=Franck.BAUDIN-kQLz4VG1Jc7QT0dZR+AlfA@public.gmane.org \
    --cc=dev-VfR2kkLFssw@public.gmane.org \
    --cc=dpdk-ovs-hn68Rpc1hR1g9hUCZPvPmw@public.gmane.org \
    --cc=mark.d.gray-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    --cc=thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.