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 3384A41C62; Sat, 11 Feb 2023 00:02:19 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3BFD640E50; Sat, 11 Feb 2023 00:02:18 +0100 (CET) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2085.outbound.protection.outlook.com [40.107.93.85]) by mails.dpdk.org (Postfix) with ESMTP id 8D5FD40E0F for ; Sat, 11 Feb 2023 00:02:17 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Oqib+uzng61IBBZm/BSF+3J6p1vkV4IneBWCYGmCk5wWeQLCu2gE2xbrblUJmJIwYpjhdEkJ5bpK40uP1sJvuJAhrl7sSF/EDwwmFa+p0De3QKS07PrrdIwF52Wa4Q2eyDxcedq1yvx8yaYchgkWNyW+PHNcmFdARh4lvbNGN/6G2JL0sf/GDMZxf8Pj+gWdlNle7CcVniWe1dr3p7IN5gmq8TCdKpAfTs4aR0IunNivfUAE9MZfe1F4g4Ba49ZYBSLQx4jXyt5qLJ5cHZeiysU7FD7coNKcPNQt5QwtYnNMKi8XrlLoN399guqJOjZEweGN4ix3H823po/m3Zwxjw== 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=fcDwdmx604kwg7BbQaE4oZcxQAGRmbvlX0O4Ynk91vg=; b=PSJda4jo55L7X5q/LFEh+dRpJARgJJsstXfjbTSOThjgSg/WqIS5NDtabdA2eMk84OKEmvyr+1+EV+B40n0Ppgpxlr/PQtzl0V1SSQxzYJvoDA8EPvoWJk+ixvgvWS2lVgIZ6ZC6GpA9sFMXmmHJuqO9l2iGE+tvqtiG21PAxdUHJq26HYhVV6M4rk5q6XIkFK2e4KbKkPZ+hdlx5vkFjfI4n+e812txYc4QG0owWn5RjGcFAI6010z9ZxLp40WQNYkMWFn2h8tlwXBdqVtWK96E86dj1tq9tfarEt4zuRQL/SgB9zqbKxpbEdrQLxW+gLdyL4WtX7Dm7urnznzNZA== 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=fcDwdmx604kwg7BbQaE4oZcxQAGRmbvlX0O4Ynk91vg=; b=VYcEdJ35RaMqpzWK3ijSGo9qMOg9B6YELShllVRrOvHEVV++EzMp8tUlIUbV/hssuD4Yw3aSr1TYdsm8BfbUR/z2VqYGrqcIed5BOrWi7GbLS0IVOPf5c7dwzJ0VHd0BPIZJzui+6CPEHZNUU26EsQXY5Kx/cvRLDbmo4Da3DE8= 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 MN2PR12MB4406.namprd12.prod.outlook.com (2603:10b6:208:268::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6086.21; Fri, 10 Feb 2023 23:02:15 +0000 Received: from CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::3614:22ed:ed5:5b48]) by CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::3614:22ed:ed5:5b48%8]) with mapi id 15.20.6086.021; Fri, 10 Feb 2023 23:02:15 +0000 Message-ID: <2eb860a7-c70f-bb3d-66de-ffbb26d3d835@amd.com> Date: Fri, 10 Feb 2023 23:02:09 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH v3 0/3] *ethdev: sharing indirect actions between port* Content-Language: en-US To: Viacheslav Ovsiienko , dev@dpdk.org Cc: orika@nvidia.com, rasland@nvidia.com, matan@nvidia.com, arybchenko@solarflare.com References: <20230206095229.23027-1-viacheslavo@nvidia.com> <20230210151709.1619-1-viacheslavo@nvidia.com> From: Ferruh Yigit In-Reply-To: <20230210151709.1619-1-viacheslavo@nvidia.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO2P265CA0016.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:62::28) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|MN2PR12MB4406:EE_ X-MS-Office365-Filtering-Correlation-Id: 81aa54a7-7f03-4c29-a2c7-08db0bbad9cf X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: SWeTxmIX3MsCCeUaTh8kywLnBxhsUz9PaqxWakGUc1nzrcI0dhKPp1sw3cZbmSpauP7BsyjfrCsOBTtQJJUJn7kxEgsvLBGu6Tcy53PeOTaCfiiFDzyzetCpHSfub+LhDtJ1DyZ1pdDEBGVVoB13NgQ/mvEFlEYElms3MbSTbVgXlVFeshwPmVF/6ki8jxAbSZxQPkDxHbl6mtdCxyU6DUaOahfixfSmr0nZi5GOqYpzkQXcFb2pE9VYAxIhuSFYfzge9nZMRnS/gHgZt+NU+TgF4wj1qaFUtwrP4+o39j/MqJNwuHMullLtEx5vqWzlcxTtiCZ/v/9bTKRLLreMXBuV3Wqbd7fu/QTz5liWVd9iGY/vhWHEETpXj7FneaQDHpjclIrFAEwxJCGZrPXIEl7mt//a/T7gIBzeHfK+rRXMQO9PNzQkeaQuw3W2RJcC5aWmL4GhfcspQ01yl+5PvIvKHq7w9sDhUSMFL/Qrq0VPnoqR7qton//ZjbIlyTmrydBmCp4tomvP17ojW3M3C0vKWb3YU6IHar0P/ku2U8lAncrP1QCdDTZf4ICKFW+iTCZ9Hkl6yPvSbAKesZugE6AWMeCItIOWyax9eSqz76tNpFNSv7vFH/Is5ixyooXAm4M1O1TZr30/8V126hPP0ym7vU2LmHu4b2DZokto4+YNsVKyk7LLkmUVWI6wsHNtw+MZPKMI84FzOg6VJN9Yq1hPobQ53ULq3A/33/Z5vFU= 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:(13230025)(4636009)(376002)(346002)(136003)(39860400002)(366004)(396003)(451199018)(83380400001)(66556008)(66946007)(66476007)(316002)(5660300002)(8936002)(4326008)(41300700001)(6666004)(478600001)(8676002)(6506007)(26005)(186003)(6512007)(53546011)(2616005)(6486002)(36756003)(31696002)(86362001)(2906002)(44832011)(38100700002)(31686004)(45980500001)(43740500002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?SjhFdzhnN2ZGUVJMTHNlYVdYRGJHNncwbWMrc2xnU2k5VThrT3dSSUs5ekNG?= =?utf-8?B?ZkhrWDNocEFxeHFON3NYc2svNWxDaktRVGlHTHVBaWRqZTJNa0lHZDR5a1JP?= =?utf-8?B?SmNxRGQ5dzBnVlBSWVJpbVliNHJuRE5WN2docnJNQ3BqT0F5Mi85b0JRT3ho?= =?utf-8?B?NjVLaEN4YXBrYnYzOEF1Z1pqWVFUNGxRNmF2R1pkN2Jpa2VtaTVZUEY3UGZS?= =?utf-8?B?UEU4T29XWXlhMWw4b29GSUZZTXlMSUNT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-8?B?UUsrVjZPSEhHNTFjWVpQTzZlamZObVZBUWo5dTQraEFFclRnOVVPelIvZGJ3?= =?utf-8?Q?K8r8A428PnRorpbrvc0e6/ZX9?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 81aa54a7-7f03-4c29-a2c7-08db0bbad9cf X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Feb 2023 23:02:15.1174 (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: p1Lzo4jBFwan3x34ZU5j7Yp078gixqlyqZJOe5XCn5/XQQAENeNPt7lwN2zJsIgh X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4406 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 2/10/2023 3:17 PM, Viacheslav Ovsiienko wrote: > The RTE Flow API implements the concept of shared objects, > known as indirect actions (RTE_FLOW_ACTION_TYPE_INDIRECT). > An application can create the indirect action of desired > type and configuration with rte_flow_action_handle_create > call and then specify the obtained action handle in multiple > flows. > > The initial concept supposes the action handle has strict > attachment to the port it was created on and to be used > exclusively in the flows being installed on the port. > > Nowadays the multipath network topologies are quite common, > packets belonging to the same connection might arrive and > be sent over multiple ports, and there is the raising demand > to handle these "spread" connections. To fulfil this demand > it is proposed to extend indirect action sharing across the > multiple ports. This kind of sharing would be extremely useful > for the meters and counters, allowing to manage the single > connection over the multiple ports. > > This cross-port object sharing is hard to implement in > generic way merely with software on the upper layers, but > can be provided by the driver over the single hardware > instance, where multiple ports reside on the same physical > NIC and share the same hardware context. > > To allow this action sharing application should specify > the "host port" during flow configuring to claim the intention > to share the indirect actions. All indirect actions reside within > "host port" context and can be shared in flows being installed > on the host port and on all the ports referencing this one. > > If sharing between host and port being configured is not supported > the configuration should be rejected with error. There might be > multiple independent (mutual exclusive) sharing domains with > dedicated host and referencing ports. > > To manage the shared indirect action any port from sharing domain > can be specified. To share or not the created action is up to > application, no API change is needed. > > Signed-off-by: Viacheslav Ovsiienko > > Viacheslav Ovsiienko (3): > ethdev: sharing indirect actions between ports > app/testpmd: add host port parameter into flow config > app/testpmd: add shared indirect action support > > Acked-by: Ori Kam > Series applied to dpdk-next-net/main, thanks.