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 4317042B42; Fri, 19 May 2023 05:00:17 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0BB7241141; Fri, 19 May 2023 05:00:17 +0200 (CEST) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2113.outbound.protection.outlook.com [40.107.92.113]) by mails.dpdk.org (Postfix) with ESMTP id 74111406B5 for ; Fri, 19 May 2023 05:00:15 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=a6+PzTkTUzgrYPS5l4NnWZHXp4WtJNyCBg5y9hRyqdyHIn/ahPmEvib2Pg4q0KRdX1ptR0QBF12MPNnsvF/YtprVgAWpDLch4mVlFWx1XqeGU3TRIh15AzJ89FHYJZw+E9nm4jnOaSJfPmWh/eUlZIpzyU+JrWPeR7P2tFPvRiYasL7h1nvZ3vPZV0QgBNVVmPfjNrPlzUG4Do2i5IHRJqwqlzVKT0ygerU/Z5Uxx9c5h53vu3OIJjEVY5rspi/Gx+SXRC77cP4vW0nJebs7Dogh66Tb+IJe0PB5B5fgZk6Miom4o1Ki+SeMWoClwSf2qnOHj8lcMyaJOUqtpjd4/Q== 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=MDZWOgzEjpW0C/Wh9T6hmNseEVClz9yfucfKIufHFV8=; b=EXZgg7ZWiQdj3cuqST+AsQ1Lbu8Q3NoLnxvGzfy0nmuDSAVNJ++DMFQjD831PZ9KblHp7V6S83u8ItB69dP3Mudo6Z7gl9hiR35jCwXZXTiO4HnXMu0UBzzbPCeUmJFRAhsHN3DFyY8lHmzQCX/FoU5ft5BdUQt04DZ08QV521ljHSPgrhP+nXHgu2jYuNPBDHYTknBx+KCfxALWMjwQdLBnpQeSTj+MKYjPYl9EhR0oNd+/7Vl+S6kypqOfxC1bHD6gP3HZbMSfUb8KvQjTM/ZIXudz3tbZKu4pSgMN2v/5tmwWjYL2x9NrG67TN+RAQsMKKaQeWROQ5sOffAWESA== 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=MDZWOgzEjpW0C/Wh9T6hmNseEVClz9yfucfKIufHFV8=; b=Z9qdWvuy7ofFNcthXLNq8EraJ/6bLeGmjLRsB62NWfZGqSvhuGVYvQ0FdY6D6pzWSVv25YRJqFAkzyIc/qjlFKs7Cq6B/gVyfSQj94c9U2VwYAYGmw/EjVIbCEfyyYDKJ+HBwxhbPtntvO4fYfbl7sHw0azcWEC6oPb58bk7F/Q= 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 SJ0PR13MB5769.namprd13.prod.outlook.com (2603:10b6:a03:40c::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6387.30; Fri, 19 May 2023 03:00:11 +0000 Received: from SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::ac2e:52b6:82ec:4994]) by SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::ac2e:52b6:82ec:4994%3]) with mapi id 15.20.6411.017; Fri, 19 May 2023 03:00:11 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, niklas.soderlund@corigine.com, Chaoyong He Subject: [PATCH 0/8] make the logic conform the coding style of DPDK Date: Fri, 19 May 2023 10:59:42 +0800 Message-Id: <20230519025950.1642943-1-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.39.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: SI2PR01CA0005.apcprd01.prod.exchangelabs.com (2603:1096:4:191::23) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|SJ0PR13MB5769:EE_ X-MS-Office365-Filtering-Correlation-Id: a36462f2-4d98-4364-cdb3-08db581528d9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0mvWtSZ9eRV76f9FrZKn+Uvk0UNk+FV04yILcaJOmWpPMzc+OBs8esq95r3LvQCuGNxQBbu9Y7+DQXqHBLytHHFpRLmAY0GuXUJENAHwN50usIkGg16cykhN8nzl+/4rT49zYHJ27NsQiiHtwkSFcc2iGQip5MDA80xoiynH7APlMHqYZy7+HneXy80iO6nH/ml/oFUH7O9WhMD2OJJUS4wYa6xChWLEm1pDD4++9WwAPQRkrGCZd3CEl1+2/EhKHSD5UaYuUWeap/sfpQuZhJEPYfbPGQj3EkyAlnNqwRhCHkAovcs+gmExarFIwFsKF6nBfBXrpD/UlUxS8r4KvIa5T4MAdq1OBqNtrPruNKK8AxONgN9dK82/m/Z0MXYhSFR20E0Rb9snAp491DS1UqrlzxHMQ9FnkXw7BpUTooiC4hkPueMp62kYzIQPDsQ8SmotWFKoKVzQ8CG9DTg36eDyaQmFKAgPhSoWGVpmE+zzmdRR7dP3LqKocHr2h6wYeiqTln184uSHx9ui2TkefV/vnprK3HIo83Q4NbauI/HyBeIcNw/TX6fdLPFX219ZDpoSynJ09PWWukj++dRJBfLITALLYR3tNOJZSvn1PNpJf+kWyEuhESCbd+QiQDED 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:(13230028)(4636009)(366004)(346002)(136003)(376002)(39840400004)(396003)(451199021)(6916009)(66476007)(2616005)(6666004)(6512007)(41300700001)(2906002)(6486002)(83380400001)(478600001)(66556008)(107886003)(52116002)(66946007)(26005)(6506007)(1076003)(186003)(5660300002)(4326008)(316002)(8676002)(8936002)(44832011)(86362001)(38100700002)(36756003)(38350700002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?WjVCeWgvV1gzTHBSQ1FJUTM4bkJ0Y1Z6eHd0a3o5N0lPZG9VYlNvdnV1aHNP?= =?utf-8?B?eENZbW5TTFlkYXJSL09EZUVRS3hOTU1pQjBOSG9BenkxaFpLNEZGOCtNQUcw?= =?utf-8?B?cHBxT0xRcVJUSkVKM21BSXFRMVNDK3hYcFFlRU5mM2N3L2RUZkViU2IyZVVK?= =?utf-8?B?YlRydy8rNFRKQU9yVndyamZyT29KVXJ4NHlKaDlpN1lMVjRrVStrcWFIUlRD?= =?utf-8?B?bjB4RzJuN1g0OTNtMUxSRmJ4ZlhhamJSZERNSXh3emVSYmJRRUNKdjQxOTA3?= =?utf-8?B?QWpLdWdEMmIvVHc1aWxmRXdsc2E5VTA2U1dHRitJNG55NE8rc0pQY3BTYnJQ?= =?utf-8?B?UXkvdi9lN1YxOUMxOStWNHRoVy8rTzVsRGVEYi84MkFKdGU2M3VlRDBubXg3?= =?utf-8?B?RWxsM0VuS1NDSE1MbHNwVnIrZlFYeU9tVDNmT3h3bWV2ZllodWIwT0R4Z0lt?= =?utf-8?B?QXBwWE02dWxlclkxY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5Q0QxMzBKS0tGbGlKdlVPTlBteUxCa2ZGd0lRL3MrL1BI?= =?utf-8?B?SWpxU2xRa2pjaVB0cHllcm82VGJlT0JibzJnNlFkY0xac3hJeVFYL09HVDBl?= =?utf-8?B?NlBYakpHR3lQWEc1U1BMUlFEWDdxT1huWEx4UU9GYkVGQTNWaWJoN2RERlJi?= =?utf-8?B?VG1GZGo4VmdqbENlWWJ2NEFxN0xOWEliVjIzYTk4amc5WG81dG9mTmFWaFFH?= =?utf-8?B?UWV4UUdlSHdqN1ZBWWtObnIyWGdGMmxkWDkwcUVCNXhJc1VlSU1tYkNoa3R5?= =?utf-8?B?azR3MWhYTk5CV2c2SkdmQ3d0dDN3M2QvNEdjbmlmdDNpWWMzb2pybHdoSms1?= =?utf-8?B?ay9JeHI5UldVNmJOaVNmdWNwSGZJUlNhbmVuYnhDamVVMDRZRTd0Sk9xZnd4?= =?utf-8?B?aVc1Qy9ZWVlRZUhaNzJHTkFXOUZWZ2ZLQ2h3MzdKL1B3UnNUb0h2dWhmT3lm?= =?utf-8?B?WU55Y2tVVGpWM1dDdjVYdTE5OGpQNnRKazdFVnlXU0k0ck8zZWNMTjZXcEtC?= =?utf-8?B?ekV5RUZjdzNSdXlMQjR3b2duZEZJbDlLWk5ZUTVUZGhRQjFLeDNpMkRYVnFW?= =?utf-8?B?bjMySGNscTUreFFKL1RPQmlUSkZONCtjNlB4cHB0Z0RUM2plYitNMnNKck9X?= =?utf-8?B?WS9vbFFxU25MTW5JZDQ3WkxXaE93YWgvZ1NHT1BrbHF1UkthRUZ2MFhuNnpy?= =?utf-8?B?RlZsdU5xSk9WalJkaDVJaHpOTTZrdG1LMWd1Q1RZYnA0ZE50bFV0cGhieEtp?= =?utf-8?B?c0E9PQ==?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: a36462f2-4d98-4364-cdb3-08db581528d9 X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 May 2023 03:00:10.9478 (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: DopftSWbpAg2MbceAZnKD3e80Y4v5kM5RFfgvGZX0BmbVes8o6V3iw/Ep/abhI5liNv7oxareqnW7D1uSMolXzhF8hjXGrsjSiJcQXroRdY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR13MB5769 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 Modify some logic of nfp PMD, to make it conform the coding style of DPDK. Also remove some unnecessary macro and functions which DPDK has already provided. Chaoyong He (8): net/nfp: reuse the ring buffer struct net/nfp: modify the rxq struct net/nfp: modify the Rx descriptor struct net/nfp: modify the txq struct net/nfp: remove the custom round macro net/nfp: remove the unneeded comment net/nfp: revise cast from void pointer net/nfp: revise the logic of MAC address drivers/net/nfp/flower/nfp_flower.c | 42 ++-- drivers/net/nfp/flower/nfp_flower_ctrl.c | 8 +- .../net/nfp/flower/nfp_flower_representor.c | 39 ++-- drivers/net/nfp/nfd3/nfp_nfd3_dp.c | 7 +- drivers/net/nfp/nfdk/nfp_nfdk_dp.c | 16 +- drivers/net/nfp/nfp_common.c | 38 +--- drivers/net/nfp/nfp_common.h | 18 +- drivers/net/nfp/nfp_cpp_bridge.c | 14 -- drivers/net/nfp/nfp_cpp_bridge.h | 14 -- drivers/net/nfp/nfp_ctrl.h | 11 -- drivers/net/nfp/nfp_ethdev.c | 33 +--- drivers/net/nfp/nfp_ethdev_vf.c | 34 +--- drivers/net/nfp/nfp_flow.c | 60 +++--- drivers/net/nfp/nfp_rxtx.c | 44 ++--- drivers/net/nfp/nfp_rxtx.h | 187 ++++++++---------- drivers/net/nfp/nfpcore/nfp_cpp_pcie_ops.c | 2 +- drivers/net/nfp/nfpcore/nfp_nsp.h | 4 +- drivers/net/nfp/nfpcore/nfp_nsp_eth.c | 8 +- drivers/net/nfp/nfpcore/nfp_rtsym.c | 4 +- drivers/net/nfp/nfpcore/nfp_rtsym.h | 19 -- 20 files changed, 200 insertions(+), 402 deletions(-) -- 2.39.1