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 C094943B01; Mon, 12 Feb 2024 15:48:17 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AB610402D9; Mon, 12 Feb 2024 15:48:17 +0100 (CET) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2089.outbound.protection.outlook.com [40.107.94.89]) by mails.dpdk.org (Postfix) with ESMTP id 46E25402D0 for ; Mon, 12 Feb 2024 15:48:16 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GkYa9AZSvEbKlOpUclVmnKITwGwkm+rPFQzXjqG6ZCy0GQaIIANS5DxDqJbepyPQLM5/U1GuW0ZddC/Sgfe2BjLrL4K9soszKrSQzatgq2sA6j/ahFVHEflZI8qO0ZCUVkfQjIM0wsjeZ1IXU5SAz7OvAIsqeZCr6WpH+yxuq8F+eeZjJQWWjQliQBRmy5fNokgW/Mm2OUKd9bu6lU19Sg2lKX7mXvA2u/tGpSHNYmNhVPL54nKm8B/6qE58KTDku1HdvKgu5x9Lj5bSBfGQJy9kMQU6J/fMQgDpegRxyF88F0txETFm2B4DWZ0gA+sq8F1T3VkTGCEkaVnoQ2a2lA== 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=QXCbCtShaW4LCsaMghp8KehdEkprQ6d/wPeQVXJc8Us=; b=IvsRyjs9bY4Vn0EIjnBdqEzySI4N7bfIZmykl0HGub73fnYjKBB7wh2NXaTRgVUcwqzmROigZE+Tr38NJAOBtsWM13fjP7yJyrOsT0Tj8YFVMJeIOiauCiZqmpDmHXr8CISfPE9KK6u0/nlKc02ymX5uJCjAWCQLL9Y5dJU1l5OVWrDSQJWLjCqsRjBt5VIhCEFSBZmv8MERjBA+sW1xBdjcSKpELgoWq6zl5LnzMf3n4sHrcOT96E8AUQ14ABr4DQNn0cEIXOgDhNcNatemKjwS/HqeO4DoJV8TgyFnsus4mc8SgZdo25Tj5ao2sInVtiy9otAVu/RhUbwBC6bMzQ== 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=QXCbCtShaW4LCsaMghp8KehdEkprQ6d/wPeQVXJc8Us=; b=bTkdzkfrSHbjuAvGMF1TY4xJE4tgaaaVR4kVzqgksFBlrT+TkruVlIESw1QmJbTPe49zrNro9JISHM9lt3bV25ZUsDSf8MXVj7W0zlSb9zA+TY1AhY8h/Yuivk1OOUFNPYOOu4g3iwOvfg0OxqFygZkSak3aUdpA75TLiNcZSkw8q9AAmSnXpZSRxNZZ5xUv8R7y+KassXLOaltNnNPYEJLifSr8l+VxzNrIsWmAWn11h4YdOYuGZUvSVSRTwAwgQsCJIMC4DoeaijNNs2jN5DgQdwYfmIubweds8Wve3UkE1wyLC7YJM/0h0oBfOprbhSggjdyF4O/sGFB942G7Rw== 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 IA1PR12MB6530.namprd12.prod.outlook.com (2603:10b6:208:3a5::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.14; Mon, 12 Feb 2024 14:48:13 +0000 Received: from IA1PR12MB6332.namprd12.prod.outlook.com ([fe80::22fc:4326:d657:92ad]) by IA1PR12MB6332.namprd12.prod.outlook.com ([fe80::22fc:4326:d657:92ad%7]) with mapi id 15.20.7292.013; Mon, 12 Feb 2024 14:48:13 +0000 Date: Mon, 12 Feb 2024 16:48:08 +0200 (IST) From: "Etelson, Gregory" To: Thomas Monjalon cc: dev@dpdk.org, mkashani@nvidia.com, Ori Kam , Aman Singh , Yuying Zhang , Ferruh Yigit , Andrew Rybchenko Subject: Re: [PATCH v5] ethdev: add template table resize API In-Reply-To: <2811388.XrmoMso0CX@thomas> Message-ID: References: <20231217093205.321082-1-getelson@nvidia.com> <20240211093053.397469-1-getelson@nvidia.com> <2811388.XrmoMso0CX@thomas> Content-Type: text/plain; charset=US-ASCII; format=flowed X-ClientProxiedBy: TL2P290CA0023.ISRP290.PROD.OUTLOOK.COM (2603:1096:950:3::12) To IA1PR12MB6332.namprd12.prod.outlook.com (2603:10b6:208:3e2::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA1PR12MB6332:EE_|IA1PR12MB6530:EE_ X-MS-Office365-Filtering-Correlation-Id: d36cb070-e278-4021-767e-08dc2bd9a380 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: vevelFDY8uJldQ591WRQ4xgos4bQXYc67N/HWZTbGq2swlX64XD1LEY+IND8HV2utnFdXagAQaEa1BiHlVejbs0aNXE0r3yXqg4C+qWZNvE+yFW5XLp/rLD4mbn2JdvjL0CWAOj8CE4z1JV1gBT641QCg3pKOhwF835UeIACzuVF8H+f55wqLFlDm77NT1mezpa/d/A/hlZyut0GxzO+g6ZUJFtYL6/41ZHyeKuz0YoZZbRUzYg5lfY00w4GnU7+15C53OASjO0xa8US4FsxTTgTZhBhRPSt/Z7UyetRjbLxLgRZCwrKtPmzGzfRANRXXvLhHpjShmy0X9yCUpWR/T8lbpVYJnPw53CUEMcinJcgOMCj1RDK5cFy8COKyGHxTOuNtgNQgM5Da6bXHMbPsehmq2nWjHxS5SfSAJ0ycmmzOqPfI8AQsJYeJYWS0Edv5QOJLKCuvYqe+DWjMN8c43gfliOi7IVcgzCORy9J7uyq0T63sx7QMkmXo29fR9qfaDOu76Ve6omDf+1I5vHWYlXnm9uqkVMVzMBgmpqy3P5dKoSkyzbV2w2ZtJk9UufD 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)(186009)(451199024)(64100799003)(1800799012)(2616005)(6512007)(26005)(6506007)(478600001)(83380400001)(41300700001)(2906002)(5660300002)(4744005)(6486002)(54906003)(66476007)(66946007)(66556008)(316002)(4326008)(6666004)(8936002)(8676002)(6916009)(36756003)(38100700002)(86362001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?55kbCUZ6ehL4tsjuAsnskOk+LxR0MdyKHlfQvz/7h5ojbBtbkl/150Sy7g/V?= =?us-ascii?Q?Ui17b47349pxhLDgk7Y+jDHb2a0HQ+9MFnd54DTQytu1+/Uiswua5VcNce4c?= =?us-ascii?Q?OEJ2W0ekCqdSK1ed204YT6S4+m0kKyygeA+o1Qrf950EbTQVfoXNypgnWAV+?= =?us-ascii?Q?vLNoIwN5IHt5Nt5vdolYwSwXg6W+E+3nnENhnt6QMXxWXF9DA7PSUAesnJtt?= =?us-ascii?Q?NsFj+pE8oCUUOwQrsV5LbhO6xMcg/wtlbyZ8igyMsbTMF/koRysECRadW1S3?= =?us-ascii?Q?e/fcjyhRLxK2YoYwiAlYgY2jOoyL+Mlpf6mAoFu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UzrIlzam9I+QkEkzSsx+drk4NLjB1z1haICBhPxcqpInx?= =?us-ascii?Q?xp1936bmuZf1EVNW3C28VvljRPsQF/huoit1hjc//2hnjWh3faH5jUSkJ4tL?= =?us-ascii?Q?azdnoyo/drYNyz+kPE7k9WKV7vVkAhsvSWflYD4gb0zPKKaztT0NBonwGt8e?= =?us-ascii?Q?LWoT4Szbl7lROtrLpbnQkdj1cRky3I4pP5yjwApETNL+AWCVLffP7wOiqArO?= =?us-ascii?Q?kTiJM1McdlxhLjC+4Tt6gI4btGuUsSctMupz88fNlXf/VXjHlrJpm8tXT9IF?= =?us-ascii?Q?Tl3b8B29eT69JPLUPtR3FHk63FS8Cq2qAXKI3W0j+I0vErDS28ixggFNlnxJ?= =?us-ascii?Q?7N5bipJOZHZ2+zjEUilefwHtK1NHXe3azyOOlWGk?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: d36cb070-e278-4021-767e-08dc2bd9a380 X-MS-Exchange-CrossTenant-AuthSource: IA1PR12MB6332.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Feb 2024 14:48:13.2262 (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: R2+o8j0gLIbOj4YdSGwdnOfLOjkbTVeuO8gGNwwgcwfiuq9C2uK0AvcY/val0swsZEBOf7TWnFdl5fj01H2Phw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR12MB6530 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 Thomas, >> + >> + # 1. Create resizable template table for 1 flow. >> + testpmd> flow pattern_template 0 create ingress pattern_template_id 3 >> + template eth / ipv4 / udp src mask 0xffff / end >> + testpmd> flow actions_template 0 create ingress actions_template_id 7 >> + template count / rss / end >> + testpmd> flow template_table 0 create table_id 101 resizable ingress >> + group 1 priority 0 rules_number 1 >> + pattern_template 3 actions_template 7 >> + >> + # 2. Queue a flow rule. >> + testpmd> flow queue 0 create 0 template_table 101 >> + pattern_template 0 actions_template 0 postpone no >> + pattern eth / ipv4 / udp src spec 1 / end actions count / rss / end >> + >> + # 3. Resize the template table >> + # The new table capacity is 32 rules >> + testpmd> flow template_table 0 resize table_resize_id 101 > > Why not just "resize table 101" ? > That tokens pattern matched template teble creation. I'll update the patch.