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 DB13B45B17; Sat, 12 Oct 2024 04:41:37 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7448440272; Sat, 12 Oct 2024 04:41:37 +0200 (CEST) Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on2102.outbound.protection.outlook.com [40.107.101.102]) by mails.dpdk.org (Postfix) with ESMTP id 76E7C40268 for ; Sat, 12 Oct 2024 04:41:35 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=W5LGYmmQetwYeRY6/LkEQuLKBw4dAc04u2CZ7DjgDLsF7w4OX7Is/y8YLYDmSVLQMuiM4nJtq+aoInntR9bjA5VfSKMBRYr8c07DVohaR8FOL4DS02TmtgT7XpLNWPeAef8655OA3QCl85d8a+3XDXF9u3W7RS7Hd7JWtQq42cpLLBO0r5mSA0rARxu0ecTnwjVOitQIkzZMhDulyvADO/L2XLSfsiraewBVgVaASsv0jPXxf+Vgs0ALazwBb3PnOfhiZRIbD26DQ6w8oJbgCFMFwBFuZUHYrRSC1m5M53C3/ApYbpo58yP6XsMQ9Wb/7PW1rQahXgpUoLxjINHgIw== 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=AzRFetNwl1g+hve4PavqLfHgMg/xalhfnF+jn9MGSkE=; b=Hln94avLE1qIBUUVIHG7/WXDLE+d7/OqOUFaDmx6202R4RUoCFlISDrSeDpfPzRhkNfwfg3e9hYLjmU5o1S27a68h0Iy/kXRarzgOAjo/CYVM/UqHmpliFfc6GgW0buDuvthuf+GsGrB+iGbW5/VgI7ax/wd4ouywHN7gOnGPD6bayvr4hdSRNvppLlowz7ef4+Rfe7q33NXj5qOm+wek6+3ThmoOqFPmqz5zIezK7aVaE19CFUcr8C5zuCvop3u0hUjre/FQQnBKVc2yrJO464oI9WYfZfOnhCys1lnbvZlt4zQHb/eJ3U0Vc8dzOfbRvynq0UY+tffWNBW47Rmhg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=corigine.com; dmarc=pass action=none header.from=corigine.com; dkim=pass header.d=corigine.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=corigine.onmicrosoft.com; s=selector2-corigine-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AzRFetNwl1g+hve4PavqLfHgMg/xalhfnF+jn9MGSkE=; b=n8y0j4k9TfnTDwOTmegHxZv8KEZk2ggynYPOOBhUvSjwyPn+UJ+ezdFs/QFI7oTLUgYDrdamcqL+4tMHCGE8pyYad3yxzOqln8gVbMEwxGkzu/kRB9MJOrB44v/F+gLHF7OCz/WXjqkvUAef9/GC4FurVj50B6BX0HWwHRpbG+s= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=corigine.com; Received: from SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) by CO1PR13MB4902.namprd13.prod.outlook.com (2603:10b6:303:f0::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.21; Sat, 12 Oct 2024 02:41:31 +0000 Received: from SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::b900:5f05:766f:833]) by SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::b900:5f05:766f:833%5]) with mapi id 15.20.8048.017; Sat, 12 Oct 2024 02:41:30 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, Chaoyong He Subject: [PATCH v2 00/10] modify some logic of NFP PMD Date: Sat, 12 Oct 2024 10:40:57 +0800 Message-Id: <20241012024107.3795935-1-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20241010091716.3631747-1-chaoyong.he@corigine.com> References: <20241010091716.3631747-1-chaoyong.he@corigine.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI2PR06CA0001.apcprd06.prod.outlook.com (2603:1096:4:186::21) To PH0PR13MB5568.namprd13.prod.outlook.com (2603:10b6:510:12b::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|CO1PR13MB4902:EE_ X-MS-Office365-Filtering-Correlation-Id: 364a4682-ba5b-439b-0fce-08dcea676053 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|366016|52116014|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?kI+N+lCSK03Ey+UVyk4OViiwPIjBDpuUvRkEpcnUo7mCf5gp2rRRO9Vyz4E/?= =?us-ascii?Q?A3gUtQNizYArIuspAU9XUnOklpP/ssglrjN7eat4MD5ZJZxP35lo31YdWSxA?= =?us-ascii?Q?arFW5/mVHTT1i8HaVS2K7BtHzvmICy301PtMwWMp1hWiQpmsKt2X8Omk+6rb?= =?us-ascii?Q?BMRoVP8rpLxn59+7g7jOc0GNzuyMUugcfe2Cq0DO0VrbEh8Vcxy1DJEH2hPB?= =?us-ascii?Q?EIPTVy+7DIFpcCuvSaHZnFDLkirG2uMf0IqZH9owXlch8JLmn7mZP/fiY9de?= =?us-ascii?Q?hsjqf2VpdFpA0TN/sFIHBhRg78sdLsZ41fjOCaX2C2f1xhtTzi4pKDaf6lRz?= =?us-ascii?Q?YVWtbkNP+su61juzgrj12PRBXAB4NbFaBoSxP8RJIt7mriFkamOtjFlhSH7i?= =?us-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AYHXO9DRDhIYn7r?= =?us-ascii?Q?sJBkJnV0MDtmx18YgkLOJASjDPeePtMfzY6LhWvsrrgPEQ=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR13MB5545.namprd13.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(376014)(366016)(52116014)(1800799024)(38350700014); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?pxsgTwfu2tjzJH2wcqHfjBqgZ7jJpvPhnJQBQSSEYlkTkGs2T1EgjtgCx+Eu?= =?us-ascii?Q?9CtXwE3bDGBFWvF9A2UdSRFPyLQfNtBVdVNUqsZmtGnkXg77VjHVx1T9dTVV?= =?us-ascii?Q?j3JVmge2L6GprfgCCMM7Lc6pxppGOCBCwtTltUkX6LnLAaXz8JxZ0OoXY7mK?= =?us-ascii?Q?oIiBb/LeWy+ot99WS4ncT9JnSpRDJBFl7L5AOCHomwKiSKYLDt4rvYPDOQPz?= =?us-ascii?Q?WpOiBLOz8YYYNguIX4bAL/3JSUGLW6hd8TsUgyrCaVV0he8KRBu0MBPhVsOu?= =?us-ascii?Q?SmUL2/sW6ZmBCc1kKLXFuExLT3/+trL/t2LNxRaWSWI0lkG5qTM0l9+4YYo2?= =?us-ascii?Q?xifUdmECNksiw72Y469c7f+YAGzk7MZS+8TFcr9TVfTSjynS9JKRG6ZMjwti?= =?us-ascii?Q?1+SoJq63lSrGvFkQfVoQaTIy9A0NhxvW42EDOEK47wN9r6KXjkDJ0YCV9ZBI?= =?us-ascii?Q?OmF38NUlpOt24P6o3k3BJxfLlDIx7CjgKnf46io9dxz2rJnxg8PC3rJm4+IS?= =?us-ascii?Q?BKvLFrcbFnD9rTqMzhEbhXteZRgp4YC67D03DajM9P12cHLM8E3mUGwIxvET?= =?us-ascii?Q?6L2XqIXTdM1zw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Q?k2tX1DHX12b1xNOB8JzC1x2fqVvzUT+RkuUEofZZU8bQiTPSM5w9NLYsqMIR?= =?us-ascii?Q?jT8n/KpFZOj/Kwwgqvfp5auIuwGU3IU8xGsJIIJWIUx/Caam3LGzdLVq6C55?= =?us-ascii?Q?QA=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 364a4682-ba5b-439b-0fce-08dcea676053 X-MS-Exchange-CrossTenant-AuthSource: PH0PR13MB5568.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Oct 2024 02:41:30.7023 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: fe128f2c-073b-4c20-818e-7246a585940c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: +JML6CEPomJvZToQfNdiO7YxW52Ho0R0BB221LO9DJWqq2fSaNZD/e0kOimljBSBLm4HyDd49dd/Gqzcp8FhcXm2Z9dNxkHdzZ67vXecPFM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR13MB4902 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 This patch series refactor some logic of NFP PMD to make it more clear, also fix some bugs. --- v2: * Following the reviewer's request, change a little logic of patch 10/10. * Add 'Acked-by' tag from reviewer. --- Chaoyong He (10): net/nfp: use strlcpy for copying string net/nfp: fix malloc name problem in secondary process net/nfp: simplify some function parameters net/nfp: improve the logic readability net/nfp: fix problem caused by configure function net/nfp: add check logic for port up/down function net/nfp: fix problem caused by commit end function net/nfp: fix problem caused by FEC set net/nfp: modify the comment of some control messages net/nfp: fix memory leak in VF initialization logic drivers/net/nfp/flower/nfp_flower_cmsg.h | 14 +- .../net/nfp/flower/nfp_flower_representor.c | 22 +- drivers/net/nfp/nfp_ethdev.c | 259 +++++++++--------- drivers/net/nfp/nfp_ethdev_vf.c | 7 +- drivers/net/nfp/nfp_net_common.c | 49 +++- drivers/net/nfp/nfp_net_common.h | 4 +- 6 files changed, 196 insertions(+), 159 deletions(-) -- 2.39.1