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 B571241C61; Fri, 10 Feb 2023 15:34:52 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 958BD410D3; Fri, 10 Feb 2023 15:34:52 +0100 (CET) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2056.outbound.protection.outlook.com [40.107.93.56]) by mails.dpdk.org (Postfix) with ESMTP id 9B0C2410D0 for ; Fri, 10 Feb 2023 15:34:51 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WmDmvoFDikNMMkFr4FNlWLNS+kz999bQhiXTHAnAciXdhtaI47TqbMCuMpMr/rbANfS2CX9WEcuglCg0be/9eI8kyek7MjsEyioQsC4fbEgPZpeop8deLmt683LammIO/L7XES+7P1kZ+WxAtY9OsbZBJqYkRHOT0EocnWrG07aFM3rKQiyPc8+eexwbhOZp4GexSOR+dkM6/cd+J4HsB3gvDZkFSKVDro+wIO2vLbuj5XW2CUYG2IraATtz+dO9BhuiZVmHBuh5s+6XIeWs6S0kZ1XF7Gwn2RwBsy+bdzA3YVDf2Oz9aZQMoTi02WF3utN0h6cIxA4dz/98K6olJg== 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=ocWQX266mmj/KaBR2WfYoZQ248aTA5mS6Cbm8L9RTkk=; b=IxnEV9iG4iCbsdA1Xnt2bJ+ASO3I4jxbnRybTK/+D31vG+W77zkaYjPj9Pv3MsZ2+IR38z66E+J/W5oDoCO0x+zCpVWtfja5W82SeSKZf+3PQKHoaUjA4qy1Ohlta1gOhKNKXhyvOTVXLBVIhGCg92KeEoVIAwFD2pkdqCrgITKnuvBY8MtS4Qa53+FOZ+VSfIO1ou4d8ShArCrme4sozQlVw8ginyVUM0WM6E/B4yJw8lCxejA75LDB6oaftGaYerc+X24VJA6Jh1c6jw3hztZ+sPeZE2iabcANvy4NZmMfbrwgNaL8lTon3Hql6Pc7R9Cf+bsOm6E1Q4vvXxWxgw== 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=ocWQX266mmj/KaBR2WfYoZQ248aTA5mS6Cbm8L9RTkk=; b=SV426nOdMMuv5r5DhPcl+WQu5+s7Bk+3ARIxCR2TjAVLoL01W3L0MF7Jdbplqk7EZvpc/wyB9U310C2LXlNmz7xQEMAl3oaLTnhgybclbSSu9laEIQhpBr0QSAyOWJQBv6wgrccUebzkgOxkoGx1ePYGTX/MPIfgGYa4uGZF/sM= 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 DS7PR12MB5741.namprd12.prod.outlook.com (2603:10b6:8:70::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6086.17; Fri, 10 Feb 2023 14:34:47 +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 14:34:46 +0000 Message-ID: <86b94eb2-1bc5-c618-f6a5-8d15c184e798@amd.com> Date: Fri, 10 Feb 2023 14:34:40 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH v2 1/9] ethdev: sharing indirect actions between ports 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> <20230207140206.29139-1-viacheslavo@nvidia.com> From: Ferruh Yigit In-Reply-To: <20230207140206.29139-1-viacheslavo@nvidia.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO2P265CA0003.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:62::15) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|DS7PR12MB5741:EE_ X-MS-Office365-Filtering-Correlation-Id: 70e1634f-80da-4e75-8eaf-08db0b73f4ee X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: PaRNCHNUhlzeGG0jMf+JEFjaWfJ0q6yOmgd/gIXJVjOK7/gK0xEW2bawt8TZbJ6+ZXRkL/RdcOloCjjq/sd1hoOLDywovTmQ4Xd5r3jGhh68G5PB4JSeocqkmUjJUqeiUG1mYadSw6Cm7ibhKrnH+LpPdHRo+1Z5rFJTLtipWtbXUEdnNmxSRxk/ENQyk0Ea/p8tyjNRn5veVaKAVqgrFYi9wlqOc7StQFapSx6u32QEvE8BO548zp9nYKlg9k2jJ/lX+673ZIjOMb5PVfaz/+hOdDDqHTDhiAEjw4BEqX4xL/z92Xm4xwmtMRCZ+tZyFVGUcwOxyyt/d16U+8a5Y9sxcybPJ/t55JwICuWnVYUE1GhA4KidVTmsDaj5+DfgEzhKtiET+iG5VAIaozs8BdcN7dUWdhJS6WUcMd4R/H+mS4BWQKHn0qUAnn144N/Te6pqoiRYUSh5VjA9S8t56Ttl5mc2I/p929ThflF2W5azeOOHmZSqsLZM0M/QSVUDX7dbIITK7Vz10MboKmfg6BJQQHZnAbqnScym9bKnWzdRQw10xrVCED3piAovd3GskF0yMXrCnFjKkLDqPw/6chL5uClZlGluuXBaMr/edV5RjWX779ZmSzVh12xgYBfsoyTWlU5iySV5+4eLhn/8I0LVaj4fXrjUybFwfOUZI0tVHYBowRk9y8hXUHZMR849MFMKkkBTfTx4vYgVWrz/9cX6jiBbvwrMtPv9akFYzNE= 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)(396003)(136003)(366004)(39860400002)(346002)(451199018)(31686004)(83380400001)(2616005)(478600001)(316002)(2906002)(6486002)(38100700002)(36756003)(44832011)(66556008)(8676002)(8936002)(4326008)(6506007)(41300700001)(5660300002)(86362001)(31696002)(26005)(6512007)(186003)(66476007)(66946007)(6666004)(53546011)(43740500002)(45980500001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?T3NsU3BSR25TZXNzMjNrSDRBS0FRZzRLSUJkRUJJTG1reFdCUXBJYXZSUndD?= =?utf-8?B?NHFHY0VsRWs0QjhsYzlUQlNGdGVUd043c1dKcEliOFY3U05TTUJTK2ZZaXdK?= =?utf-8?B?a0hwQVlnenkzSGVrNXhxaGtPM0ZORG9XR3BicHFuUlhBSlJwSGtEWCt3TVpM?= =?utf-8?B?SmFxdmg0bjFCZVovYTV2RnZUVW54dTVldzBpQTlrZExWT05nellSOWgxWTJj?= =?utf-8?B?UXJHYVBRc3VLY3JlYUptWXVwMWp0UkE4anpvNWthTUs5WnN6d0hZNGloWlFW?= =?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UV1eVUzS1dDMS9YNmdlRHJzMFQzUXQzakNTMmpoaHBL?= =?utf-8?Q?AOLQH9ou9zWIU0kPhPUen5Hpj?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 70e1634f-80da-4e75-8eaf-08db0b73f4ee X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Feb 2023 14:34:46.4145 (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: xjSSeZj3Vx4BbadSBE0UXa3R7HRyY6EixZSUoMtgVaNvpTt4MzxTgdGZIK7J/j2B X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR12MB5741 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/7/2023 2:01 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 Hi Viacheslav, This set doesn't compile, it fails because of some undefined variable/macro in driver code. By any chance can this patch based some internal code? Do you want to separate ethdev and driver patches into different sets, so ehtdev part can go into next-net and driver part can be merged to mlx tree afterwards.