From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2B6F4427E1; Mon, 20 Mar 2023 12:58:22 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 086CE40A7F; Mon, 20 Mar 2023 12:58:22 +0100 (CET) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id CA21B406BC for ; Mon, 20 Mar 2023 12:58:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679313500; x=1710849500; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=4xyA9dPzYvyGNi69lMXwOR69pd6N5TM74n8A1AnJNTI=; b=dg1IoDv1VCkEsh4+nFeCJmLD6ocimwtDayfxWPoSHpvIyZ6wSFN8CqKR Jtumnxp6w4ClOBS/fJoBmWuQ8flsHIz2YNf05u8bJuK/RAy1lDDPPbhJM FZK/GGb/lU6DGHIm+W4nIyY1LddTP3lzBRL2rIvGAI51vo3omiDi+CxAr 6FlEG+GVo5Alw/Cqp/BfEt9QI88rrgQROtt00+nAUnAp2DG8JY13Wf4st ZYo3cnPTpwgOejQBFNaprg+DdxsOLgN2UCOkAujeOdcgk7w6/B+9GR2DR GBHW6YqisqBcbpUWDy6Li6CZ+Rn/2VKo+SxoNk6fBRsgjGJMMrdEaq6he g==; X-IronPort-AV: E=McAfee;i="6600,9927,10654"; a="327012616" X-IronPort-AV: E=Sophos;i="5.98,274,1673942400"; d="scan'208";a="327012616" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Mar 2023 04:58:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10654"; a="745348538" X-IronPort-AV: E=Sophos;i="5.98,274,1673942400"; d="scan'208";a="745348538" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by fmsmga008.fm.intel.com with ESMTP; 20 Mar 2023 04:58:18 -0700 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Mon, 20 Mar 2023 04:58:18 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx612.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Mon, 20 Mar 2023 04:58:18 -0700 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.175) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.21; Mon, 20 Mar 2023 04:58:13 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jl5glxowEAWrVKcIIPLFTnBdPzF5GQB4IXxG8+9S4J/L1Gm2jGOOOCyokenKxACYefGeX+ORMHjBlXtnAQonxzF7m4ENrn6rzHMdbaV29kSD9KB/Ut7bK2EQ/6W4f5T8AHqERFZjIvqkl5mlgJhmj2KVEvsgW0jxleiwiB/Zz+zvltuQIv37SXPnI4PvZ/Vd6I7rlcfCZq7Bro2Dwn6UrkKyqjQzQojfWveVHBwG0r/yMUFxtj00x1skBnxcqC7Gf9s9SNJ0En3pq2TwXzri19+bQzJEXfZuGGHTWzyIKYuk/S0i90Ys82t8YDkcWkJFNWR+j0qRHj3PgPA/Bb6NTw== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=szycGywotEq5uPFQyfGOdJmOMh3qZ8nf9qhhvlcSKQ4=; b=eiS68sq1gvrd+f1ovwYZpTktL90s35l2DtYZnAbr679qZngZ0Hiej7ui44C+pyaQphpHcgGPCzr9GBB7Fu4070Vu17c1YLoiabYZS3fqNt9w7gkp0GC9A8NYa9/7IQTgECTOXNOFevU0uMprTuJO3X0qcE4vqJ41T5idtvCp8DshC5aQ5k3KEJbRy5wZNq5KuGouXY3co3FG5hGnGT9KoSK5MIi7dfThqQSo5TyoB43AuMMNv5bOUxnKpPlr8C+9YZ88jWlBfNqNm/QFcOCu9XO6vSQ5Khnru+4SqVOEiubJg4Jok5HPPYku2m1KSHUknxwC/cBbpI220XCCHN73Nw== 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 Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from DM6PR11MB3626.namprd11.prod.outlook.com (2603:10b6:5:146::17) by CO6PR11MB5650.namprd11.prod.outlook.com (2603:10b6:5:35a::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.37; Mon, 20 Mar 2023 11:58:12 +0000 Received: from DM6PR11MB3626.namprd11.prod.outlook.com ([fe80::b2c:838d:4255:df81]) by DM6PR11MB3626.namprd11.prod.outlook.com ([fe80::b2c:838d:4255:df81%6]) with mapi id 15.20.6178.037; Mon, 20 Mar 2023 11:58:12 +0000 Message-ID: <4a103137-330d-ff31-1ac4-73e8823fa8ab@intel.com> Date: Mon, 20 Mar 2023 11:58:05 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0 Thunderbird/102.9.0 Subject: Re: cryptodev API question with out of order support Content-Language: en-US To: Suanming Mou CC: "dev@dpdk.org" References: From: "Doherty, Declan" In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: DB6PR0202CA0007.eurprd02.prod.outlook.com (2603:10a6:4:29::17) To DM6PR11MB3626.namprd11.prod.outlook.com (2603:10b6:5:146::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR11MB3626:EE_|CO6PR11MB5650:EE_ X-MS-Office365-Filtering-Correlation-Id: 12656fb2-6a22-4c93-ca8e-08db293a613d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Z8ECh+bqfoikLrhO7m8gaiiIsylz7ZE6At82UgK5QZgOEm3Cv8S05P/AlqoeqdzJMa3GFpuL37BMxfsr/+nl3Er9j7XGX9gXnp5ppRxQjenjYLNmlcdbyfde7uJkm6ahDLGYgnv40G2yFQUNP+YRSCLvv5lvaIn3sMCukQX7rutA44yH4OKqrfXpYs8VknCkspOP3KGVzH0LEsnDLBi2TSFH8v7dUR/gyOOkw+q+jpZhwTUGQU38BHBw/euLo9534U5VmlTZDaDhf0uZuTk1xC7E6k0+o81QckHdGgBqKjRQonOA+4KgFy7nk0t+YD3IdRkudnKlvPtd9pqNUJs5Ylv/lZUx0de9BlPdY4UTKx7zznif4ZrCwiTzdnJbr8JBsTpYgLS+NvVzu7vRrWZnPFG73onSpVCzF3TYGsB6bu0te43BNPu3j7PfIR5SzGyyvNz543rFWhuNKG9Lk9kiwpmcHtkCPxFhUP+xEzWvUMwaFOVNMex2kcPFuoWneOHYu1yNBTlzOhN/+dEwHSubTOlhUlmEEyi9msxR9rRRiEgrM2+UmPMHd2XwAriqatcDb/BzjCA6oyEzvGkGu/7U4+YMJuBugzg5biTOtyLrLUW/vDjEI5eWzDNjUZTq/Roa7hvChMnLPvrSvAh8sze/juWAy/c0jdLnYhSifv4UW4pP6bNPLX3oU3e/CirPM2NncRbsDQr+FlOoxO6hpOWAKAva2efrSmoo69aSrMJ3Z/E= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR11MB3626.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(136003)(376002)(366004)(396003)(39860400002)(346002)(451199018)(8936002)(5660300002)(41300700001)(86362001)(31696002)(36756003)(38100700002)(82960400001)(2906002)(4326008)(6486002)(83380400001)(478600001)(6666004)(2616005)(186003)(26005)(6506007)(6512007)(53546011)(31686004)(66476007)(316002)(8676002)(66556008)(66946007)(6916009)(43740500002)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?cllncXNkbm1odXdlYkY5VFI2MkdNY0c3TjIzRkhLckM3RGk3MndaR05WL3hu?= =?utf-8?B?Y2pXWit6WTM5dkVZdWxOYjN5enNzM1hVeU85K3F6ZHFGYm9zc3E3K1loaGo4?= =?utf-8?B?MWk1b2tOc3lUbEhBY3BhNUVuZ3hkQjBCSFBzTCtQWFZGTk8yaHh5b0VrUXk2?= =?utf-8?B?c01qNzRxWWpxWlA2NlN3Tnh6dTdlZGQvdXc2cmo1ZSsxc05FR1IrRk5uNit5?= =?utf-8?B?eVJpeUllZVdjRnFabjVyZ2poQU8wUEljSUxsNkFJeGlZUzhONUpwMzlKU1hq?= =?utf-8?B?TEd2Q2l1L3crTU41bDJ5VU56Z0JndUlvdkg0eEhTb1BuNnZIQXpiWTJDSlVB?= =?utf-8?B?YnBKaUd3ZG1BaktuQnA4cEg3U01mU3JUeW9iekZReWl0dDNhbnE2eUk0UzI0?= =?utf-8?B?SGVHYktNNnJNOTJVSitqdG9VbFp0LzRDWTBqY1FzWGx1K04yb2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HcUFrRzNheFF0TkNRTlBj?= =?utf-8?B?bTEyU2tKRWRRQTlUUFZvODFlYTJuN1dWa2xNN0dNQTF1STNMV1JNMjJZM3lB?= =?utf-8?B?MWo5R1F0VVI0MkdjQTlWK1hxRmZ0ckEzQ3hoY2dLQnJwTkZWL1N0bUQzaDFT?= =?utf-8?B?VEFTajN6UjVjRmJya1ZlTUJrN3pXYnNoNnlhT3ZKRHhHTitlc3lGa2Y2WmJq?= =?utf-8?B?TzhISExqTU10Y0lqSkZHUzVwZFlJNG9QMTgzWFFEUWIrZElRdExoek9PMmtK?= =?utf-8?B?VUZneXRvejFRcEtualNubUFTUFk5eXdWaS9pRWc0N09kOHBuZ2lFSEdNZ291?= =?utf-8?B?azByWlpYaEtIbzNpK3pPTW5wVE5RME1HME9JRkJSUVFZeHpNQlA3SWRVSTE2?= =?utf-8?B?YjhCNHpHU2NQOEdYK2lsbHRLaXl5bHIvaStaSTE1TDN1UE8ycTNRSCtlYy9m?= =?utf-8?B?dlEwSlJieVZSTTcyd253QUNRSExNekhKak0wYi85bEROK0pmd2dFVWVJQW1t?= =?utf-8?B?UUFhNmFqelVjYzYrdy8rY2lMMDZzQlRvR2pRdWljb0lWeU5Jc1p4akZFaEwr?= =?utf-8?B?ZlpaMExZeUV0aEJJbzRMOVFCUHVRaWJvWXJOL01mTytaWWoyUDgyOGU0RjVj?= =?utf-8?B?T2JWTTlIdUJXWFJZbko1bVRqSWJ1a3NPTVhRVTF5NXhtVUVWNFN2L3oyTVVx?= =?utf-8?B?R3duSjVDekVPVlNyK2NyemNhOFJCSGZZTkVpNzJtcDIyNWNhVjRQRVhqRzk4?= =?utf-8?B?UWVwdEtUWjNhb2ExSHVYcm5VRGJCRTA2NzZVWnR6N2VXQ3dPMnA4b2M1cXdI?= =?utf-8?B?RkE9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: 12656fb2-6a22-4c93-ca8e-08db293a613d X-MS-Exchange-CrossTenant-AuthSource: DM6PR11MB3626.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Mar 2023 11:58:12.1682 (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: biGnhkELB5mFWxSe3kPrqrcajjdTPhP09DObERwacf8cEwZ/UV7gfnCLWUI9tRskT8OVldxsMPnA7tZsdGobCfy63wzsEh0vfPE0eVy+7Ew= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR11MB5650 X-OriginatorOrg: intel.com X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Hey Suanming, I haven't been actively involved in the development of DPDK in a number of years but as far as I'm aware (and I don't believe this has changed recently), out of order processing from the cryptodev API user perspective is not supported, and for most scenarios I'm aware of (for symmetric crypto processing) it would not be desired, as data path protocols like IPsec or TLS expect packet order to be maintained. I know the crypto scheduler PMD allows out of order processing of operations on worker cores, when it is working in a load balancing mode, but it's default behaviour is to guarantee that packets/operations are returned in order to the user after processing. If there are use cases for out of order processing (maybe for asymmetric crypto) then I expected that at a minimum a per queue pair setup option would be required and possibly a completion queue mechanism might be required. Regards Declan On 20/03/2023 09:28, Suanming Mou wrote: > Hi Declan, > > While reading the cryptodev API and define docs, I don’t see some places > mention the out of order support. > > Does current crypto enqueue and dequeue function support out of order > mode? Or should we add a hint capability flag for that? > > Not sure if such topics have been discussed before, can you please help > to clarify? > > Thanks, > > Suanming Mou >