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 E487245B00; Thu, 10 Oct 2024 11:17:42 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 70C1D402D8; Thu, 10 Oct 2024 11:17:42 +0200 (CEST) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2100.outbound.protection.outlook.com [40.107.223.100]) by mails.dpdk.org (Postfix) with ESMTP id 61853400D6 for ; Thu, 10 Oct 2024 11:17:40 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=mt5itfnNBu5ig6Tu5rsQJBK4O9lSXp4ebGzSc7zAZSBdIIwU3bOz8Yo56mope4JlxCiyvkI2mV5IggIF3h6UWck5bUs6OYzH8eQIOmSsKcH0ZKbVzvSMP1AcVwyd1ikyRBm6/nOPJDDhRKAOvF1n3aq5Gzb3ry5fUhQGIAQp1MJ1+wMELQeFv69BMpyXv30R6bOHzUwE52tLRAbEoG2ZOIiUtXzXQai4d/eePAOv5Yi3w0k0bbb/aLqXTAbjcEyHov1k5l+LvraRD65ELTtuPD5vtbaTCXY6+PQtVPu7H1Kd4CS559r4cnSAz+rwa0JISgswRlCK+dXYGP4EcmNpUA== 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=IovaBLKceDjyXU6cZex/T3q0uFRpMrucgctObVRpIOk=; b=BA3iSN9NQliwRC286JtCwESkaIHp/AWmd1ToaGQs1GsVyNafxAVsOOmwizt9S8yuCxutBvXB1YFvKBlGEKJo68KaAoRgPjshpGt9crPDc4kaE9gMq4DsuHPJSPL4sGzkrr49TqDURJySE5Ai5+svQlsVG15i9wkmKeY67ytimbKB4HSLRGXBx1MriwgCG5R5UGrHUZEywSjBvDnYQGj958teG7F2k9ZcNZRA4WH7Jst5cdozmcZWUPQnHwA8CDqIxxHZfhKkL0msmuE85bISBV+aWw1BpEyZtssnkv0P5tXYCIbBZAYYieZ601lrts6cqxu1c63ODdCYE9vUil3cLA== 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=IovaBLKceDjyXU6cZex/T3q0uFRpMrucgctObVRpIOk=; b=OLpWWwLuE2LArfcqqvg+v7JMW4Qt0RyVZPS+EFyXluqc4Rf6mCawyDy/qmBgPrrt3zDSOiBHy+1hqNW4yi4T2r55V42MAJ3ipcwrZxOE+ef/8+KExEMm39aE812ZpWdcXPDVt2yI24fD3eKSoeoulzHioDKGq4hWEfR9VoA5dbk= 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 MW3PR13MB3980.namprd13.prod.outlook.com (2603:10b6:303:5c::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.18; Thu, 10 Oct 2024 09:17:36 +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.8026.020; Thu, 10 Oct 2024 09:17:36 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, Chaoyong He Subject: [PATCH 00/10] modify some logic of NFP PMD Date: Thu, 10 Oct 2024 17:17:06 +0800 Message-Id: <20241010091716.3631747-1-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.39.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: TP0P295CA0060.TWNP295.PROD.OUTLOOK.COM (2603:1096:910:3::15) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|MW3PR13MB3980:EE_ X-MS-Office365-Filtering-Correlation-Id: 1f9e1660-2c0d-44c6-7f22-08dce90c611d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|366016|376014|52116014|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?6NuB1tEFSx5J3B3Mf7Ad6+t3Sp3glEfBCqO+d7xUQN8TTDBcd+X+HR0LlQuY?= =?us-ascii?Q?5yJeQc1Ug19yycLVqFjhtqY9HHs5yWdOT0yETt8isNyL/5lXeb8/R6FLSqyx?= =?us-ascii?Q?3u3lmqSuheMEha8lLsJ/05qghZLpWf3r2fpo6wzaBnmiaJZZHlkHS4HjvGjT?= =?us-ascii?Q?IkbzQE48DjySt4+56rLI8LRJcKD0GfSXWC1k88yn5xrdl4KGvf857IV0WOUf?= =?us-ascii?Q?4AxUwEwFEa8SidtHtxb9LS1zOMUinMc/iSkKIH+gqFrQpgvqB/PStwdVYbG8?= =?us-ascii?Q?X7igI+3Gy0aLmM7/3LDKHJyPgMUfMs98TMicx6tZ+X8c39DH6rHKpfLqjc/p?= =?us-ascii?Q?nL5+GZq60pBMiB9Y+annu2bvmGQ6XLJ/Sr18ALcT9Q8nsDN8O0/gU0/tvvhT?= =?us-ascii?Q?6bHvc2LzsLAsBp1XjWww6jdryykEl5RMFa98YPgVa/W34gjp0r8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o7otzzLgzTTspMnOXvuxT5mdVGiz0yeTZfStg=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)(366016)(376014)(52116014)(1800799024)(38350700014); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?J0SUs0oNi+52/9TZJFehubQ1pFKynKeBn/I4XlOgSyofahg8zrRsEAmpvjpq?= =?us-ascii?Q?qoFcGFsJpAXkojWkpTgX4Tdy7pY6y5SytOCfI5eTJkXxZ6F2I/jch33DByBA?= =?us-ascii?Q?0JHPAM5+/rdLleiywreE+0UcWd81wjueNkIbD+hmVBhdI3yUoZFMZnmEGXK2?= =?us-ascii?Q?JNO7F+cATfaay9Ly8oGnbxhew9cnjW2QJgs1Lapcwy93Q2KWsnTaWu6hvd9A?= =?us-ascii?Q?PbCP9XgoDGHD1+IBp7rmlpK3y6ksdq18y6yHMHHjyyD0Erv3WsFhNlJmdK2W?= =?us-ascii?Q?rL2BpuJakP+iJa1TeIdAIolNXEBR9BlpM6pc4vbPfPeMNDLCeTrG4iXfHyZc?= =?us-ascii?Q?i6JuKsa4Xm224FV2sUGHcFQI+veoVDNBKLA06yVvqRp97jVuYIcJIdBicVnq?= =?us-ascii?Q?usYKmjnXk1XYkyWC4yMTdQq5HEYT/m0PmcKRvD1SuYS/0jd9ZvRyOCqcyB1U?= =?us-ascii?Q?0pvbPeo0bKeeNKY+zjx9HSMhjsBA+IRHD1h48UOik6zCQHw62soHCdSTyf3w?= =?us-ascii?Q?P1/qODgptfys17UCR1CpHUDIFKJ0TaCsBV9VLkThSa+k9rlS7Zc/IwEESS+/?= =?us-ascii?Q?fzB7k5RGi2wyj+6bAC+xREuaozTQzwAJr/pJTcVy617QfUrz/WTT5rnWXkeq?= =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mA8m/JGKheNr2KvvM0iduYg46OfwuMTd?= =?us-ascii?Q?bIvFx4mToxh0eHjweh/8zJfVMljukDS66wCtXgXLFcx4BpcpwAETPOvnErRb?= =?us-ascii?Q?DA=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1f9e1660-2c0d-44c6-7f22-08dce90c611d X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Oct 2024 09:17:36.0957 (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: p5WlRTA7+vXFPTsA6ouf+KJLwr1XgLIQpmDykzIfThEDIvah3fKq6dXxYLx7S1IYaBTuz8UyX0lotFSO9JJklFMGLvL+CAfZNwnt9b9y8S4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW3PR13MB3980 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. 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 | 3 +- drivers/net/nfp/nfp_net_common.c | 49 +++- drivers/net/nfp/nfp_net_common.h | 4 +- 6 files changed, 194 insertions(+), 157 deletions(-) -- 2.39.1