From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0075.outbound.protection.outlook.com [104.47.37.75]) by dpdk.org (Postfix) with ESMTP id 8361E952 for ; Mon, 18 Jul 2016 15:49:43 +0200 (CEST) Received: from BY2PR03CA055.namprd03.prod.outlook.com (10.141.249.28) by DM5PR03MB2746.namprd03.prod.outlook.com (10.168.198.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.544.10; Mon, 18 Jul 2016 13:49:42 +0000 Received: from BL2FFO11FD054.protection.gbl (2a01:111:f400:7c09::122) by BY2PR03CA055.outlook.office365.com (2a01:111:e400:2c5d::28) 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:49:42 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; intel.com; dkim=none (message not signed) header.d=none;intel.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 BL2FFO11FD054.mail.protection.outlook.com (10.173.161.182) with Microsoft SMTP Server (TLS) id 15.1.534.7 via Frontend Transport; Mon, 18 Jul 2016 13:49:41 +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 u6IDnXEi014902; Mon, 18 Jul 2016 06:49:39 -0700 To: Sergio Gonzalez Monroy , "dev@dpdk.org" References: <61dc3eb1-2522-78f5-871d-442d473ab69d@intel.com> From: Akhil Goyal Message-ID: Date: Mon, 18 Jul 2016 19:19:32 +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: <61dc3eb1-2522-78f5-871d-442d473ab69d@intel.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-Matching-Connectors: 131133233816415222; (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)(1110001)(1109001)(3190300001)(339900001)(377454003)(24454002)(199003)(189002)(4001350100001)(7846002)(50466002)(11100500001)(97736004)(5001770100001)(87936001)(189998001)(107886002)(83506001)(5005550100001)(6806005)(104016004)(65806001)(23746002)(65956001)(92566002)(85426001)(31686004)(31696002)(120886001)(47776003)(36756003)(305945005)(586003)(68736007)(86362001)(64126003)(50986999)(8936002)(33646002)(105606002)(15650500001)(8676002)(81156014)(81166006)(2906002)(2501003)(77096005)(356003)(230700001)(2950100001)(54356999)(76176999)(106466001)(65826006); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR03MB2746; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD054; 1:He4/BSTnZ6M+fdVlS12myEIKV35PGq3t/Q16ACIPQf6MzO/0/YdhlvS5O0fA3sz+RHJCWAPG5Pym+vwv5hJwljfufq6e8HKpSqOWQV+FuBj1ZubkXcFPXY9HMtwBRbimLNfmLLwwPIDQRkWI78OcnKVRKtBwwF/rCdCUTTI/wqvK7RsbDLkeNGCbhirlIj7LLrqRrPr4DFtrH7p5AbCeYeU3nWSjhA1TqF1MHifaumUO/xEZmcDabjvdTLYWXtHLzD7XisZfbz9VgXmVHLV2Y1sBg7EnUlcvH90PO5WEe1kJJRK2JZpG8t183q6ORnM5tuJXOjRxt99rFS8ABNGObyfTjKqPe/PSC/cXrCEi1eFzZfhUGYxEEuRcnZXGmzfKuCN9IKLoU9PVxQfXpQZmBnt8qCjpOiZTfukIXF1WgXQwxcfg33RVGslxVNVtfseTg/zA5BGTyk40X9uWxz0EgZhnyA97Vw4UIH7QyxDyqCJOQYwJ9RrJFIq7cRbmS+r4rBDbxzvG5nvc7GByqDchmkAe33dqvN/SI/if2aan4PTSnscZWGz4RRFlFVHfapUbZIl3Aat3uvSsBXVncGI6RXKnSRTD+Cp+da5RYmeFbu5eVdhALO+UVg2NoBzxEx6DeqKkVlF0crB4j95p7m+5MQ== X-MS-Office365-Filtering-Correlation-Id: cee78b8c-c597-43ff-bf9f-08d3af125e41 X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB2746; 2:lIHvoU0E6UfAhxGxEm3XXhwh/G592Py16efkBMkm8GY1p8+dRaiHXSxfpJ4oZk28q2gCwKmcfDpaURmvnSVMF4/dEmJaLHmu4TCsa8liAtrw+22YYrBqrGwDCDPrxwUgzUt05UHXSPEbPl53r5jWCTPCCFDb23yB1GAnPrPm1NInF2KrGhX5jNNQkYa7fY/v; 3:pgqjzsJ8i6nxl63CObX6IWwdjnBZHC/KU6gd1Yblejkel9d0knyrBSyoQL673ho/FTb64pqen+A7sCh1DavcV+vw6lpbsTkRXuFl00K5Nwxf4vjiaNly6hYy8GBK6Bm9uW6t92YrlhmZIwyuwPypBK13ESLQ7OUAAN0/fiYG1ItyJeaeyIIKwVPXaql57MOLbvbTs7cPWKUo+T9Gb7UxXdAGAFAioIVCduc097g4Xvo= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM5PR03MB2746; X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB2746; 25:fZUrp49g3bBqMB2RLxn3hMkbN3MkjJdjYTKSpWMWf6G826mATABnErqanQkcGOF5AkLbivaq2GUOM5fSIPLjtWK3xLaVcaFTMkEu31txO+oGd2mXwv/Ne0GoukFu7xUQXjb5JludvqEN58mK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f2LjbFICAQBMlfVotB5bPY6EsYZDB58rcnD0G0hy6DHYKEsSVMuNVQ7bVJrZOL5uyEs2xA/kdqhPBiEGCw5YLBU72iV841X47mL8XJygd/3loDIlGUCyTC9w2bYGzwppQOk3EtedXNNGCdRInWgAy1yaLGmQgB0Cox2VaRqg9gZcsbUWLgVq3TKf9/zX7UX0MEdFcAdKAz+ulzqtrIxK8XFMamuk2U1CgokchAe5rmEq3jMR5UwmPfm4Of2ayBqjnCf3+uOJ2d01R0Cy1d9leS7CZREE= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13023025)(13024025)(13015025)(13018025)(8121501046)(13017025)(5005006)(3002001)(10201501046)(6055026); SRVR:DM5PR03MB2746; BCL:0; PCL:0; RULEID:(400006); SRVR:DM5PR03MB2746; X-Forefront-PRVS: 00073DB75F X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1; DM5PR03MB2746; 23:3w6G6njdDU5BdsfuaIaE29L2wM2R+DJuT6iDR?= =?Windows-1252?Q?d6y0Bw1r/vxQTVbeQclYUDo7jhJO54IGrMYhfMr5eVhal6bUYzujB9SL?= =?Windows-1252?Q?vrgBCg09THOpFKlwWSoYLWnCwOFpV7jsZuonx2+IiHzJnmdQY554zj5t?= =?Windows-1252?Q?9nt514fW4QqHP3iUFoXn/fcZeMph6IpRb45K2p5MqrimD1OWMwDgTPnC?= =?Windows-1252?Q?1CeAnS1gMCq0VX4JKdmyPidBdoXB/uD07i86Q5FEfTPiQqhEErhgG2GO?= =?Windows-1252?Q?+qpz/VyXKsSK2kGSF3Pde5ZIve9MOfhOsLjxYlNnqPQXqBkOkr/yvX0S?= =?Windows-1252?Q?q5cL1/fM699ag4A1wp/Cx6qoSKZ3VEIPkIVY7IK8OXImp7cUG2vJo+QV?= =?Windows-1252?Q?0Jh5Xx1QALDfjtWkFMzY7v2S9GhVfsM2puVosNhOkqPtSnlOAoJMQMkr?= =?Windows-1252?Q?ZADC8U9YA7uSPCFrtJ2amqEzHyJhp1VNY4ZrHbWQ9jwCWSfQo2GrqHpJ?= =?Windows-1252?Q?csi7xLo54vXWwxF+KocF9sg8dEpA9kAr6DCFBUiMQfjxlrY/7xqeZng+?= =?Windows-1252?Q?kao0Zn84qzpmIRTGWmsDWpitCPy1w11xV6zhQb5tM5zDGEhFpAnLKShu?= =?Windows-1252?Q?ac7Z3iHY5wa1+iPVPD1/yTb4//aXFn/bMy5/l9LgXeP8r7otzkYT6QQb?= =?Windows-1252?Q?Bs5P9Y5gyvlsuA0x1TF4CyRW40LMdhG1g8aODupPOVsUbtdjXvXRvsjn?= =?Windows-1252?Q?A6pYTxhFnZjh40NEiM17iwdRUVatde9VysD1iDUUQNxPTs0nvijgZRTH?= =?Windows-1252?Q?L30ehzsSXiu3OFj0FPkV9vrTkac+WQhANMUeQYJ/yEG7g+SJXsYUWEbi?= =?Windows-1252?Q?mBMUpm5iD5+W+78AeL33UHbKYOZiBRy4SmqqoW5eL0DH+ni6HOHeUKth?= =?Windows-1252?Q?4+l4BhzF0OFX52E0Sh/EehTCYrBufxLY3y4DSj0OpNZrInSMtwhosKIf?= =?Windows-1252?Q?v89HHqLoqZAD+p9Zxqd+vLnWY9wketbFWXH4gTlP7bxC3HstS98f+GGS?= =?Windows-1252?Q?9CirI+Vrn2AD+mkWMDHESwVUa/43VeyQ22i98Gl/0K9Sd4ltuTRdGKCn?= =?Windows-1252?Q?BdQajamnjo+5bLOea/4pJzaILW+Z+wCNpXl1tw0cgs/kE18KAUD6sp4h?= =?Windows-1252?Q?w/HIl/UsSYfILjB1bvYlsY8FuPe4R4+m0Gob62VrVuYwlsQ6CrTiQxts?= =?Windows-1252?Q?2g+mhISvnRKOgBnSYN36vOuAhBWSyfjXctjLPRJ71O1gog5xStPqqwWD?= =?Windows-1252?Q?vWm/AVOK/tS15HSC248ceypgmXePdI9F88CdpwvaZncvtojg2aztXJzT?= =?Wind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etadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jul 2016 13:49:41.3295 (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: DM5PR03MB2746 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:49:44 -0000 On 7/18/2016 6:27 PM, Sergio Gonzalez Monroy wrote: > Hi, > > On 18/07/2016 13:41, Akhil Goyal wrote: >> Hi, >> >> 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. >> >> Please let me know if the checksum value is updated somewhere else or >> not. >> >> Also In case of inner ip header also the TTL value is decremented by >> one but the checksum value is not updated. Is it intentional or it is >> done somewhere else? > > It is intentional. The application is using IP checksum offload but just > looking now at the code there is a bug for IPv6 packets where the flag > does not get setup. > Is it only for IPv6 traffic that you are having this issue? > > For IPv4 traffic the PKT_TX_IP_CKSUM flag is setup in 'prepare_tx_pkt' > function in ipsec-secgw.c > > Sergio > Thanks Sergio, got your point. I missed the flag. I was using it for IPv4. Akhil