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 2F551A04F3; Fri, 3 Jan 2020 11:49:19 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2FE351D14D; Fri, 3 Jan 2020 11:49:05 +0100 (CET) Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-eopbgr150081.outbound.protection.outlook.com [40.107.15.81]) by dpdk.org (Postfix) with ESMTP id A1AE71252 for ; Mon, 23 Dec 2019 15:27:57 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fY8gyOF7L1iVAENZTmpw9Q5NFQzJHUoNRb81eSz2UTPebCkSddNEX+T8LVKgtvZUAUpFBkhWpbuVhhceely91+inpr8DnODhJAuDY93CXsACKsbFkgnWn8uWNQavM6VzPmZhHYNh1i9PyoAN9nKdiHKJWzEIk5F5uBg3Bm9xvxFkUgPy+zJYk9Nh17on/13k6pJMHXV51J9g9i820gNwzbH3UabgAx/LoBXJUEI4GVwiNcyBfYEEZOL0xTt9ZnHWMlSjQSZnM1lck6RF+XBzHm77sfSuKuWG5QjhCGCo1zaxPN4Uc1+DYAm0LinVzX2toiZChsGda5D3nlw7Srfq8Q== 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=ghBy4Pac3YgIqAztWKaqo1zWQMBpobyqRXSVjlD6xXU=; b=EhQJdmn7nCK/gnAr823aeHS7dsF4Kx2OjbxJyCiOv7vE+j/ZIEXTVXENtk0kfB5RUew0lXVRsuK8YdY9Ff9mDx3ordAGAT2FwWGJj4tM8BAeZ/g120fFYWu09VEPKYx3Q9CZFUsyVdHxuznfCHvtV2VGhabrXqg9bibpdkY2bzUCxvILo0c9ybc+eji/fZXIF05weYA0ZW+LJgroznvQ6EZ5HoDTjnlg1tvkCu2Cj6EGCXPy1O202mnpFF1enhlwGekPbEm8l0oqz3h8Baik3Fq7cD3awfb75u/8/Y6alcPbFui4jWh0KsN32VQ64QgwuA6+PlQUdOu2z1FDKGx7oA== 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=ghBy4Pac3YgIqAztWKaqo1zWQMBpobyqRXSVjlD6xXU=; b=sbB0NzEHM8Gz5Czlec0DlpYPFTflvNmMGwR0U3272Lug67nHqifCs0X3s1FPPPtoCeVpb6pTxlLZQUMF6IxeTz1WpUcwl8ijsnbXnumGV0WEhm3DmfzjsGL76n8sqcXfc5ukbU/EsdF3pdFzdfTH6djQz3cuLVrlP4cXPlnGHDE= Received: from AM0PR07MB5396.eurprd07.prod.outlook.com (20.178.21.78) by AM0PR07MB5364.eurprd07.prod.outlook.com (20.178.22.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2559.12; Mon, 23 Dec 2019 14:27:54 +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.2581.007; Mon, 23 Dec 2019 14:27:54 +0000 From: Heng Wang To: "declan.doherty@intel.com" CC: Filip Pudak , "dev@dpdk.org" Thread-Topic: Offloading L4 checksum to crypto device Thread-Index: AdW5mwh0/nWO/Z95TFqJpxy6SGq2dg== Date: Mon, 23 Dec 2019 14:27:54 +0000 Message-ID: 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: 70af8544-2f12-4f8d-192d-08d787b44cb6 x-ms-traffictypediagnostic: AM0PR07MB5364: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-forefront-prvs: 0260457E99 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(366004)(136003)(376002)(346002)(396003)(39860400002)(189003)(199004)(66556008)(316002)(52536014)(6916009)(76116006)(66946007)(66476007)(64756008)(44832011)(4326008)(33656002)(5660300002)(81156014)(8936002)(8676002)(81166006)(86362001)(6506007)(7696005)(2906002)(66446008)(54906003)(55016002)(4744005)(26005)(478600001)(186003)(71200400001)(9686003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR07MB5364; 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: VAYuZAMeAQbIxOUwTqeGtD2quVP2FzCNFiWrZn8I7Ji3CSsEviHzY0g8CR+gnBwKNdocIIz1YHu1N6HGyMD+XczgFtkUK8tMXMfYHxqNhuSfhDnEa/P4qDDQmV574P0JiiNOKAB+mgwAvtIJ30HAp8QcrYALzEW0gA24K+t0yaloyXbQwyHVboswuwb3x6c7eMgznmYStiHnI5XlVIRszfIIqvIfEl7asXLitArWGZF2U+DYgiuREX859HI4OMQE4B3BblqXbalodKIpVRxKntUogr+PEc/ATxZq96trJ8OCxGTCGi58hDwx0XEE7xY3Qjn/7ngGPLr64q9esO6neSj71BKlz/4adtWu/0bsl7jZ+pLbmzEVfualbcT2cowMSZrMUwvTsoSzu6lvR4R079sAP3/3VLo0yYjq22hbilYcoJTSaO+WbKKGcrm4UPKf MIME-Version: 1.0 X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-Network-Message-Id: 70af8544-2f12-4f8d-192d-08d787b44cb6 X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Dec 2019 14:27:54.5920 (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: y4xignF7n9nHWR/CRPeGrqSan1Dnl30tCFz3XA9v7Jn8H+hN1RIzfvNM9dOkhmSD+vLhUGGBtdCqYYORR99JYw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR07MB5364 X-Mailman-Approved-At: Fri, 03 Jan 2020 11:49:00 +0100 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [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, This is Heng from Ericsson. We are now developing a platform based on dpdk= . The platform usually processes the ipsec packets encapsulating udp packet= s. You know, calculating udp checksum is always time consuming. We found a h= ardware solution where our crypto device can calculate the udp checksum dur= ing encryption. Unfortunately, in DPDK, I didn't find any feature flag for it. Also the AP= I 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 checksums= , before encryption in crypto devices. Should we consider add some new feat= ure flag and offload support in dpdk crypto device? Regards, Heng