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 1DBD2439FF; Mon, 29 Jan 2024 16:09:02 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8DBC0402B1; Mon, 29 Jan 2024 16:09:01 +0100 (CET) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2088.outbound.protection.outlook.com [40.107.243.88]) by mails.dpdk.org (Postfix) with ESMTP id 599AF4029A for ; Mon, 29 Jan 2024 16:08:59 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cJ5BG2V36nx2sX/2MeoogL79UWMgImie5kmPz7k373HJ70Gd0oQwGh5uLPTJELfo5u0gcxdXimS0M/GytQIOkuMfC8BFz275ubWRp//zi0Ql9JebRV9zsNnPwJ6fqa0elJHjnAn0qRTevs7zt655Y2O/zkFtu4QeYVARZyJ291TQ04GElFKk1SqNASS/fyluBfUDrdsk+7L270wkkeI8ZWscItUN4t+hlaMTKu1x0vjt8AwJF0lI6+IBCF/1uz7xSbU/T/H8P15wnhp3nrntAi6ggQ1SuvzFFO8ULb2808GFc5BOLy2wgiyDAL0FDgtZbesW27BQidbcwsLpKYWcvQ== 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=BCCL4MwjhhhoGAMo3mx1+dhG2yR2Lor9F77msIZA8yc=; b=i4EFUZOkcVbRYQxmAj27ixU1iQnrVkm1Kfc3oxmYA8jqIqFS9e+T99DXl0ySrIQMT4yRyXv11Dt+fm2XbWTMPs19eHOZmZj5q3f0YybcOszwuBMetaNT8GPVe0G+ikYcuG+F1zUZO0iM2tdpnC4TJ4Ad8/9dcg+DpiqcKp9gZtwx74lunJ+HVOMbID4Ij+4yHO8+yr9MfLitL1nz8JFrCVY4iwqVsWAJh0uDgQ2TUX8frqadDJUguWRPr8nxQy0eI8moW0EcG17wIc30dNrST0JxXsGCz2Fo5QGWibW+ZbJ/6vix92+1vOG2sYbgQ1w44A4Z1vTZ0Vzx2ZjVwDl3QA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BCCL4MwjhhhoGAMo3mx1+dhG2yR2Lor9F77msIZA8yc=; b=MwcUwCFnaY7OV3ORn4EGkrRQRus7jxlwQ3/WSc2X4aSGW6E8blSp98PoxoBlNCtUGyH7CieKPmj10/NI26zMNjkfsaPhriL9RIHK9BK/0rU4C+m5fJzu6ddRIlOVSHy9zSumNLak5888uDEGGLn6KKOm8tG7jUfG61A9ELwQA/2MIafGQQY/Y7VYzYtuy0FpuMoPH8DwJyr3APmUyf1tZS+Bc8mqgPcFxbr/75nNo9EIO8gsdfjjNZTays+ibdnQpLIlVcCVQ12ytVEiLOKLzZ5EORNcXMK7A9Gbfz21P7esFffmOqpFK7Gyf3wVlCIX5SLrT54rXqXtBs6BMdyyDQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from IA1PR12MB6332.namprd12.prod.outlook.com (2603:10b6:208:3e2::13) by MW3PR12MB4425.namprd12.prod.outlook.com (2603:10b6:303:5e::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7228.32; Mon, 29 Jan 2024 15:08:55 +0000 Received: from IA1PR12MB6332.namprd12.prod.outlook.com ([fe80::5610:835d:9e24:6cfd]) by IA1PR12MB6332.namprd12.prod.outlook.com ([fe80::5610:835d:9e24:6cfd%4]) with mapi id 15.20.7228.029; Mon, 29 Jan 2024 15:08:54 +0000 Date: Mon, 29 Jan 2024 17:08:50 +0200 (IST) From: "Etelson, Gregory" To: Ferruh Yigit cc: Gregory Etelson , dev@dpdk.org, mkashani@nvidia.com, Ori Kam , Aman Singh , Yuying Zhang , Thomas Monjalon , Andrew Rybchenko Subject: Re: [PATCH] ethdev: add template table resize API In-Reply-To: Message-ID: <56337607-a330-0967-e99c-32a6f6e9f058@nvidia.com> References: <20231217093205.321082-1-getelson@nvidia.com> Content-Type: text/plain; charset=US-ASCII; format=flowed X-ClientProxiedBy: LO4P265CA0234.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:315::11) To IA1PR12MB6332.namprd12.prod.outlook.com (2603:10b6:208:3e2::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA1PR12MB6332:EE_|MW3PR12MB4425:EE_ X-MS-Office365-Filtering-Correlation-Id: 6020be64-d658-46ac-0976-08dc20dc35b5 X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Q6o7toYHkhY0MVeiOpfAmFXpUwAJp1oa+izC0czZIQFnFRnqiQ8AnuOXDJn3fcaky6iHSUc6d4yBpy80BWNGsUD8LWeTQZiN6fCdx/DDHBfZZ52nuGyPG++Ji0XFeYGEvnv46f8wv6bX4G5dcF+yDU3VV9Xxe7ra1388UB5K5kTC4zsv03K6lELs7zpkKlALam0/IDlqOq1R5pcxmatmv+q9ikHvwXrs4s5eCYSr6lFMXhXB84BXKN3t3J/DvZ6XhklmDpRt85m03kHHxfuQ4MYEIMgZM/itSajSIxaZvG4ufR3MA9c84ddkQO4VTRmuRuXielujWyA4VLmceLunmc7QANsBCtSzJjPpwHvTUbmzQdjiCw/H5KUcnKJsi7aL/e71GNSWSRrCIi96VDYa95YxZgkttvnfTffzftP0ScIbG8RE6fnvFFlxRNnGD67G3KZ+1TU+CwE0/5JmSlZD9mUvc8ivaHB+K9rCrKNw5W1n0a3VUa9ymksbyNy3SlbF463/79zlA1nGezPyhMptWYMVbhxj9W2ZDGrmstMjFwF+CHyHRMeVvxeCeXIuINKyKhunQ2dH/HsRZC0qbICun9nbri3VSunzvYH6duoq0J1mG31wjxbd9u4AwVWVtYWV X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:IA1PR12MB6332.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(366004)(136003)(39860400002)(376002)(346002)(396003)(230922051799003)(64100799003)(1800799012)(451199024)(186009)(31686004)(83380400001)(31696002)(86362001)(36756003)(38100700002)(6512007)(2616005)(6666004)(66556008)(6916009)(6506007)(6486002)(2906002)(4744005)(8676002)(478600001)(316002)(54906003)(66946007)(66476007)(41300700001)(8936002)(4326008)(5660300002)(45980500001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?D1C943X2yM2QCJL2aLArGOSLBCkJKyBUL81x67O38Z9vXewYCFgtl/eaSrfh?= =?us-ascii?Q?zqxHZClOfYTh63vgdye6HLTDN1dGEzmQQHhV2nAD+XC6o6ebgON/Tv6LlpP6?= =?us-ascii?Q?hgCSMdasQx3RvABkIrInCuW3bH+Pmk7IYS1F1WFlbPAZocMKct5+T3J1bXw4?= =?us-ascii?Q?Esjh4YHQYnpPWxWv+jT7hQafX++OkwZYIAYTkiXf2/DtWZyRA044TAo4L2f9?= =?us-ascii?Q?DQXm1aXIkhw/6GEPlq4o3tgKGmd6q4+toKZ1IFvlBY4lMvDsCywBpnZnKwx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c1slmJu2xkcB8SSikoRwzXp8M9A0KGSoM1ayFX?= =?us-ascii?Q?5X2X8xcsKFiX1+kY8yidNcC6KzGQHQ3sWLsvF7qlqd3yOxmL02ZNYKxd9/9t?= =?us-ascii?Q?9JPUlozJBFLGR9FVl24QtIFWPdVF/6hCzGJu5ILnbWh77dujbOsW/Z5JtARo?= =?us-ascii?Q?vkg4JM9einZCukFYWrSd20dxtPy+6czFYftrK2EvebLCKaNZsbT3/bU7zx+l?= =?us-ascii?Q?uO3f0JRB2vX220aB3rqs879Jz8HQ3BlAj1eNYejBIbeSpUIiNJRcC3wn33RK?= =?us-ascii?Q?Vu9Fy+aEWOT1Zh7uHQB/WINJzJ565bMwBB8I/kjhh0t5BpecDeOYhNTtLnxd?= =?us-ascii?Q?fBLGv4Igyn0S6j76Zc+58p6JFmZcA7IJ+o+cAlJOJcg6SIqNLm0JyL/TaLmN?= =?us-ascii?Q?Aex6TFf8c3T/b1zsfWPMPjE7Z/6Mf2YwVfCg4otcWS/ngTysF3x8syR507Jl?= =?us-ascii?Q?024U4/5TLuy5Ok1n+UE+nHLeA7GpADgg78YbW25wggBW?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6020be64-d658-46ac-0976-08dc20dc35b5 X-MS-Exchange-CrossTenant-AuthSource: IA1PR12MB6332.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jan 2024 15:08:54.7582 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ZarBOGIYdzWyP3euV3B5NMpjlfkjRJKyQ3vjkLRfcXQqzUadLSjGKWLQ82A64AkKa/WMbpC9yAnjQgLtCqbJbQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW3PR12MB4425 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 Hello Ferruh, > > Hi Gregory, Ori, > > Why we need three separate APIs, > rte_flow_template_table_resize > rte_flow_async_update_resized > rte_flow_template_table_resize_complete > > Why not 'rte_flow_template_table_resize()' update existing flows and > release resources related to the original tables automatically? > Template table resize API allows to add new flows immediately after rte_flow_template_table_resize completed. A multi-threaded application can add new and update old flows simultaneously. A single resize-and-update API would require to lock PMD for entire operation. For application with 1e6 flows doubling a table would end up with considerable down time. The rte_flow_template_table_resize_complete was added for PMDs that cannot differentiate flows created before and after table resize. Regards, Gregory