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 B4D7E41F54; Tue, 29 Aug 2023 12:19:10 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2FD5B402CF; Tue, 29 Aug 2023 12:18:59 +0200 (CEST) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2054.outbound.protection.outlook.com [40.107.94.54]) by mails.dpdk.org (Postfix) with ESMTP id 62436402CF; Tue, 29 Aug 2023 12:18:58 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GXXdmneK4wmAWSpu/G3T9Ci5Fc4aOai2lNT0QLPlr45qvx4VBbnYeavU2rr4+uudGfKA9D58m8VHodPw4mur/zd7HSekUNSTxEiBOsk/a4mc3xMOUhKtrBk4rfp0Rrz9FtDPqysoSVZnXrY2LBWZDjLHkHarnli7l/rWTMhPJAVWsm9c3VcsFj+ct7UN5pEuHS8EnQxf8LFkHmmEqn93fuScq3bjblGnk02oTHCjwHfx8m4UfFRxJwY3MD765AlRtAskg1xUuW7U5F+sTDqQaLGgNMRBIcDS0rDMue8+avZK51gDIFsDzKacnN0VQ8TdfsSgNFhHq9L4RsOOFWXvVA== 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=E203XvLLl7SOHAn8t6pCI5cbYo++TMqzFBaEnmKw2Sg=; b=cWG1ZiHpSCk2guSFhogEVt/p/NgVUYKisr9TCMDpQLe2WaL47cAfiijzbTuP1Xl53rcAsXOBPmyDCIn1VFsrt7DlYApQ5FGFXGXgCaJIdhKVWUayQrKwPDoIA1VlrAJgqYe+zjm9hZdWnQ3gLrq2S9D45454gcIHVAkQxSjZo80aQSVqIfcO/FzzI6W+geJA1rrCtocOpHUTq7GF+w9SRnFVQY+wVdH4rSbjYzYi27LAzLmk6AUokC4D5Uo/rrnc+M66ndFHmzmdu7nq3yg02mANsLhTTvyN0C4HDKzNq/s28lqdZLQKP5S6NQXA0vaGQUTPJlZiEAiJFDEJ/EL4Hg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=E203XvLLl7SOHAn8t6pCI5cbYo++TMqzFBaEnmKw2Sg=; b=geBVSOfe9E7P70g5MwxUWHeYww0zJP8kHTs+OCVS1h3AJ8ouZm5lO+VjJPjcaklYV7+iXmfwMD+Ky4XeNvCn1S7qzgyUeBjRLjzf64G+oKs+WiX2KBQO7F3AtrQHFbHiqBxcc3jlWrhcSzbfYNMCX1hTymrg/CS2J13jDgv6TZg= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) by BL0PR12MB4881.namprd12.prod.outlook.com (2603:10b6:208:1c7::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6745.18; Tue, 29 Aug 2023 10:18:55 +0000 Received: from CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::49e9:2bf6:7f06:bbbd]) by CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::49e9:2bf6:7f06:bbbd%3]) with mapi id 15.20.6699.035; Tue, 29 Aug 2023 10:18:55 +0000 Message-ID: <5228976a-5990-bc5c-28d9-b2774abbb783@amd.com> Date: Tue, 29 Aug 2023 11:18:09 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Content-Language: en-US To: Jerin Jacob , "Dumitrescu, Cristian" Cc: Ori Kam , =?UTF-8?Q?Morten_Br=c3=b8rup?= , "Zhang, Qi Z" , "NBU-Contact-Thomas Monjalon (EXTERNAL)" , "david.marchand@redhat.com" , "Richardson, Bruce" , "jerinj@marvell.com" , "techboard@dpdk.org" , "Mcnamara, John" , "Zhang, Helin" , "dev@dpdk.org" References: <20230802173451.3151646-1-qi.z.zhang@intel.com> <98CBD80474FA8B44BF855DF32C47DC35D87ABF@smartserver.smartshare.dk> <98CBD80474FA8B44BF855DF32C47DC35D87AC2@smartserver.smartshare.dk> <98CBD80474FA8B44BF855DF32C47DC35D87AC4@smartserver.smartshare.dk> From: Ferruh Yigit Subject: Re: DPDK community: RTE_FLOW support for P4-programmable devices In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: LO2P265CA0194.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:9e::14) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|BL0PR12MB4881:EE_ X-MS-Office365-Filtering-Correlation-Id: eedc493f-d1f6-4d79-0a94-08dba87959b3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Kn0dK0IyGcwGJAMoOaGpRTmWSX5SzrmiZ86ZOhQ4A6Yx7+eU78YPYnhjNFJjbi/hTEMRx3XT+j6fAp1YuvqlSH+t1dYkVw+8KBa2IdMnHkcTq4lphAIfFtFbHinNJGdk8SWTL3x983aSeAW+EWut37uHu/AnSXSav/zLm5i3DsUgf/pyYSYHgUzbf92XZm7qYV3Jefixi++b12s9KmaQmy1BnhZj3X9AaUQEteuzQ3rG5LWIadma9le7JvSoFdlnJGnUfxVcaA/rusVIpePX5e4PdEVl7IEB1E3FYqVRssc3bFF39hSnXHr1lvG2K8kV+pdO7jFs6G/x/Fzbwh25yMoRseMRiXgsxxbuJgjU9bqZO8umHPWAjCjBGsni4FuYhDJt7PvNC7sixQOe3SdkKA/LmC5DD/gPPgKbxRIkAt7H2dR4y00Cco/Ws/GQIwRT3ZltOZk7KNCFDN6rSRm2L4O5w6IS0a1dSterJRniGpoSfNQHKehE0kQPgb0SH6svS1SuACbtuk12I+GBLJeahRnrgdYz7DU4oUzYgGSpE1BN3qQ9F8+luHmu4My2LS8o4U0FktljfLea6G3hOmI3qrQDVK5AFbo4OLAIT1JmM0OtlXUt8659T3jMQ1MldBvObdDQYJuiZCc9VhblVSldAg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH2PR12MB4294.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(39860400002)(136003)(346002)(366004)(396003)(376002)(1800799009)(451199024)(186009)(6512007)(38100700002)(316002)(41300700001)(4326008)(7416002)(2906002)(83380400001)(31696002)(86362001)(2616005)(26005)(36756003)(5660300002)(44832011)(8676002)(8936002)(6666004)(6506007)(966005)(6486002)(66556008)(66476007)(54906003)(66946007)(53546011)(110136005)(478600001)(31686004)(43740500002)(45980500001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?ZGhRQktoQy9reUtoOEg3NmxyeFJMWjBLWUJFUjVGM3ZJRWR3SHNaNVdmMnF3?= =?utf-8?B?VUxXSklMSVIweHdyOHZReEVqUUkzRjFLS3V5ZHRhdUFrbS9uOENNc2hXcGRY?= =?utf-8?B?MjBkV2d6RnJEUGsyYTdya1dvTWY2QlBodTE1b0RyR3h3Wkc3UW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21vTFp2cW9vUERjTm5BQ1lZTmozYWR3?= =?utf-8?B?VGVYNWpTYmVqZGhYUVU0Nk50TTVpanZJa2xhOVJodWc1L0lENTBRL04xelpz?= =?utf-8?B?bVlUYjlsRlptb0xjM0tKTS9KamJ2c004MWZmZ2tjTnowL0w3dnppTHhsaVg4?= =?utf-8?Q?/RukCDEhq9lbqQZoPbkLhNPKO?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: eedc493f-d1f6-4d79-0a94-08dba87959b3 X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Aug 2023 10:18:55.4812 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: rYC/PFlVk+bn0unvgTDQ/WgaLisW4jVH/bjSlAtp4DWDEJnd34NW04Gdwxgg/wSC X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR12MB4881 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 On 8/29/2023 8:38 AM, Jerin Jacob wrote: > On Mon, Aug 28, 2023 at 9:43 PM Dumitrescu, Cristian > wrote: >> >>>> We just set up a community call for next week to discuss in more details the >>>> proposal for RTE_FLOW extensions to support P4-programmable devices >>>> https://mails.dpdk.org/archives/dev/2023-August/273703.html and look for >>>> ways to converge and make progress. >>>> >>>> All the people from To: and CC: are already invited. To avoid cluttering >>> people's >>>> calendars, I did not add dev@dpdk.org, so if anybody else wants to attend, >>>> please send me a private email and I will be happy to forward the invite. >>>> >>>> Thanks, >>>> Cristian >> >> Attendees: Morten Brorup, Jerin Jacob, Anoob Joseph, Vipin Varghese, Qi Zhang, >> Cristian Dumitrescu >> >> 1. Ori (RTE_FLOW maintainer) and others were not present, probably on vacation, >> hopefully they will be able to attend the next call on this topic. Ferruh had a last >> minute conflict that he could not avoid. >> >> 2. Cristian presented a few slides (attached) with the problem statement, current >> RTE_FLOW gaps for P4-programmable devices and the list of current solution >> proposals. >> >> 3. Everybody on the call agreed that the P4-programmable devices from Intel, >> AMD and others need to be fully supported by DPDK and that there are some >> gaps in RTE_FLOW to be fixed for supporting these devices. > > Personally, It makes sense to me to have normative DPDK API to send p4 > runtime message to the > ethdev so that we have "vendor neutral + DPDK based" p4 runtime backend. > > I prefer to have specialized ethdev ops for this due to the following reasons. > > # If the ethdev has both real TCAM based HW(for existing rte_flow > patterns and actions) and SW agent to receive P4 runtime message etc. > Typically, it needs to take a different path in driver to talk. Assume, if you > have cascaded patterns/actions, One is targeted for TCAM and other for > SW agent for p4, one > need to have serious amount checking for dispatching.It complicates > the driver and forbid to have > driver optimization especially cases for templates etc. if user making > rules for both category of HW. > Indeed I am not against dedicated APIs for P4 runtime backend. But assuming there is a dedicated rte_flow item for P4, how it is different than dedicated API in above scenario? If driver detects P4 runtime specific rule, it can bail it out to SW agent. Can you please elaborate the complexity it introduces? > # All we need "char buffer//string" based communication ethdev <-> app. > Yes, and both a dedicated API or dedicated rte_flow item can provide medium for this communication. rte_flow one has flexibility & extensibility advantages, but maybe not as straightforward as an API.