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 2148BA0531; Mon, 10 Feb 2020 03:01:37 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5AC271BEA5; Mon, 10 Feb 2020 03:01:36 +0100 (CET) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id A0CC954AE for ; Mon, 10 Feb 2020 03:01:34 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Feb 2020 18:01:33 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,423,1574150400"; d="scan'208";a="405440398" Received: from orsmsx101.amr.corp.intel.com ([10.22.225.128]) by orsmga005.jf.intel.com with ESMTP; 09 Feb 2020 18:01:33 -0800 Received: from orsmsx154.amr.corp.intel.com (10.22.226.12) by ORSMSX101.amr.corp.intel.com (10.22.225.128) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 9 Feb 2020 18:01:33 -0800 Received: from ORSEDG002.ED.cps.intel.com (10.7.248.5) by ORSMSX154.amr.corp.intel.com (10.22.226.12) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 9 Feb 2020 18:01:32 -0800 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.104) by edgegateway.intel.com (134.134.137.101) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 9 Feb 2020 18:01:32 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WOwXfRgB6ZjWfMkWzSli2lN7hfNxnUOQotPbd/ZqkHMynpCopq9bzg8fZKJTHHy1zoOg4eELuUjHrvqit19Sr0wbrFstR8RDufyzc9E7MbboPjQ6CpbzIdtgENXf/jOZBC5U2JGcZzUFz7eYof4osziOQDhdIpwEPeAmEycfxhRn64fxfdHDyoab13Ik9C/KVlneRogA7okJ8ktk1PVP6G9fPzQiwXKxDRN0DM9Wpep2a38QOassPJupmpfDkhmOx2RI/Ire7sbX45ivZejN62hsqfHb2NXFWsR4RonZJthM3X2xH4Q7IQGA+E4nlVmTRgW/D0Dh2lf2XUk0Qm614A== 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=SPeznozX7ZaiaNzOcCd1XA00cwRSSeyDOG37GkThT/U=; b=KISTXmzMQ7rhCVt6sz1wx2ORx5oM6Ix5RsSawWuYUo7XRDxPq03PLSvdUVzdWNcjQrEbNmGJpbOhpq4WRW0sxQET6NCfFw8KfFWx9bk6pjSrmUuZChYSLJiFGBeoaSsgveccbZqjNUYDGgPfd0lpyJvNZQYqJ8m42VkS8vi2dQA5C1Jmu2ColC1ziTVd+ji8evsxfAoiTzSiR6RKN+6yRZmJtwE4C96oDeYiKEUHr8HEmlQZowavznPKsJdxoPhhvs+Mcszxqp/m/m05+Q5aKh3LPAtHebQITC4PA1zggIEroF08/r/Q2LXzky8TfhzZ4yMdQGQ8aj/XA1r3TW3GrA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SPeznozX7ZaiaNzOcCd1XA00cwRSSeyDOG37GkThT/U=; b=be9mPWoVYUJfUmO7kXs8wSRamESyTQfgGRplTu7Z/cWJcwdESdNLnzayp6wVZ5gyORN1bEqYBKK7hvd2jK03eD4sj1eD+ZBY3wE7/GCZLF5FnyykUSU4Sn9gr9s1ojKrXQQ4bYvAlbzlAO36FPC3tVsdgnZTeHgZKVZkZPOEjpA= Received: from BN6PR11MB1796.namprd11.prod.outlook.com (10.175.99.136) by BN6PR11MB3857.namprd11.prod.outlook.com (10.255.128.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2707.23; Mon, 10 Feb 2020 02:01:31 +0000 Received: from BN6PR11MB1796.namprd11.prod.outlook.com ([fe80::4519:125f:2122:de07]) by BN6PR11MB1796.namprd11.prod.outlook.com ([fe80::4519:125f:2122:de07%3]) with mapi id 15.20.2707.028; Mon, 10 Feb 2020 02:01:31 +0000 From: "Trahe, Fiona" To: Heng Wang , "Doherty, Declan" CC: Filip Pudak , "dev@dpdk.org" , "Coyle, David" Thread-Topic: Offloading L4 checksum to crypto device Thread-Index: AdW5mwh0/nWO/Z95TFqJpxy6SGq2dgiraicAAB6zQ2AAvIlHIA== Date: Mon, 10 Feb 2020 02:01:30 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMzQ5YTY2MWUtNzM4ZS00YTEyLTgxMGUtYjg0YmM4MmM5N2RmIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiczcrSDRmekhHdzVNVGxkd0VLUFRIYnVhQ2MrYUZUeHp0KzRENUJuUDNDSWVmbmd4WGd4SnVNMjJmbE8yTTZSZyJ9 dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.2.0.6 x-ctpclassification: CTP_NT authentication-results: spf=none (sender IP is ) smtp.mailfrom=fiona.trahe@intel.com; x-originating-ip: [192.198.151.161] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 4ed86a89-7660-4eb0-cfb8-08d7adcd25ea x-ms-traffictypediagnostic: BN6PR11MB3857: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-forefront-prvs: 03094A4065 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(366004)(396003)(136003)(346002)(39860400002)(376002)(199004)(189003)(9686003)(8936002)(86362001)(110136005)(54906003)(52536014)(55016002)(66446008)(5660300002)(66556008)(64756008)(6636002)(81156014)(81166006)(316002)(76116006)(66476007)(66946007)(8676002)(26005)(53546011)(107886003)(33656002)(7696005)(6506007)(71200400001)(478600001)(4326008)(186003)(2906002)(966005); DIR:OUT; SFP:1102; SCL:1; SRVR:BN6PR11MB3857; H:BN6PR11MB1796.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: bF8RKX2kTrQx+IFmdgiVgRKbzEkW4OhSUaFvzX+fkrofoD5cZpSwCppX20ScetWPjaHe3/Vwj6JTTkWqSAsavQk6lFdkpmQYlNO/mYYLvd7sHgarzknxJVL4izxjE6Vci1MjZuxbHvo3CJ3VFvHLh2QbL+QEeR2WSub+rvpirJWByyc4Fef3gLRf0srh8JoOswld0+/qumrJaM7Dn6EGFVJdTSxYU1rjUUyz0+vw8F9wVkswwxZqlry/LRQV2SO7WQsJik4X9lVrjMYTWthNEsDUR5yxQU0Rrnd64VThWmuNVOLaZ3+ikCBnevi/WrWFdiGQJjiLyqu1Knz8sZrQQqAA4r/64d/aBO2N6e5++3KPTk44nI3kmLMXOxTzOfrl1jxovMYcddeYON+Paa0+RPnzC7BSwtrhx2fbhI2uzYcXhOwxh4Xrz7nX1/afTm9Q3EaTpD6wnl7v75Fr527PfZg/tJf6GRPZfjAYiR60zCYDvYX5g+rUlxsRylj2RyhHl9bT9IPe6IQCV7uOVJCxUw== x-ms-exchange-antispam-messagedata: dG5Vv0sNe4wy0xXAIz6mKQkPlD2ZJZL3s6uAFRgecvsvKCezdJq359jf86ElQ7JnMqEh7G0Qi7KDR1LAerQSqu3HeB0vPDWk99L9SQ+JcF7lVdiQzs9QCp4qt8BVFQQ8vdnzZjaMqR1q+0OVFLFZMg== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 4ed86a89-7660-4eb0-cfb8-08d7adcd25ea X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Feb 2020 02:01:30.6353 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: QqZiRpBpCBCQz7c88d4kleyK2veHyQyie2+cb7GU/E5XuyTGQVI6XZb5T0/y+4OSLVNWNwlMOzet676vh5/ikw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR11MB3857 X-OriginatorOrg: intel.com 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" Right now it's just an RFC.=20 If you want to influence it you can take part in that discussion. Or in development of a sample app to do what you propose. > -----Original Message----- > From: Heng Wang > Sent: Thursday, February 6, 2020 8:03 AM > To: Trahe, Fiona ; Doherty, Declan > Cc: Filip Pudak ; dev@dpdk.org; Coyle, David > Subject: RE: Offloading L4 checksum to crypto device >=20 > Hi Fiona, > Thanks for the info. Do you have a sample application to show how it wo= rks? It's better to have an > example of chaining udp checksum with encryption/decryption. I am also wo= ndering to which version it > will merge? >=20 > Regards, > Heng >=20 > -----Original Message----- > From: Trahe, Fiona > 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 >=20 > Hi Heng, > This may be of interest for your use-case. > https://patches.dpdk.org/patch/65559/ > Fiona >=20 > > -----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 > > > > Hi, > > This is Heng from Ericsson. We are now developing a platform based on > > dpdk. The platform usually processes the ipsec packets encapsulating ud= p packets. > > You know, calculating udp checksum is always time consuming. We > > found a hardware solution where our crypto device can calculate the udp= checksum during encryption. > > Unfortunately, in DPDK, I didn't find any feature flag for it. Also > > the API rte_cryptodev_configure doesn't allow us to pass any offload fl= ag 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 feature flag and offload support in dpdk crypto device? > > > > Regards, > > Heng