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 3826243BED; Mon, 26 Feb 2024 15:31:44 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 101EC402C8; Mon, 26 Feb 2024 15:31:44 +0100 (CET) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2055.outbound.protection.outlook.com [40.107.237.55]) by mails.dpdk.org (Postfix) with ESMTP id EF53940144 for ; Mon, 26 Feb 2024 15:31:42 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=R5N6RVL/fWKDfuM0tZw7njp4nNIiXv+vN+yqEABw9GEoOdkkPivDhQ/invp7QCUOxKeMIBQ9EIYLrWkq6t5iE5lSD89edtQUBcBZQ2ow6RLSOBAcvMlOEi9IQxVnAUiXf5+30i9C2ESe+4Ug+H6hMIg88xj8HTjKH/p4pQwOMc7b6Kp/tzB4k6qlK6pJm9xvtK5StE+qPzYZXfW80oh6TwWfWyhPXr3kx00BGxFfDPKeJ78mjJHRp149kPe8KSGeKKeIT0fH/sjl5HKwu8LHD1QSkiFjWkeRe2f2Mw+xmXoVKPhwydw8IIEzUcDUsSYltVmt2nt8CsDz+K7h8sQ2Xw== 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=eblhTrKW2OeDRhfxvxjhLWVcGAx++C2CsVGAc4qgvqE=; b=FAeaMF8h/Y7//tRKTW12113O84bGP+0Se8gIYwfFcaAjEUQPiJ/EMByCPq1fAanP1yGWbNuoKhfxaYgV9rlkDooQ4he1plzQQ4abOsduDUEjeA3/GVaVZFVNBC2I+3oXoraxE/vmb6xAHdIfKkaSl8T187N82GOHMoP1XYv3IbEN/EMAjyU/FfzZuxnV+N9l8EfKHWlWho3Aw4xLmrwMCevSjfA97+7L5w/YiFx8w9ASf80hi6VNMPeUzNYvPhFt0XwXpadrfavoYcf0f79LrcoR+EdFqfAWIB11hsUIeyyuOhJHBrUI91/Wwy/GMCgx4LUsAHfitr/sh66wfMVk7A== 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=eblhTrKW2OeDRhfxvxjhLWVcGAx++C2CsVGAc4qgvqE=; b=Ulw4vEEM+X3h9jCiqVvSeZwGmQ7MopJGEWfv+Xa4/tmoAjV+EwY8M9lQlQxwy2vfJtKgZU8uVGYpY0Y8GcO/qXTSTDeQqwRqou/tzhMESWQJ2yN9niWBU4v4Ao8+bTqr676tVNYzvQM72L0gbosI5QiuqBbn3NpnXunYK7l/Hgo= 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 BL0PR12MB4851.namprd12.prod.outlook.com (2603:10b6:208:1c1::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.34; Mon, 26 Feb 2024 14:31:40 +0000 Received: from CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::3ec7:6339:1c14:c529]) by CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::3ec7:6339:1c14:c529%5]) with mapi id 15.20.7316.035; Mon, 26 Feb 2024 14:31:40 +0000 Message-ID: Date: Mon, 26 Feb 2024 14:31:35 +0000 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 1/4] ethdev: add function to check representor port Content-Language: en-US To: Chaoyong He , dev@dpdk.org Cc: oss-drivers@corigine.com, Long Wu , Peng Zhang References: <20240223024217.3052031-1-chaoyong.he@corigine.com> <20240226014500.3537561-1-chaoyong.he@corigine.com> <20240226014500.3537561-2-chaoyong.he@corigine.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 aXQgPGZlcnJ1aC55aWdpdEBhbWQuY29tPsLBlwQTAQgAQQIbAwULCQgHAgYVCgkICwIEFgID AQIeAQIXgAIZARYhBEm7aYjps5XGsPHCElRTPtCKKm/6B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Scp9dIV7fsS5tpDwIs7BZNVM1l3NAdK+DLHqNxKuyO 8Zk= In-Reply-To: <20240226014500.3537561-2-chaoyong.he@corigine.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P123CA0429.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:18b::20) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|BL0PR12MB4851:EE_ X-MS-Office365-Filtering-Correlation-Id: 20e1647a-3bd0-4c91-ba9e-08dc36d7a537 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: uEY19wzF0IyF0px+LP50T0kOC0viDyhVQri59dtSuodEls6aDG8j8Je2w+9BnOnKLUIzQtF7GkzO8cu4d2xbW/01LF5J7w5GwNeRcStK3Ek9LptNhxT7XlaToRNVZA8RT/ZhIEuMG9PR5HzscNnO0oG6O0VDrtnvYBgLRl/V+94bzou7o7WPozyXO1bRI4zMFRUMZNsiIsLxJLesnK4rJ0OHvCIxMutOppWmjsnbCprTUxL/NWFVt/pGEKLhSG+tz7/5YhWGZi4F9oKQr2U0MAtM0HrMlBMvajxVuNEBsIVz8Tz5jn7BaPtMMHDCuWKPvG9TTsBkuuGv393q3grF9L/1/jzwXrIXbtDHgdembDNErEWuok8y+O5TNvndTtk1qInr28ocvjqtqQcuBU1oGEcbCQiWXSctxHIEuNGAOEZgHsPrCW+NjkA9y/ATan8OebUwcEpRxVFamg+Jp7vxusjD3lWcJ2yRrqK8p01WDBFgsL/mvPK/2K2x/yTp2Hc8irAk1QRLEpacqIjbTO9H0QMDhajpRFVayLh9klYvE6w7fThyRlqsVaQmuCFgCFpd//zoUQhaG8+rLyTM+8HS/acbYNP7zn7HRMBQHFUEToWFZjSqkuPJzjQn818oTPTawnVYF4588X5W2SN3ZbxUIg== 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); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?em0wRElWcm9CUTFBYjRhb054NCtvTGFUR2kvekhEeVNIdDcwSFhnMUh5dmlk?= =?utf-8?B?RE5TOFozYWlUL0E5c0ZjRGlsWmRVY3JsSDM5aDhVcWttMU8vT29DT00vcWRD?= =?utf-8?B?TGpROVg0ZnhCRS9rZnJXcFJlMXdDYmRmckxQQXNxT0NSd0VaQ0lIZURMMzMr?= =?utf-8?B?Z3AxRWtXblFSM2FDb1BjaXhOcE44TVlhakMyY3lpdGR4aFBXZFlmbHhmY2t6?= =?utf-8?B?ZnNnMlJYSzA2SXlGVS9KQVJEdDdQU3V0Y3dsVGkyWmtZK1pOaUxyWjRPcml5?= =?utf-8?B?NG95Q3BDZEdYQUJwZHN4dzNJMi9JcXJKRy9aeHY1Wm5FUEtFb2VDcHdrN2d1?= =?utf-8?B?bzZZTk9KZVJRWVBzaE93MDdXUXN3N200S1h6VTBxS2dNNmhhMmYwRERzYk1u?= =?utf-8?B?aVdJdzNETU1XZ0ozcFRiMkMway9ZTSs4Z21hRitPZjNVcGNWTUxMSDhXUk55?= =?utf-8?B?b0hFVVl4SCtyMHlETWNyM0xNRUxvSFovYmVMN0JOOE5TTElaVVZQamVUNjBW?= =?utf-8?B?bzRTczRsVHNtdVlkWk0xUVEwYm5KMjZpVVdTd0taMWczUzVNUFMvbG1sWFFu?= =?utf-8?B?Vmd2bEpQdThaWDZ2aENueC90TE43bFIwNjhobzgxdU90SWg5MVBmd1FudUdh?= =?utf-8?B?NkQzZEJ2NUE3Nk9DL0lpZk00ZEZkTmxuc0tvRWpvZmRYbDZRWU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05OSTNSTklsR0s3R1RP?= =?utf-8?B?Vm5sWjF4T0pITEx0V24vOGFtVW45L0t2aGZ0dGlDQmZyVHczU3hPTzMxVkkw?= =?utf-8?B?VkJDWGVXNTBuOU9kM1prQXhocVdiKzZrNWZwWlpIZnloeDltZThnWEtBMDUr?= =?utf-8?B?K3VnZFBuRk1HYllSanpOYWFsOXRheGFROHpMOSsyN0RzQjhtdGlPRTlpOE91?= =?utf-8?B?djJlTUZITVUwTEx5cFVheTRwc0hnYlBMUkJxSDZjcVZPRVR6N3lSVXhNK1Rt?= =?utf-8?B?VXBlTFFLNzZyeE1aa3ZyUkEyQm1DejJrUEd0RWRPOStMNUJZYUlwdzgrMmpI?= =?utf-8?B?MjhnOG1oNXlaMjhDa1pScURBbDJTaTQvNHBoRExNZWVHTGkyL0d3Yk1NWnJY?= =?utf-8?B?SzlpRVR1UXJTdXE1OGZPN1lqVVBkZVRCMk1meGhZT3RRZG5HWlRIUk5ka00v?= =?utf-8?B?VkhUZkdnU09aNklpQkNKNDZISStYWjdjZzI2alFaakFoSmpsNmQyZW40Z0NE?= =?utf-8?Q?Emoc1EjtmsmFjRYnfKxzviO7a?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 20e1647a-3bd0-4c91-ba9e-08dc36d7a537 X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Feb 2024 14:31:40.0138 (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: Xt9ddRmGchtXMPde/8N+F9Ay12DpEFT118UjVWb8j3puyYbVHkm+oWv+/P473JaG X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR12MB4851 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/26/2024 1:44 AM, Chaoyong He wrote: > From: Long Wu > > Add a function to check if a device is representor port, also > modified the related codes for PMDs. > > Signed-off-by: Long Wu > Reviewed-by: Chaoyong He > Reviewed-by: Peng Zhang > Reviewed-by: Ferruh Yigit