Message ID | 20241010091716.3631747-1-chaoyong.he@corigine.com (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org 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 <dev@dpdk.org>; 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 <chaoyong.he@corigine.com> To: dev@dpdk.org Cc: oss-drivers@corigine.com, Chaoyong He <chaoyong.he@corigine.com> 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: 6NuB1tEFSx5J3B3Mf7Ad6+t3Sp3glEfBCqO+d7xUQN8TTDBcd+X+HR0LlQuY5yJeQc1Ug19yycLVqFjhtqY9HHs5yWdOT0yETt8isNyL/5lXeb8/R6FLSqyx3u3lmqSuheMEha8lLsJ/05qghZLpWf3r2fpo6wzaBnmiaJZZHlkHS4HjvGjTIkbzQE48DjySt4+56rLI8LRJcKD0GfSXWC1k88yn5xrdl4KGvf857IV0WOUf4AxUwEwFEa8SidtHtxb9LS1zOMUinMc/iSkKIH+gqFrQpgvqB/PStwdVYbG8X7igI+3Gy0aLmM7/3LDKHJyPgMUfMs98TMicx6tZ+X8c39DH6rHKpfLqjc/pnL5+GZq60pBMiB9Y+annu2bvmGQ6XLJ/Sr18ALcT9Q8nsDN8O0/gU0/tvvhT6bHvc2LzsLAsBp1XjWww6jdryykEl5RMFa98YPgVa/W34gjp0r8/buwWOE68FWn+O/TgXDOH+R/4uE/tjRbLexc0oGoox912592mFPYV3kakvfwTqX2gm+oBdiHSHvDQWeRudCHd0dZZY+iKrJQ35lK/UNoOvZxvcxMon4Er0v+EZwR/dE5zoFLKK1XFZxaTCBCxf0Z8WJK3cBC28FfL7CkpEC/nBX0ceC7Ig8Uo2aVV6wLG2ypRKKWjuPhAZP3yoaagXkpRT7UZaqjTxxmiEcjm3rW9J2JTO4+Cy/izr36iz7rmDTlOXY0TZqj1PECEtrl99lm567UQD9p1npnW8jx0cNuc8+9ZOUXAcVSt7Ttodt/OWjtlk6/i1aRYIxZ7LR4gvOfj9OW+3I38C9AwT4JW+0wxp5ccgt+1wektxnsMEKrSbuigr1nO6sfzxG/pLguxT9fDKUsaWpIgGfLlB65BTAnkXrQm4DJQbAOPXXlG1ZVqcqLfPexD9h2eo7wn/pBLp1dC6gbG7L1d7+ZQCy4CJU7VePWNGCVUyFinmZx4bRDCRmvOsN/rl6YI3V/B/dgJalNKZNDQn69wLqjaJknE3eOjDRvwlDSmvHG9ltx/hg5ArE7LRnJLHfQ4mklQamvF3J0D8jQwJ7fhCAZFxPQfb5liS2NsGMew73J2E/Xzdvb3i50DxPa0N/g6OZhhzo+jR9q9inlviOf+MDhcY5VDt0p5y0k7iGPngQaxFJg7KuiCx7dAh5Xw7e3YQ+PjUy2c7dCwvwPtUQd3FT6yVYO4JsW8sQqMaG7ChwJ3I4gUOiU1xmticAbQzy+mAVNCacQ8VT4uoaVUs/7N8bqVsnAeJA2zKmNyjBkdaDo/eTk/Q4/vrmxIIuv7eZQn2HF5yF5lNj00ephAwo7otzzLgzTTspMnOXvuxT5mdVGiz0yeTZfStg== 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)(38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UQasSPKMHxoPUm7+D1+43T+lsFKKuhvflZbZVl9aj406+LQP/zHOuBKgNtyLkWHOoPOARkx078bCeucy+Wmco4/pYGxaBDkVjgVh9tPeiP6vg16GsXco0UwfxELbINmdj6EHkAh+wyU6U+qRxK3AWYKOTB5gAxLu/OE5AVtc/wF1A0oALeZ/HkiXDWGh+vWVaLFk4JVGhVGqpTzdOYwm3j4Xf9ViHaJ4ALm9lj4H0fZeLYMIXvIlGGHCrHterup3ThMs96Z/7scR9P66/3yWfcNHU8L1TlnmSZYoMO+7h3FLg5Tc5L3XzYGKp3Y2kUmN7cVFK65zZvEJgzWZ/NOlIkDQ9x9o2mdTwkTBAdzzYm1U/BzC2wR1FnLnmcFVojJjTsHWskVCCjQvlgO9FCMY7vGKLQLUQEzfWMAksRlbe3HDuBOdQ9TCakzBOVF6SsNCcFqAn5Nv/Yoq+/kl+5B/XG6IOfTobWjGv0gHmycQoxX80qZsM9SsAKvncHv9QKIZOL3nEp+Uj15bmA8m/JGKheNr2KvvM0iduYg46OfwuMTdbIvFx4mToxh0eHjweh/8zJfVMljukDS66wCtXgXLFcx4BpcpwAETPOvnErRbDA== 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 <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org |
Series |
modify some logic of NFP PMD
|
|
Message
Chaoyong He
Oct. 10, 2024, 9:17 a.m. UTC
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(-)