From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0048.outbound.protection.outlook.com [104.47.38.48]) by dpdk.org (Postfix) with ESMTP id 482E6952 for ; Mon, 18 Jul 2016 15:53:31 +0200 (CEST) Received: from DM2PR03CA0035.namprd03.prod.outlook.com (10.141.96.34) by BN6PR03MB2740.namprd03.prod.outlook.com (10.173.144.135) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.534.14; Mon, 18 Jul 2016 13:53:29 +0000 Received: from BY2FFO11FD014.protection.gbl (2a01:111:f400:7c0c::188) by DM2PR03CA0035.outlook.office365.com (2a01:111:e400:2428::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.544.10 via Frontend Transport; Mon, 18 Jul 2016 13:53:29 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; 6wind.com; dkim=none (message not signed) header.d=none;6wind.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11FD014.mail.protection.outlook.com (10.1.14.76) with Microsoft SMTP Server (TLS) id 15.1.534.7 via Frontend Transport; Mon, 18 Jul 2016 13:53:27 +0000 Received: from [127.0.0.1] (B35197-11.ap.freescale.net [10.232.134.49]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id u6IDrMa7020262; Mon, 18 Jul 2016 06:53:25 -0700 To: Thomas Monjalon , Sergio Gonzalez Monroy References: <61dc3eb1-2522-78f5-871d-442d473ab69d@intel.com> <3199592.SCxHWQF8fy@xps13> CC: From: Akhil Goyal Message-ID: <82bd976f-7482-924f-a50a-649bd63d4d65@nxp.com> Date: Mon, 18 Jul 2016 19:23:22 +0530 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: <3199592.SCxHWQF8fy@xps13> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-Matching-Connectors: 131133236081307732; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(1109001)(1110001)(339900001)(24454002)(377424004)(377454003)(189002)(199003)(8676002)(81166006)(4326007)(104016004)(15650500001)(68736007)(81156014)(356003)(86362001)(11100500001)(305945005)(92566002)(7846002)(97736004)(5001770100001)(189998001)(36756003)(4001350100001)(120886001)(23746002)(8936002)(2906002)(230700001)(105606002)(5005550100001)(83506001)(65956001)(6806005)(65806001)(2950100001)(87936001)(33646002)(50466002)(50986999)(31696002)(106466001)(31686004)(64126003)(54356999)(76176999)(85426001)(586003)(47776003)(77096005)(65826006); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR03MB2740; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD014; 1:NbvBMfs5bTCp6Oirq2s1cIX0V7kT1Gik5yakQRg1Kxaa/XPDbyboprCwgTxC6FSjMCXP62OrQnxj75GvGKpt70K7i+h4iHZsnXf9ZPNHQ+ZcIqX/xxhJC8Cj2tLJTr0CnZatAdUEunj5aU4WLUt+ztBMpd4o1ba5hww1Vyyos9HszNfZGuGrXqrIlE8JVMoNX7ku/PI+kEwIIFFeBVaFNBxY3xE7iV+8akotSRTkpTX/hidhuvkcraLkBk2mi4Btj+JM2cm2q4tx86wsJjv8rWN1k1QN+b4U7fIS89RITfrFLBliTaLs4AvEhzss0SwbHzo8ham4vpOmU/ARRfks/kT5xw0VNfi+4W+JnKAjsg3Ye2B+zR//G8La35ciaWDLa6DWUnFyXyU4CoFZ7N80INX3G3JOLpMzhvWubxJnuOCemdmIHG1v8sak2OaY1cR1t/v6EN759U0yP1Jsoqe6Y0mtb4k8z4sVu3FjGEebmzMCeUvxUAxVaHRpJNWoOAsK3vEzMblakxk1/Lr4TLWFFbZk3FxKY+oluTnRt9+9/QruLKe2JVhbEyOUirwy/6+WsSVKDCtp3zzqo2ac8DHiAVO9wB4xyx99CXJVGqalYhQJCf31sOrKi60E0TewfKvz X-MS-Office365-Filtering-Correlation-Id: 7bf98126-9877-4403-a544-08d3af12e543 X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2740; 2:gGmUDxDH+gMTztO4jJKthBDD061UKRt+nW/1teOwDNcYZIPcidWPDOJoSRkY7lsR0y/XModTgIzbqDAmjnGstx6uzXb+9egM6s7aVRitPxbyraRQ71mvzjHwrZ26FzynPcRavlGPBtb2Dlw4UAlWVnoO7qNZu2y8AVAx87vIfQ49TBYS8kXJTYWgLpgMNeMr; 3:fWQAUxWHkTzdXOnAmPnJTxQGadZcmCtkI7ZQxtzF9oI3aFEq0jpMXUUocJsrUFjw2uidUHGebbRc22cK6QP9Y/8necdeYKfMC4FFBV6TNR1VVQzSpY0mzhxkj49xaa5E9E8t2vYQAIrOWqmzjZ6c4fxn443rfs5KFymIC/aH7gUAXVBJvH9MQeZdiW8ccfdTP+zY2v4/CFhkUbK3FF/smSaeYVns3rcQN37ukTOhY50= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN6PR03MB2740; X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2740; 25:vxsjyr5Ra8tlVsC1Eur1kwCAeT4WbvMIwGEo2qL0DceLHpwTQ4MfnjmCJBN9uk7PwHCG6c6lKm/DO9wayO7LzC/p8sqgnrejBQ1fFJ1AO1TmbU3vukFjkuBI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IvuFg7ItpyD3UoEiHpshQQ44barPNXywtFR8O+lAZ7MLqiQWAksnwkCPbCC04uYJ35XC6Bw4G3ETBbBXDz9lCPHpxC7e0eBZmW88gd6j1nxsmUQqs7ti0FZrCStI/3QK4Ae+22P8vliolsTlxowk9SXwNshj7SseC5upcXUlF/lTwKJIuXvdq8qAlPvqF//FTrxuLJwAK7l8y9bKD+DXSlQv62QQwo5sS1mzAZBvCazvUiy70adOHTN6/VEbMXfm7NDURW2mnv5ovY0kBoXHym3+4AfdA/LXqrHrtuXvba+8h4XwuwBR9of5hv736xNC/IJ4kipfkIqQbPA4g= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13018025)(8121501046)(13024025)(13023025)(13015025)(13017025)(5005006)(10201501046)(3002001)(6055026); SRVR:BN6PR03MB2740; BCL:0; PCL:0; RULEID:(400006); SRVR:BN6PR03MB2740; X-Forefront-PRVS: 00073DB75F X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1; BN6PR03MB2740; 23:Tpcm9viMyqsw7TW+5XZudsZpWnQ62QiuZs278?= =?Windows-1252?Q?AFuxCtpb6f2BD4jajr76OADfSlRTbDq74pvPKVmdPxtA8e1FzcBjzgSd?= =?Windows-1252?Q?8MxruigSpNbIDKtWwI2svsfCfjhFokKb3l6fG+uszc1v/O5WXi1qx8X3?= =?Windows-1252?Q?XQ1dT7J04CwDLKjZW4cejziZZdGova8DUKIWyDm3su01fTrwdvmyJDgu?= =?Windows-1252?Q?3LZcc0WuIXj74TYYfIpk5iRUWuX8jxsgVr6AkpgqM5MzpPrL35oyEdlQ?= =?Windows-1252?Q?yCbH4DVCpDHwZGd9dwhqdrTU19IQRPr3CjPeuluNTa42qOefAJckzaTS?= =?Windows-1252?Q?kDG1g+1TFywcoF2nQsuW5Y3akuzZukxNfvJWjpO6L5yLnhlLNeD+zsbC?= =?Windows-1252?Q?tNNmKZ+Z/e5/Jzfj51FPiBVa378aAY+I6ngecNpM26r7Ba2WOWBKm+JG?= =?Windows-1252?Q?+KEaVtjh9hBZQm6WG54i+60YP+gv6F9hDhLrs6iJQ1ti+sqJFZDBtbEi?= =?Windows-1252?Q?qZ3EMSzi2lxBcFtOXsfXtKj48GTQ9Yidga0Qm/OYo1PMqEKS/dQhATC/?= =?Windows-1252?Q?uy8oVeEEdUdP90alGOY/LgypA8otE5gWZh4MSqiYW3ImZInEzWlKTRIN?= =?Windows-1252?Q?Kt6H3MRMVI2p9Y1/M+u/NhgucsM2D+8E3P0eu9baqHGgwLfIQMAq/lM6?= =?Windows-1252?Q?F8kZlTnlaa59yD3v1bhd2KAbmY4Vh77rTh0Q3/gR7+Q5YLm9QZO8dYNa?= =?Windows-1252?Q?0KMAzccCgLUC4qYonTek0+6qKyGxc5WXeMzJPWdkMEtEseAtnK+IM4bO?= =?Windows-1252?Q?sc3pzSFJ0qp57UrqoXIMwBMlukvGLH8s3ZVM1zTanFkfi+xIDxLKSPHt?= =?Windows-1252?Q?hpD1Z+udeTohqH3dM17sHMATvgSCU+jVkW4WNLPTkgJUxLYPDtpblnn5?= =?Windows-1252?Q?LisYVhn6g//5pHC+srC+8pkS31qK3F+sDC29bmGLsh/t7YZVCyHXE+Xr?= =?Windows-1252?Q?CsZICYEG7WP9BRWkaZU1hUk+Fh+2nY4LUuXQ736YytC2mHZvQM40/oHe?= =?Windows-1252?Q?Jt6qWDgtATNzhapr4pCr0n6/GPtzkoywbwBss6k9PxLogcW4GK+5RxCS?= =?Windows-1252?Q?5bPdnf5TeidwC/n3k0KJoJ6LDXh5JJ8a9AdxMnU1a4zHaYZurbqLd50n?= =?Windows-1252?Q?Ik1i/VcCioUdno2LMaLs/AFgomEJQjwNo6Ynknw68MWJVDJJ35geWThd?= =?Windows-1252?Q?zNHYQ3HSJrrPQMgXOYl1Mf8WA5flik1e6Fqe3683IhbbNTBJFAw9Xrt6?= =?Windows-1252?Q?WK7GNdq3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pamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jul 2016 13:53:27.7875 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR03MB2740 Subject: Re: [dpdk-dev] ip_chksum not updated in ipsec-secgw application 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: Mon, 18 Jul 2016 13:53:31 -0000 On 7/18/2016 6:50 PM, Thomas Monjalon wrote: > 2016-07-18 13:57, Sergio Gonzalez Monroy: >> On 18/07/2016 13:41, Akhil Goyal wrote: >>> In Ipsec-secgw application, while adding the outer IP header, >>> it seems that the application does not update the checksum value >>> for outbound packets. This result in incorrect ip->checksum in >>> the encrypted packet. > [...] >> >> It is intentional. The application is using IP checksum offload > > The correct behaviour is to have a software fallback (using rte_ip.h) > for drivers which do not support checksum offload. > But given it is just an example, it is normal to have this kind of > constraint. However I think it should be explained in its doc. > And a list of tested NICs would be nice to have. > Agreed. The driver that I was using did not enable checksum offload. It is good to have a fallback option.