From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from e06smtp10.uk.ibm.com (e06smtp10.uk.ibm.com [195.75.94.106]) by dpdk.org (Postfix) with ESMTP id D429C5A41 for ; Tue, 21 Jul 2015 15:11:56 +0200 (CEST) Received: from /spool/local by e06smtp10.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 21 Jul 2015 14:11:55 +0100 Received: from d06dlp03.portsmouth.uk.ibm.com (9.149.20.15) by e06smtp10.uk.ibm.com (192.168.101.140) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 21 Jul 2015 14:11:47 +0100 X-Helo: d06dlp03.portsmouth.uk.ibm.com X-MailFrom: ACzubak@pl.ibm.com X-RcptTo: dev@dpdk.org Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id 114821B0805F for ; Tue, 21 Jul 2015 14:13:03 +0100 (BST) Received: from d06av04.portsmouth.uk.ibm.com (d06av04.portsmouth.uk.ibm.com [9.149.37.216]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t6LDBkmW31981614 for ; Tue, 21 Jul 2015 13:11:46 GMT Received: from d06av04.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av04.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t6LDBjdv019835 for ; Tue, 21 Jul 2015 07:11:45 -0600 Received: from d06ml423.portsmouth.uk.ibm.com (d06ml423.portsmouth.uk.ibm.com [9.149.104.189]) by d06av04.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id t6LDBj0T019820; Tue, 21 Jul 2015 07:11:45 -0600 In-Reply-To: References: To: Andriy Berestovskyy MIME-Version: 1.0 X-KeepSent: 961A4E36:D7086E0E-C1257E89:0048523E; type=4; name=$KeepSent X-Mailer: Lotus Notes Release 8.5.3FP5 Septem 15, 2011 From: Angela Czubak Message-ID: Date: Tue, 21 Jul 2015 15:11:44 +0200 X-MIMETrack: Serialize by Router on D06ML423/06/M/IBM(Release 9.0.1FP3|January 12, 2015) at 21/07/2015 15:11:45, Serialize complete at 21/07/2015 15:11:45 X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15072113-0041-0000-0000-000004FEA04B Content-Type: text/plain; charset="ISO-8859-2" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Cc: dev@dpdk.org Subject: Re: [dpdk-dev] Non-working TX IP checksum offload X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jul 2015 13:11:57 -0000 Hi Andriy, thank you, that solved it. Regards, Angela Andriy Berestovskyy wrote on 07/17/2015 04:37:45 PM: > From: Andriy Berestovskyy > To: Angela Czubak/Poland/Contr/IBM@IBMPL,=20 > Cc: dev@dpdk.org > Date: 07/17/2015 04:38 PM > Subject: Re: [dpdk-dev] Non-working TX IP checksum offload >=20 > Cze=B6=E6 Angela, > Make sure your NIC is configured properly as described in this thread: > http://dpdk.org/ml/archives/dev/2015-May/018096.html >=20 > Andriy >=20 > On Fri, Jul 17, 2015 at 4:23 PM, Angela Czubak =20 wrote: > > Hi, > > > > I have some difficulties using ip checksum tx offload capabilities - I > > think I set everything as advised by the API documentation, but > > unfortunately the packet leaves the interface with its ip checksum=20 still > > being zero (it reaches its destination). > > > > What I do is: > > buffer->ol=5Fflags |=3D PKT=5FTX=5FIP=5FCKSUM|PKT=5FTX=5FIPV4; > > ip=5Fheader->hdr=5Fchecksum =3D 0; > > buffer->l3=5Flen =3D sizeof(struct ipv4=5Fhdr); > > buffer->l2=5Flen =3D sizeof(struct ether=5Fhdr); > > > > In L4 there's UDP, which checksum is zeroed if that matters. > > > > Is there something I am missing? The NIC is Intel Corporation Ethernet > > Controller X710 for 10GbE SFP+ (rev 01). > > > > What is more, is there any particular reason for assuming in > > i40e=5Fxmit=5Fpkts that offloading checksums is unlikely (I mean the li= ne=20 no > > 1307 "if (unlikely(ol=5Fflags & I40E=5FTX=5FCKSUM=5FOFFLOAD=5FMASK))" at > > dpdk-2.0.0/lib/librte=5Fpmd=5Fi40e/i40e=5Frxtx.c)? > > > > Regards, > > Angela >=20 >=20 >=20 > --=20 > Andriy Berestovskyy >=20