From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id C9529A051C; Sun, 9 Feb 2020 20:33:48 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A233A1BEDE; Sun, 9 Feb 2020 20:33:47 +0100 (CET) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2087.outbound.protection.outlook.com [40.107.20.87]) by dpdk.org (Postfix) with ESMTP id 752941C0B5 for ; Thu, 6 Feb 2020 09:02:54 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AjlOgPOFhYu3s4ZyVrI7rcw2HrNeYRD/Dbx5j5aYV5EkbJYD/Ved4u+o5S/GBTWpKDQqIuZjZXgQ2A72ljlE40tmY8O6na1ogi3nAZhRf/BnWJfdT18uC6wctJvXXZEiAkFFhQ1CGOFIAi3k/H3qQ8NWYFF2hl+iQabGY16SonjGUKaUrlEKBboaatTQAbnmY95xPKchCMM8hTlWlCuqVyOUIdju6N7npuzgr6cAzMgrWE3Z4GGb1iRUTTDREKL/qLLmC3atPasVxzJRxlh3W3pxDOTnMMELDXclRydEamy8eaH4KiznoP5ATeFrPpuUh6JC/8cm7oOay6ZxD3s+WQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1POJVr/hmIU6E2IqG+Ubn3yKKoP4HUFHS2SsgB+6lyg=; b=ciOARu5ju3lwbX1/Jym428aBkBnUFAAC8V8QxvY55h+mtF6dk2J/TE5lKPYKYutD0ksVYXaHj2i5QjeML2L6WgsRrZzo3tNGk2rH74+AqwkYaLT44uMBFrnaz+8fvk85nhS7PyS+xtmxL44+h2XGZr4NU62DdcU0412zlXoCrwEzZvyzeS9PkLrDLEwGxUahkWJRJ7fCAL1R9HuG89pv7FR/yFKCn7KUYWSXCl6lwZHJ1v1ccDM4YORJGEhpzgHOam/dty1MQEvbAc2ZAE/SBHFwlq5f/24V4eCMeMT1aE5GPdmByVRZJrc0SXDXgP0iEDQzRnzAgl0NxCU4wMthIg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ericsson.com; dmarc=pass action=none header.from=ericsson.com; dkim=pass header.d=ericsson.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1POJVr/hmIU6E2IqG+Ubn3yKKoP4HUFHS2SsgB+6lyg=; b=Qok16E1IhqITIfhQ/jbj0Y0njfHjhyngfOXZMDUvuPjNniVfTHnGhSOpER+B0AvH2jVWc3POJO3gG457pRcqNCQdbYWM1oYYNTVOuXCEvyK1M53PHbiDuo9Bz0Xfa2XSKsNKUoAclUuluLrw+tLam1HiUKI0Xdh520+pPfrbjDc= Received: from AM0PR07MB5396.eurprd07.prod.outlook.com (20.178.21.78) by AM0PR07MB5539.eurprd07.prod.outlook.com (20.178.23.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2707.16; Thu, 6 Feb 2020 08:02:53 +0000 Received: from AM0PR07MB5396.eurprd07.prod.outlook.com ([fe80::5cfa:33dc:f859:4335]) by AM0PR07MB5396.eurprd07.prod.outlook.com ([fe80::5cfa:33dc:f859:4335%4]) with mapi id 15.20.2707.023; Thu, 6 Feb 2020 08:02:53 +0000 From: Heng Wang To: "Trahe, Fiona" , "Doherty, Declan" CC: Filip Pudak , "dev@dpdk.org" , "Coyle, David" Thread-Topic: Offloading L4 checksum to crypto device Thread-Index: AdW5mwh0/nWO/Z95TFqJpxy6SGq2dgiraicAAB6zQ2A= Date: Thu, 6 Feb 2020 08:02:53 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=heng.wang@ericsson.com; x-originating-ip: [192.176.1.85] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: d6621752-f56b-4b02-a2ef-08d7aadaf7d2 x-ms-traffictypediagnostic: AM0PR07MB5539: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-forefront-prvs: 0305463112 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(396003)(376002)(136003)(39860400002)(366004)(346002)(189003)(199004)(4326008)(316002)(9686003)(55016002)(478600001)(186003)(8936002)(966005)(26005)(6506007)(53546011)(81156014)(44832011)(2906002)(81166006)(8676002)(110136005)(52536014)(5660300002)(33656002)(76116006)(66946007)(64756008)(66476007)(66446008)(66556008)(54906003)(86362001)(71200400001)(7696005); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR07MB5539; H:AM0PR07MB5396.eurprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: ericsson.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: lmhNY8QdBnipqjp37X2mCslccqzOLpU4AFousOHbGQPeEQ230Sj9kS73A1bAsM2ht4Wx3NAaesk0ljm/uinlLfFYswVjLb+V6wmGOOGoE6XwEvNeWo2MBTz2hUqsGKhAeI27NuoMzDvqdFxGJjQMHMPaI7ZI6Q2JtP3KLdf3GVj9bUXn8YXL7LsN6wVgjVDGITitZ+VW3Qgz48DNpG+m6Kp91csoesmKpPOcWqK3x1yTFkZn/c4Q9paZjdoEnnL1YEIsw2o1CH3ndmqfzIiXm4njb/v1pV4DVEfq8TC+1veBgBl7NBBlJ5rgp4BD7cT4KpiJM+fbismfo29l2KBkN9OHjO+VYqQrQ3JiAvQueT8Muo1YLZx70TrWoOggyvpMLn0uCU4ep2AdYD4oQ40tddpd84RitIWsASjDfpkCxYPBCoYT1eFeNqcSUtA4TJGupB5g6kaa1ZNUU7f4vMnQbjlxEi73ur95kKHmHD6I9cAIlxG3Iu3tJQj5Jrt7MzbM+Ij6QDaI9V23G2yx9yeINQ== x-ms-exchange-antispam-messagedata: vd/QYvaBRSDRLineRILUBEc+R4RpiKxUsCTMSKjYnKxUPLS1FytPk+kudfjnXVFds9cxX59EKN5NjgkT5+OVt8HMVcma3jRy6w/WRlK6FcElzEKA5nG83pVjuAxffV86Q2DpEA7qVdi5jK1/XwjF0w== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-Network-Message-Id: d6621752-f56b-4b02-a2ef-08d7aadaf7d2 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Feb 2020 08:02:53.2034 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: rlsAK/FQat47Zep6lPibkuf1TmkLpqFymUkVp48srpJ7r6yIV9qGl+cN1xKJf2EI4PHoY5Whn8AwaLlF/1NTGQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR07MB5539 X-Mailman-Approved-At: Sun, 09 Feb 2020 20:33:47 +0100 Subject: Re: [dpdk-dev] Offloading L4 checksum to crypto device 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" Hi Fiona, Thanks for the info. Do you have a sample application to show how it work= s? It's better to have an example of chaining udp checksum with encryption/= decryption. I am also wondering to which version it will merge? Regards, Heng -----Original Message----- From: Trahe, Fiona =20 Sent: den 5 februari 2020 18:23 To: Heng Wang ; Doherty, Declan Cc: Filip Pudak ; dev@dpdk.org; Trahe, Fiona ; Coyle, David Subject: RE: Offloading L4 checksum to crypto device Hi Heng, This may be of interest for your use-case. https://patches.dpdk.org/patch/65559/ Fiona > -----Original Message----- > From: dev On Behalf Of Heng Wang > Sent: Monday, December 23, 2019 2:28 PM > To: Doherty, Declan > Cc: Filip Pudak ; dev@dpdk.org > Subject: [dpdk-dev] Offloading L4 checksum to crypto device >=20 > Hi, > This is Heng from Ericsson. We are now developing a platform based on=20 > dpdk. The platform usually processes the ipsec packets encapsulating udp = packets. > You know, calculating udp checksum is always time consuming. We=20 > found a hardware solution where our crypto device can calculate the udp c= hecksum during encryption. > Unfortunately, in DPDK, I didn't find any feature flag for it. Also=20 > the API rte_cryptodev_configure doesn't allow us to pass any offload flag= to the crypto device. > I think this could be a common case to calculate something, like=20 > checksums, before encryption in crypto devices. Should we consider add=20 > some new feature flag and offload support in dpdk crypto device? >=20 > Regards, > Heng