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 9C63A45AD0; Mon, 7 Oct 2024 05:01:14 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8900640B8F; Mon, 7 Oct 2024 05:01:14 +0200 (CEST) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2089.outbound.protection.outlook.com [40.107.92.89]) by mails.dpdk.org (Postfix) with ESMTP id EF62C40A67 for ; Mon, 7 Oct 2024 05:01:12 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=lo1pAcqcILTNbVAsDW2LwotaE+iLcDHNblDwIA3UPd6zED4xqkWl+1XLTld20tXFWg+VwarJxkyEpmVja2s6YPM1NkuZtofUYuEs5mVl2jIPevAw5vLYOsTHspvv657Gzkhd7a17VwFMxQIXs9FzUIqeRzE1kBLzixsSE0fkdfyJkeWa7BMIoqwDlE6qOkubwCWap9x5hghSPWVxE73+X1ytANfIrS5pLLohw0pDsaRWU+7YWRYU6hb0R8SGvNcj7FjzPkMYpp6Dy7u9VvNkWIP/E0ftFIUviY+J8oDDTE/AtmiExPpuIy56SinzYSSyecIrgeoL9P6VuFDb66ac/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=VUbnffPjos57IfRALee9CmNS2DLVEmVkHCQgu/Ocq5U=; b=BAh5BAX+o7mae/KqdjnC2T0OPu426s/P5Exf/qP4dvr0dpDubMlXTsUZOd/v/mOX2XAsHCNnGyIF7q2BRYO3Iw2cJHBaXGMjE2Vgi9w4JDkVF1enzZ94EUwu9s17xrmvg7Yw+J0qZg3l7FH4XuEwhYKmZdv1pdLwworyzS26JLLjxRpNA7s2E+Lt6RUC5JHom9jp2OCpOI52bnDvC9kgBtiULlGBI0hamtbE8ryV88k/xEZ4hZN0UTJmKcDBEyG3gaU3k4vTbUCO5MI18qsns1tqidVBjymL67yvBmF3mve68HrPYx36OF2UqNJW+QR4mmyF8s7Fu28Bo3ZTN/PwIQ== 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=VUbnffPjos57IfRALee9CmNS2DLVEmVkHCQgu/Ocq5U=; b=0CDhQstGquK49p9cN9Tyu5X1RSROpbwG82p/M3gMpKp/wS2BBsxLfEnGnyIVgHzLD2oFQjwLId0/Yum5Jk3e/yqK+Vn6YFkcOqbj8VwQFMd+SBFhwi7g0u4aNt62t4fqNYHv9TaVAgOnHDDHvroi/p3BOdMYivL/DXeprEM3qpM= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from SJ2PR12MB8830.namprd12.prod.outlook.com (2603:10b6:a03:4d0::9) by DS0PR12MB8317.namprd12.prod.outlook.com (2603:10b6:8:f4::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8026.22; Mon, 7 Oct 2024 03:01:11 +0000 Received: from SJ2PR12MB8830.namprd12.prod.outlook.com ([fe80::c3eb:df02:eaa9:2055]) by SJ2PR12MB8830.namprd12.prod.outlook.com ([fe80::c3eb:df02:eaa9:2055%4]) with mapi id 15.20.8026.020; Mon, 7 Oct 2024 03:01:11 +0000 Message-ID: <9696fba7-1207-43d0-92e4-8a2945f0ecc4@amd.com> Date: Mon, 7 Oct 2024 04:01:04 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v9 8/8] net/hns3: support filter registers by module names To: David Marchand , Jie Hai Cc: dev@dpdk.org, thomas@monjalon.net, andrew.rybchenko@oktetlabs.ru, lihuisong@huawei.com, fengchengwen@huawei.com References: <20231214015650.3738578-1-haijie1@huawei.com> <20240926124249.81679-1-haijie1@huawei.com> <20240926124249.81679-9-haijie1@huawei.com> Content-Language: en-US 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 aXQgPGZlcnJ1aC55aWdpdEBhbWQuY29tPsLBlwQTAQgAQQIbAwULCQgHAg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4VIZewdIjkzAhmmbxl+8rM/LKBH dZUMTzME5PFCXJIZ83qkZQ795MTe2YScp9dIV7fsS5tpDwIs7BZNVM1l3NAdK+DLHqNxKuyO 8Zk= In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: LO4P123CA0605.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:314::7) To SJ2PR12MB8830.namprd12.prod.outlook.com (2603:10b6:a03:4d0::9) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ2PR12MB8830:EE_|DS0PR12MB8317:EE_ X-MS-Office365-Filtering-Correlation-Id: 1bf75e72-3d6b-4235-f19f-08dce67c4c4c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|366016|1800799024; X-Microsoft-Antispam-Message-Info: =?utf-8?B?aklDVnJ4Tm5KRkVuSXphV2pkZ2Y2VmhRcG84SmlEalZhakgwNllhU3FYSjN3?= =?utf-8?B?aHBVZy9uNHlQeGN4dkZIbkRBRHVtL0dRVkRPdFdNcnc2b3B4ZTloV08xYy8z?= =?utf-8?B?ZXM1MkFjSkIvdDJQNUJiaUVITEd0TCtLRFpWcmI5MHJicXJqNWUyNzkrY0Zr?= =?utf-8?B?NDE2bzM1bGxBaEhkSkRsTkIzeXZaOWtCUW55TXFvS3BJaTNvaTcxV0w5ZmVp?= =?utf-8?B?MFZ4aWg5c0hRS3AwUDFMSzYxYm9uRlRvaDN3ZDg4WTlhWm1YSGQ5RFdHekZM?= =?utf-8?B?elFuNjlZQVVHRGo2Z1hwU1E5bG9TSExqMEJMUk5RamFrQVBDYWZWTnlFZC9T?= =?utf-8?B?R1JWQ3ZqZnhqNGc5a05JQ3owY2M1TUpVTHhwb0hCaDlZYzVsakVvc1RFQzMx?= =?utf-8?B?eGUxSG0ya3RCc1pwSllyN1pWcUo3bXdwSGw2bzNPSkM2M2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NDQ2xubWVKQWtuUllOUzZha09pMlpxNWtHY3Bx?= =?utf-8?B?ZEF4U3pHaE5sWGU3TUZNd0F0VnpBY3dVUUFXOWJPS1hFZEhic084ZE1McWVp?= =?utf-8?B?bGtpMVVqTSs4dnJaZGhTWURoWmJ5Nm5YL3FRaGlpVXRTaUQxOXVuTE1jdmw2?= =?utf-8?B?MkdsZWJFVUpvZkpLN0NIV1hCSDMzTHF1bTJlcTQyanVHVU8xMUZLS2c5WTNs?= =?utf-8?B?ZWNhUElBQ2dpeFg1aS9hbGxjaU96QTBEWHNlalY3TW51bVpJUTJxL2ZyYVk0?= =?utf-8?B?ZFBldjhhTzBPSjFNRFFXbFNYRE5yd2hsQjZ5K3IyY3RkVXhLZjRBYy9UZ3RR?= =?utf-8?B?WWZVV0wvUUVaQ2djTGNBWXd5M1lyempjWEVYSW9vNXA2ZW9HR3BWQjV3PT0=?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ2PR12MB8830.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(376014)(366016)(1800799024); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?L3Z3VkFhYTVQT282eDNNUURpOFpxRDJESHhxUXBnMGFlZWtSZHZZODh6TXNV?= =?utf-8?B?ak0zVE9BS3Fna0M2RWt0RmxUR2V5NkdEMEtaSG5wOFp0MVZEU2w0enpkOXR4?= =?utf-8?B?TEd5UWFKZ250cnBzTUo1SXgyL2k3TjNSaDZLd1BxaVI5L241MSt4cVpBRzZF?= =?utf-8?B?Q2EyMFF1a3JZSDJIblRqeERJUzd2b3FzRSs2aWdFRUp0d2o4SUtRRGk2bU1u?= =?utf-8?B?cklpeEJPWElzWGNqRzcxQzRJNWwrN3lVM0E1ZUZUMVR1b1Z6YlFQVXNheGNl?= =?utf-8?B?QVZxMj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zBQ?= =?utf-8?Q?+PRNH8/xHkwr1tvDhwezfIC5/?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1bf75e72-3d6b-4235-f19f-08dce67c4c4c X-MS-Exchange-CrossTenant-AuthSource: SJ2PR12MB8830.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Oct 2024 03:01:11.0974 (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: pfAYcK0L6uHNplMqoyOl+/gr+xez+M8oRTsvCPqoUSZyqVaYoIkNLpRjcDndGhed X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR12MB8317 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/4/2024 2:59 PM, David Marchand wrote: > On Thu, Sep 26, 2024 at 2:44 PM Jie Hai wrote: >> diff --git a/drivers/net/hns3/hns3_regs.c b/drivers/net/hns3/hns3_regs.c >> index a0d130302839..2e19add21265 100644 >> --- a/drivers/net/hns3/hns3_regs.c >> +++ b/drivers/net/hns3/hns3_regs.c > > [snip] > >> @@ -863,21 +891,58 @@ hns3_get_regs_num(struct hns3_hw *hw, uint32_t *regs_num_32_bit, >> return 0; >> } >> >> -static int >> -hns3_get_32_64_regs_cnt(struct hns3_hw *hw, uint32_t *count) >> +static const char * >> +hns3_get_name_by_module(enum hns3_reg_modules module) >> { >> - uint32_t regs_num_32_bit, regs_num_64_bit; >> - int ret; >> + size_t i; >> >> - ret = hns3_get_regs_num(hw, ®s_num_32_bit, ®s_num_64_bit); >> - if (ret) { >> - hns3_err(hw, "fail to get the number of registers, " >> - "ret = %d.", ret); >> - return ret; >> + for (i = 0; i < RTE_DIM(hns3_module_name_map); i++) { >> + if (hns3_module_name_map[i].module && HNS3_MODULE_MASK(module) != 0) >> + return hns3_module_name_map[i].name; >> } >> + return "unknown"; >> +} >> >> - *count += regs_num_32_bit + regs_num_64_bit * HNS3_64_BIT_REG_OUTPUT_SIZE; >> - return 0; >> +static void >> +hns3_get_module_names(char *names, uint32_t len) >> +{ >> + size_t i; >> + >> + for (i = 0; i < RTE_DIM(hns3_module_name_map); i++) { >> + strlcat(names, " ", len); >> + strlcat(names, hns3_module_name_map[i].name, len); >> + } >> +} >> + >> +static uint32_t >> +hns3_parse_modules_by_filter(struct hns3_hw *hw, const char *filter) >> +{ >> + struct hns3_adapter *hns = HNS3_DEV_HW_TO_ADAPTER(hw); >> + char names[HNS3_MAX_MODULES_LEN] = {0}; >> + uint32_t modules = 0; >> + size_t i; >> + >> + if (filter == NULL) { >> + modules = (1 << RTE_DIM(hns3_reg_lists)) - 1; >> + } else { >> + for (i = 0; i < RTE_DIM(hns3_module_name_map); i++) { >> + if (strcmp(filter, hns3_module_name_map[i].name) == 0) { >> + modules |= hns3_module_name_map[i].module; >> + break; >> + } >> + } >> + } >> + >> + if (hns->is_vf) >> + modules &= HNS3_VF_MODULES; >> + else >> + modules &= ~HNS3_VF_ONLY_MODULES; >> + if (modules == 0) { >> + hns3_get_module_names(names, HNS3_MAX_MODULES_LEN); >> + hns3_err(hw, "mismatched module name! Available names are:\n%s.", >> + names); > > No need for \n. > Please send a fix against next-net. > Fixed while rebasing next-net to main.