From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.windriver.com (mail.windriver.com [147.11.1.11]) by dpdk.org (Postfix) with ESMTP id C798368BB for ; Fri, 24 Jan 2014 20:43:27 +0100 (CET) Received: from ALA-HCB.corp.ad.wrs.com (ala-hcb.corp.ad.wrs.com [147.11.189.41]) by mail.windriver.com (8.14.5/8.14.5) with ESMTP id s0OJiiFa017228 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Fri, 24 Jan 2014 11:44:44 -0800 (PST) Received: from ALA-MBA.corp.ad.wrs.com ([169.254.2.188]) by ALA-HCB.corp.ad.wrs.com ([147.11.189.41]) with mapi id 14.02.0347.000; Fri, 24 Jan 2014 11:44:44 -0800 From: "Wiles, Roger Keith" To: Banashankar KV Thread-Topic: [dpdk-dev] pktgen offload checksum flag not able to make it work with pacp packets. Thread-Index: AQHPGTXSbTCrelaLlkmu3iy/3oJy/JqUzSMA Date: Fri, 24 Jan 2014 19:44:43 +0000 Message-ID: <4FE91E82-8097-451E-A36D-2F1254573A89@windriver.com> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.25.40.168] MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Cc: "" Subject: Re: [dpdk-dev] pktgen offload checksum flag not able to make it work with pacp packets. 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: Fri, 24 Jan 2014 19:43:28 -0000 I have not enabled that feature myself, but I would expect it to work as lo= ng as the hardware does. What does the docs say about enabling hardware off= load support? Did you look at the following files: ip_reassembly/ipv4_rsmbl.h: m->ol_flags |=3D PKT_TX_IP_CKSUM; ipv4_frag/rte_ipv4_frag.h: out_pkt->ol_flags |=3D PKT_TX_IP_CK= SUM; Thanks ++Keith Keith Wiles, Principal Technologist for Networking member of the CTO office= , Wind River mobile 940.213.5533 [Powering 30 Years of Innovation] On Jan 24, 2014, at 12:54 PM, Banashankar KV > wrote: I was modifying a packet in pktgen_pcap_mbuf_ctor() and after modifying I wanted to offload the checksum calculation to h/w so I am setting these flags in pktgen_pcap_mbuf_ctor function. m->pkt.vlan_macip.f.l2_len =3D sizeof(struct ether_hdr); m->pkt.vlan_macip.f.l3_len =3D sizeof(struct ipv4_hdr); m->ol_flags =3D PKT_TX_IP_CKSUM I even tried with setting .txq_flags =3D 0 in rte_eth_txconf struct in pktg= en.c. But still not able to get the h/w checksum. Am I missing anything ? Thanks Banashankar