From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 40EADA05D3 for ; Mon, 20 May 2019 13:29:32 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 08F44568A; Mon, 20 May 2019 13:29:32 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 3669E5592 for ; Mon, 20 May 2019 13:29:30 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 May 2019 04:29:29 -0700 X-ExtLoop1: 1 Received: from irsmsx102.ger.corp.intel.com ([163.33.3.155]) by fmsmga001.fm.intel.com with ESMTP; 20 May 2019 04:29:27 -0700 Received: from irsmsx111.ger.corp.intel.com (10.108.20.4) by IRSMSX102.ger.corp.intel.com (163.33.3.155) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 20 May 2019 12:29:27 +0100 Received: from irsmsx105.ger.corp.intel.com ([169.254.7.155]) by irsmsx111.ger.corp.intel.com ([169.254.2.175]) with mapi id 14.03.0415.000; Mon, 20 May 2019 12:29:26 +0100 From: "Ananyev, Konstantin" To: Sunil Kumar Kori CC: "dev@dpdk.org" Thread-Topic: [PATCH v3 2/2] examples/ip_reassembly: Enabling IP checksum offload in mbuf Thread-Index: AQHVDvs/T17C/MZJ20q0DH7WJo+4iaZz4InA Date: Mon, 20 May 2019 11:29:25 +0000 Message-ID: <2601191342CEEE43887BDE71AB977258016163620A@irsmsx105.ger.corp.intel.com> References: <1558006933-32247-3-git-send-email-skori@marvell.com> <1558349992-12237-1-git-send-email-skori@marvell.com> <1558349992-12237-2-git-send-email-skori@marvell.com> In-Reply-To: <1558349992-12237-2-git-send-email-skori@marvell.com> Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiY2Y3Yzk1NjAtMzA1OS00OTgxLTk0ODItNDEwZWY1NzZiNTQ5IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiOXpySmlQTGUzNk1ONlpqTlNcL0RYXC83ak81cThLN05Fc1hTMHFXN2hrYTJ2YlR4eG1oaTdQMEh6c3VyXC9cL0NSN08ifQ== x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.600.7 dlp-reaction: no-action x-originating-ip: [163.33.239.182] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v3 2/2] examples/ip_reassembly: Enabling IP checksum offload in mbuf X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > As per the documentation to use any IP offload features, application > must set required offload flags into mbuf->ol_flags. >=20 > Signed-off-by: Sunil Kumar Kori > --- > examples/ip_reassembly/main.c | 3 +++ > 1 file changed, 3 insertions(+) >=20 > diff --git a/examples/ip_reassembly/main.c b/examples/ip_reassembly/main.= c > index 17b55d4..0ad526c 100644 > --- a/examples/ip_reassembly/main.c > +++ b/examples/ip_reassembly/main.c > @@ -353,6 +353,9 @@ struct rte_lpm6_config lpm6_config =3D { > struct ether_hdr *); > ip_hdr =3D (struct ipv4_hdr *)(eth_hdr + 1); > } > + > + /* update offloading flags */ > + m->ol_flags |=3D (PKT_TX_IPV4 | PKT_TX_IP_CKSUM); > } > ip_dst =3D rte_be_to_cpu_32(ip_hdr->dst_addr); >=20 > -- Acked-by: Konstantin Ananyev > 1.8.3.1