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 E34F743258; Wed, 1 Nov 2023 03:04:36 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D230641153; Wed, 1 Nov 2023 03:04:36 +0100 (CET) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2079.outbound.protection.outlook.com [40.107.243.79]) by mails.dpdk.org (Postfix) with ESMTP id 1206B40294 for ; Wed, 1 Nov 2023 03:04:35 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IdSYP+4Nx8vo3/TZcvUvJOKK+LIubAP1mBNsKpNrTvivUZY0eOsbU6GAyp5WqK7+e/NDb0koaobKkLumXGlUNgvdygUhdyHnZ5NTGAzx/Wbh+u2Q6VUqdVv2qJfBnJsP4fuda13gbouArXy1UYYh78MAgqvXOcy8O3DghmqmdAgynDnHRcm8azENH8JhVtvfwvy1bhoJSSbXt/fIxIYjsbmvTnFUxuOg2KbvHku73sU1uGd+0lVPeM6n2JiKlJhQoROyGY3O0oaS2TkvM8LR/iTMlwo9rxM5aQ5bPsK/h9TS2LLej9+hKmrPpLNfJK0YvJgDv+qEtAat3FO0iH7b+g== 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=/qujoZ1E6DvuU3uX1Hd7wTSKR73FRvQpQvgzfpKr3ZA=; b=XFrMHNAsg0R7UANUSz6C14WNcM2qS5rN8RHQIBm0gaJmWGCDwlLKvFbj52QoHF94NYGiXXsOE55+iWZJdSdutyF4PkiC2HjtZyy6y8rohvvTKQ4D2TA77O5LHuSulWaCGeXuArwNUdCl2HaN4NXBSa1sGlZg+UKey/qWMSkC0Asz8q5+nC1rYc09LBzRwKo4yrPP5zRgjreDQ0KuCbGyQG67MKoSVDLjyj3OlGv/abanoS4A8PJ8CrwK3rRJZaSFoKUBBCeJGdKClsR5NVA4BoiA/pqjc9n9PDJ3YPwSBl2zk6QjUrgVKcXXilqAf+tx/8NHvTS5Tm+TsQONXIBWdg== 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=/qujoZ1E6DvuU3uX1Hd7wTSKR73FRvQpQvgzfpKr3ZA=; b=qizwvmcbS7nEhl1s6qcSyQleEB2CxvAhf/DteJOB5rKjpweX/pgx56m1Y1fKvuDFdsSN9lo/zHIMr6Y4QqIHGOCX4L6qD98jW20k6gLnjrFXrpWJCcquyLDO64Qx1Ybo5K/NGpGg2NcNGSrg0Tvoqr3x6ZqwhwEn58JLLNOJsEE= 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 LV8PR12MB9452.namprd12.prod.outlook.com (2603:10b6:408:200::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.26; Wed, 1 Nov 2023 02:04:33 +0000 Received: from CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::2569:edb2:670f:816f]) by CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::2569:edb2:670f:816f%6]) with mapi id 15.20.6933.029; Wed, 1 Nov 2023 02:04:33 +0000 Message-ID: <5e911d5d-1d64-479d-b37b-c38828f98114@amd.com> Date: Wed, 1 Nov 2023 02:04:30 +0000 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v7 7/9] lib/ethdev: add API to get RSS algorithm names Content-Language: en-US To: Jie Hai , dev@dpdk.org, Thomas Monjalon , Andrew Rybchenko Cc: lihuisong@huawei.com, fengchengwen@huawei.com, liudongdong3@huawei.com References: <20231027092836.445224-1-haijie1@huawei.com> <20231028014611.4086500-1-haijie1@huawei.com> <20231028014611.4086500-8-haijie1@huawei.com> From: Ferruh Yigit Autocrypt: addr=ferruh.yigit@amd.com; keydata= xsFNBGJDD3EBEAC/M7Tk/DfQSmP1K96vyzdhfSBzlCaGtcxNXorq4fALruqVsD3oi0yfyEz9 4YN8x7py0o9EL8ZdpOX0skc0AMCDAaw033uWhCn0GLMeGRKUbfOAPvL6ecSDvGD7CJIO9j0J eZUvasBgPdM/435PEr9DmC6Ggzdzt8IuG4PoLi5jpFSfcqxZFCCxLUDEo/w0nuguk2FTuYJg B2zEZ4JTBZrw7hIHiFh8D8hr6YA6a5uTofq1tr+l048lbtdFUl8TR0aIExVzE4Z8qKZlcE+9 RQaewjK5Al1jLE4sHdmd3GN+IvgDF3D/fLsi25SKJDeGSdeHkOmaX0qGeM4WKIfU6iARRCiQ N3AmBIxZ/A7UXBKLaOyZ+/i3sE6Wb53nrO4i8+0K2Qwyh6LjTeiJAIjYKN43ppxz3DaI+QwQ vI+uyHr4Gg0Da9EPPz/YyKauSeOZCfCB5gIfICO0j6x0SCl8uQ2nLpjxcZkf0gjcwUzP3h+S 3x6NfDji9YEij0zczW/dcSpGgZ6vsFpPrtnP9ZXy6J53yp0kJtOJoOlkEFFdU2yCZnCDseum CoudmGLZVvS0/DzHDJejq+3kK3FDGktZBOxZIIpal+nFqS7lVgOZc4+huVv3jyhzoAUOEyXA XK5j6o7g8STUY+z33QNnHpdLvecMwuzmvqy0jR54yAbZ64mB9QARAQABzSNGZXJydWggWWln aXQgPGZlcnJ1aC55aWdpdEBhbWQuY29tPsLBlwQTAQgAQQIbAwULCQgHA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c4VIZewdIjkzAhmmbxl+8rM/LKBH dZUMTzME5PFCXJIZ83qkZQ795MTe2YScp9dIV7fsS5tpDwIs7BZNVM1l3NAdK+DLHqNxKuyO 8Zk= In-Reply-To: <20231028014611.4086500-8-haijie1@huawei.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: FR3P281CA0003.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:1d::22) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|LV8PR12MB9452:EE_ X-MS-Office365-Filtering-Correlation-Id: 675a1b0f-2fb6-4bb9-4805-08dbda7ee430 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: kTJTOocOxc6+qeeMl4qnHK2cW+ItiTwS6FI/SXwEDTLqgl++5t5S3XQiHS1lZ90YwF9KxMzBZZa1GIGEjHrNHUGl/tuq8VvnQmxyWIZupbsa04wSv7dtUw+7HbtJWbcX2Xv8Kb1W5MLubJyD82YXi66bZQMX0PhDyD+/+SNvVz1j5Jypjp4fF9fP32D6ci1gGp1ZUPhKjgGfkDr87Bn5RWNT2CMaAZSFqcs7uFrIgBVtC+KPsSc5Utzq9lVSTRsswqrhcbg5NmbZYVB0Ax06k9EjL7ITWTl/dp11boDudneU9upJ7FeE6vcNuplgsg1oCfCGerE/PTWWVwd/ylk+nKN8CgYbb371Z/PhstI5Cl042M47j4reAqpBoaMmNn1Xj9re3466nOxVcdpsESyEhn98zZXjwuTmtEIngDqgQ00jncGxTO9OSpMhPdrS+bmOu6wtd0CLaor49WDwGmDQs2y7tLsB9o0tJJHhdpP4qjJofaEc0AlGsiE/RZCMW5mBfK6Fb5yaNjp3W7IwEzzgM1Vi7ZEAVkyt1mAVaasHacI4Zdu7Eupxzb9elbtj3L0eJqoY0YFztsv09Kme6IOHhnsr0wx3u1OrbA0JfRAx4IROOvYBpQCFt1Q3gQH3ClT+LH4NfwvNHXDh1KSvkPUVyQ== 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)(346002)(376002)(136003)(39860400002)(396003)(366004)(230922051799003)(451199024)(64100799003)(186009)(1800799009)(6512007)(36756003)(26005)(83380400001)(5660300002)(53546011)(6506007)(2616005)(44832011)(8936002)(8676002)(41300700001)(66556008)(66476007)(316002)(31686004)(66946007)(478600001)(31696002)(86362001)(110136005)(4326008)(2906002)(38100700002)(6486002)(43740500002)(45980500001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?d1RKNmI2WnNGUlZSZXNiUlRiUDVtaytxNUdkVEVRZFArMnNPdzZoUFNOc0JD?= =?utf-8?B?dVlaNDA1MEVpNkJuekphR3g3RnFYK004VjJLRFJUeXZ2c1ZiZWp2TnZYc2Uy?= =?utf-8?B?NngrUkU4Qmx0bG1PZTZORDdvWS9CT2dmMlc2YzJ1emJncndtbzMwSW5UYXVw?= =?utf-8?B?ZEJUanFXSWZtMGJvK3NQK0wrZnI3Zi9xby93YURQV1dlSkxBUlM3L3BUeVJk?= =?utf-8?B?Zm1rYjkzempzcWo0TGV3SU9HSzVSZER3VW90dGJ1a1U0YUZyODdsYWpqK0xn?= =?utf-8?B?TW1CRkJVTEdQSGcrUUFYRVpWQkRDZzFqNFFjUE0rVGtiWU1KSVUrOXhiYkhJ?= =?utf-8?B?RTVvL0RHdkxWblZSYTNYS1MwMzNPcDZCME9qZXJYazJwaDErcXcvSzhybFJQ?= =?utf-8?B?eklYZkttQ1JTSGMxVUlyUW1haDdVM05XY0wrOWdKWGdGZ0UrSnNXRnpKQ1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WhBblN2aC9tMjM2ZnNE?= =?utf-8?B?Z3VpWHlTZXZWSFpzZzBZRXVXRjd3YlNYVGZIMllvUVBmNkNuNkpjN0dXZXlL?= =?utf-8?B?MlNaTitQYlRDZDZEV1IvZ3llZ296ZTIyeGdFNUwxRnBBWTBFM3dPYXZlVkt3?= =?utf-8?B?TTY3aGtPU1BGdWtlTjN0WFlWOTdFZlVaSXV1cFhzbkJaQlZaK3JIVFFORk05?= =?utf-8?B?clV3bmNGTWNpb3AydlpVUmZlVDE5ckVORDcreHhwbmM3VXJUSkZ3SjMxS2hZ?= =?utf-8?B?TUc2TkJidTIwN2xtR1ZzZStKMkJsNkc1b3VIOXJWeW03dDgwamZJV0hYRkIr?= =?utf-8?B?djMzcjE3RHBVWEdjT0pNSzlDcFYrMWo5cFFuMDl4bkMyS2hKVmdWdHdBUHhG?= =?utf-8?B?VWhGYkFHa2pRT0FZTWpSTDVWRC85ZnBKQytTY2N3ellzNTJ3K2x2Z0FYanVX?= =?utf-8?B?bmY4QTAybEoycGx6U0dscGdqcmpKUmVpSGYvWVZkcTNzWGFnWGtiK204ZlhU?= =?utf-8?B?STRwOGwwMDBSQ0ZhekJMVEREY3pIM012OHB5ZitZays2SVB2azRhZWFWbWND?= =?utf-8?B?c0RjNEZRMm1ISTU0NDZPMjlQbmkyU0NBMjhrbG9PM3lSd29DeTVPVXllbnpr?= =?utf-8?B?RkFWSVdpN1JNM2dVTUs0Q0ZqMjlSVTFmNXp2dE5Qc0ptaUxXS1RRdFpwZUtR?= =?utf-8?B?RERqaHl0MnhqTlVnTGhJazR0SW5rcDlMS2kwOHdHV0lWbXcwcWsxNjZvZkdT?= =?utf-8?Q?UPKx8CtguKbTr+BqKzpYB6Stq?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 675a1b0f-2fb6-4bb9-4805-08dbda7ee430 X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Nov 2023 02:04:33.4211 (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: MA93ZXCg6HtdJHq3NI+q9vplTA/QHPIaAkL+IBy89Ai5eJl923vP3QPtcYa74N9R X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV8PR12MB9452 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 10/28/2023 2:46 AM, Jie Hai wrote: > This patch adds new API rte_eth_dev_rss_algo_name() to get > name of a RSS algorithm and document it. > In patch title s,/lib/ethdev:,ethdev:, > Signed-off-by: Jie Hai > --- > doc/guides/rel_notes/release_23_11.rst | 3 +++ > lib/ethdev/rte_ethdev.c | 25 +++++++++++++++++++++++++ > lib/ethdev/rte_ethdev.h | 4 ++++ > 3 files changed, 32 insertions(+) > > diff --git a/doc/guides/rel_notes/release_23_11.rst b/doc/guides/rel_notes/release_23_11.rst > index a35d729d2cc7..fe561a6c59b9 100644 > --- a/doc/guides/rel_notes/release_23_11.rst > +++ b/doc/guides/rel_notes/release_23_11.rst > @@ -243,6 +243,9 @@ New Features > Added dispatcher library which purpose is to help decouple different > parts (modules) of an eventdev-based application. > > +* **Added new API for RSS hash algorithm** > + Added new function ``rte_eth_dev_rss_algo_name`` to get name of RSS hash > + algorithm. > Can you please move this above net driver updates, in the ethdev related update group? > Removed Items > ------------- > diff --git a/lib/ethdev/rte_ethdev.c b/lib/ethdev/rte_ethdev.c > index 90bfbf14d1f7..301531ba9628 100644 > --- a/lib/ethdev/rte_ethdev.c > +++ b/lib/ethdev/rte_ethdev.c > @@ -160,6 +160,17 @@ enum { > STAT_QMAP_RX > }; > > +static const struct { > + enum rte_eth_hash_function algo; > + const char *name; > +} rte_eth_dev_rss_algo_names[] = { > + {RTE_ETH_HASH_FUNCTION_DEFAULT, "default"}, > + {RTE_ETH_HASH_FUNCTION_SIMPLE_XOR, "simple_xor"}, > + {RTE_ETH_HASH_FUNCTION_TOEPLITZ, "toeplitz"}, > + {RTE_ETH_HASH_FUNCTION_SYMMETRIC_TOEPLITZ, "symmetric_toeplitz"}, > + {RTE_ETH_HASH_FUNCTION_SYMMETRIC_TOEPLITZ_SORT, "symmetric_toeplitz_sort"}, > +}; > + > int > rte_eth_iterator_init(struct rte_dev_iterator *iter, const char *devargs_str) > { > @@ -4761,6 +4772,20 @@ rte_eth_dev_rss_hash_conf_get(uint16_t port_id, > return ret; > } > > +const char * > +rte_eth_dev_rss_algo_name(enum rte_eth_hash_function rss_algo) > +{ > + const char *name = "Unknown function"; > + unsigned int i; > + > + for (i = 0; i < RTE_DIM(rte_eth_dev_rss_algo_names); i++) { > + if (rss_algo == rte_eth_dev_rss_algo_names[i].algo) > + return rte_eth_dev_rss_algo_names[i].name; > + } > + > + return name; > +} > + > int > rte_eth_dev_udp_tunnel_port_add(uint16_t port_id, > struct rte_eth_udp_tunnel *udp_tunnel) > diff --git a/lib/ethdev/rte_ethdev.h b/lib/ethdev/rte_ethdev.h > index 2f639edd8218..b9d4bfa851b4 100644 > --- a/lib/ethdev/rte_ethdev.h > +++ b/lib/ethdev/rte_ethdev.h > @@ -4645,6 +4645,10 @@ int > rte_eth_dev_rss_hash_conf_get(uint16_t port_id, > struct rte_eth_rss_conf *rss_conf); > > + > +const char * > +rte_eth_dev_rss_algo_name(enum rte_eth_hash_function rss_algo); > + Need to mark new API as experimental via '__rte_experimental'. Also need to update lib/ethdev/version.map with new API, please place it under 'EXPERIMENTAL' block, under "# added in 23.11" comment, as alphabetically sorted. > /** > * Add UDP tunneling port for a type of tunnel. > *