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 CE6B1A0093; Fri, 17 Jun 2022 11:35:45 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 178BC42905; Fri, 17 Jun 2022 11:35:24 +0200 (CEST) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2094.outbound.protection.outlook.com [40.107.94.94]) by mails.dpdk.org (Postfix) with ESMTP id C3DAA427F3 for ; Fri, 17 Jun 2022 11:35:19 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=W/l4UVBGKFfcWYzPWZeyvnFZx6cpGMqq9JkSXyWhLs/3+RV1nDm8xC9PCypJYmtsKPQizkPaQK8G9UKGSYCleaYm45vYmmOHOJ55SO1L/ZtQuuYegRvXxGHHsA5lSsWnUvRK4E8ltwATsPsyFYYSXNZsUnMMQ2oThKCekmFk+IeNx+Jxsb4R1SbV7D50phAE6dUOuOJuWR5rLDA3kyJRAshMHau4SiHISmS6iz1JWGJNwQ6x4272vmFBd2wOavgzOkXCBBzGm2ZmsamwMkzAuCzlKmMtsOSOGWpk/Q2qmGuUoLKY7PEYzlDqqmaAPbNoH8HpLbk1Zl6T7Ils9Mxb/g== 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=RU9gmDKOVRrLslsiwEu0anotCV1KAc8Bfwn9RI+f7wc=; b=Wn1jg+xgH1vO4RZGJfPxAW75po0tt8hOBqllpiIZ3jcOeMb4rF6CroyyDmx5xyVgRaC4jovqj/+RNva5f4GwG77MqfvsmbVCYs65fe6c+erunsrmEgIDiUYorTuzrTZZLWkw+sRtSxiuFwJxODwDDSF1I18C2X0KeKl23yq1vOhC52Zyewf09dF1SuoTlheyGdwAjL1jU3YLRJHLSso1inudVgvwcg8xySvCKLb+1KqX5b+C5r9sGWsnz5FEXZ4N09uS5uVRTkw6gwoNnMrsB+GXa0E9uWUY3D3KhYYH2nNSfi3gEZOOIRvl9OZoOfxTgBu/bvL/yCS9FQ4vXYaI4Q== 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=RU9gmDKOVRrLslsiwEu0anotCV1KAc8Bfwn9RI+f7wc=; b=knoYWwKICeBDcz2HfJExF5jshtiXMLQzfiylTu6hgHt5ggKC76FKpo5kQWaWP08Rnbv5qdbS+fQcuSBcUE+eS5VC+vH3atbyYCCuhg9Lk3P8jE/amM2Gl6md+OTVu+ppdMacQK7avtgLgEPA6yXclD90d5Dpb6gUEe8e0+6YQKA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=corigine.com; Received: from DM6PR13MB3004.namprd13.prod.outlook.com (2603:10b6:5:191::21) by CO3PR13MB5671.namprd13.prod.outlook.com (2603:10b6:303:17a::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5373.9; Fri, 17 Jun 2022 09:35:18 +0000 Received: from DM6PR13MB3004.namprd13.prod.outlook.com ([fe80::ac31:a36a:cc15:cd35]) by DM6PR13MB3004.namprd13.prod.outlook.com ([fe80::ac31:a36a:cc15:cd35%7]) with mapi id 15.20.5373.009; Fri, 17 Jun 2022 09:35:18 +0000 From: Jin Liu To: dev@dpdk.org Cc: niklas.soderlund@corigine.com, Jin Liu , Diana Wang , Peng Zhang , Chaoyong He Subject: [PATCH v3 04/13] net/nfp: rename set MAC function Date: Fri, 17 Jun 2022 11:34:35 +0200 Message-Id: <20220617093444.2004000-5-jin.liu@corigine.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220617093444.2004000-1-jin.liu@corigine.com> References: <20220616023939.1798769-1-jin.liu@corigine.com> <20220617093444.2004000-1-jin.liu@corigine.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: LO4P123CA0192.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:1a4::17) To DM6PR13MB3004.namprd13.prod.outlook.com (2603:10b6:5:191::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 73887dc1-7bf4-4dc3-953f-08da5044b0e4 X-MS-TrafficTypeDiagnostic: CO3PR13MB5671:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: h68SeP2Cx0DJWOBRolL7458txRGd4eL2woU4/1SeR/YlN7VmqYH6aAjFVOxZVit6w2oSD2CUJpb3mTQrH1NUWXr0UKefviaPQlxYH68bSMyOYCl2FLITEAfg02+rmVwA1ibF+hEFagpL9yttSEEwkDgxbdUzZPOglTEvWAssQJuN1WZLAcVOZ5iE3HyEqGvIvlnyijSaBDT8Q65NJzBpLUEjybwe1GRs7k2ryT/aTK8yOaJ8pQz1BHJhkxrZXZLBypb22aiiSlVijogDraix40LMdNDZWc4pLELXciTx6EYfD365ha6A0+LeiVNcRF6edB7haEYlqRX1FjW8Q3hSLH1T9j/KBAT+i2/xr5V/S5qFVzD4W7PkEe/blgfY+bTFswwDGP5r2qGCHJhTp5uk5nqoFbl5ncT+pB7/GQ+jLjpKoo+yDbflThOwiX+HUJ56ovy6mMSyBTpHTzJr1EX0Uy1lkJVLGgUq1/AUj1rDYhWrUkPO48sgsC7mm4BSS0R9cx1XSanMCWDFLJDXZHDITfG2hfiwwV2Pz4pvN527gfMN/tMMXNcXMpMa6Za8G6NxhDlL5LXbni5xV8QIMihm5dTUMgvnEAb935RHft2ansRrDLJ7O13rlIqvG299CIQML1dX8TZhsH9XIAyyvNpTIj7m9Kyb1o83xzWx1yecQUPEYU0couroufKerOgeVVBY9XwQvKlwKSHjaun6Es5SyvqTdlkNZQpoSX5NJc50We3rUydkaF1SKltMGq/j0IEg X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR13MB3004.namprd13.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(4636009)(346002)(136003)(366004)(396003)(39840400004)(66476007)(66556008)(26005)(8676002)(66574015)(6666004)(107886003)(66946007)(6506007)(6916009)(44832011)(2906002)(316002)(4326008)(38350700002)(186003)(508600001)(54906003)(5660300002)(6486002)(6512007)(1076003)(8936002)(2616005)(36756003)(52116002)(83380400001)(86362001)(38100700002)(41300700001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?VmM0WjhINTN0cGVTT0hiQkZCa01Ja3JmUkVZSzEzb3dBSERHZzFZN2hqSGRE?= =?utf-8?B?dE5LQ3lxWDdRNGxlSGlKMENkUEIvV2pDZnNrU2oxV0d2dmxRWUxKNExrNzZT?= =?utf-8?B?MGVyWGxUMWxMWXlPWmV5eElybHViV1FYMjRpdjNpR0N2a0d3VE81NGFaQWZk?= =?utf-8?B?SVI0SUZSY0phM0xjY25xMVhVWjNFWk11RS9EZXg1Zk01OUJqeTA4aXVjeWpJ?= =?utf-8?B?M0xjcXVETEMzQUlBc0RYNEdvVjB0Q2lUTCsvbllEWmQ1WlhDLytOSG9JS29K?= =?utf-8?B?dW9XUExyeUdTMm9hWGp3Z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ck5STE9M?= =?utf-8?B?cmlmREEvbXhEL2srQ1cwSk1haWwyQWFQTUpMcXNGQmJSeGFZTGFyaTJzSExj?= =?utf-8?B?dS9BQlBsS0pUQVAxS0JxUWJrV2VRa3RDWG9URXBoOFVCQmhiK0lFTG9ZWkti?= =?utf-8?B?WGFHTTlCRlF3Qjd1RmVjVmtPS0MrL05SUllGUFZucUlTV0tLUWxQam9DSkhn?= =?utf-8?B?S1hCT0hOcjVoZjRNT3V3NHJURmxaMWdIbEw1SlRWaDQ4dmthSVNEdz09?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 73887dc1-7bf4-4dc3-953f-08da5044b0e4 X-MS-Exchange-CrossTenant-AuthSource: DM6PR13MB3004.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jun 2022 09:35:18.4771 (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: QK01oppOZVUzAqdNawSKvKeC7I2SsQCBGMrIVNw9GXlrNL7gQpvLhkVbYU8NpbN7d6Z41neoauPA+FX5+xb2NA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO3PR13MB5671 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 The NFP eth driver function name start with 'nfp_net', but set_mac function start with 'nfp' only, rename it, be consistent with others. Signed-off-by: Jin Liu Signed-off-by: Diana Wang Signed-off-by: Peng Zhang Signed-off-by: Chaoyong He Signed-off-by: Niklas Söderlund --- drivers/net/nfp/nfp_common.c | 2 +- drivers/net/nfp/nfp_common.h | 2 +- drivers/net/nfp/nfp_ethdev.c | 2 +- drivers/net/nfp/nfp_ethdev_vf.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/nfp/nfp_common.c b/drivers/net/nfp/nfp_common.c index 34e3a03edd..9903a1bd5a 100644 --- a/drivers/net/nfp/nfp_common.c +++ b/drivers/net/nfp/nfp_common.c @@ -274,7 +274,7 @@ nfp_net_write_mac(struct nfp_net_hw *hw, uint8_t *mac) } int -nfp_set_mac_addr(struct rte_eth_dev *dev, struct rte_ether_addr *mac_addr) +nfp_net_set_mac_addr(struct rte_eth_dev *dev, struct rte_ether_addr *mac_addr) { struct nfp_net_hw *hw; uint32_t update, ctrl; diff --git a/drivers/net/nfp/nfp_common.h b/drivers/net/nfp/nfp_common.h index 49d6bb6ad5..8e1b4fb6a4 100644 --- a/drivers/net/nfp/nfp_common.h +++ b/drivers/net/nfp/nfp_common.h @@ -350,7 +350,7 @@ void nfp_net_disable_queues(struct rte_eth_dev *dev); void nfp_net_params_setup(struct nfp_net_hw *hw); void nfp_eth_copy_mac(uint8_t *dst, const uint8_t *src); void nfp_net_write_mac(struct nfp_net_hw *hw, uint8_t *mac); -int nfp_set_mac_addr(struct rte_eth_dev *dev, struct rte_ether_addr *mac_addr); +int nfp_net_set_mac_addr(struct rte_eth_dev *dev, struct rte_ether_addr *mac_addr); int nfp_configure_rx_interrupt(struct rte_eth_dev *dev, struct rte_intr_handle *intr_handle); uint32_t nfp_check_offloads(struct rte_eth_dev *dev); diff --git a/drivers/net/nfp/nfp_ethdev.c b/drivers/net/nfp/nfp_ethdev.c index 36ab31b688..b80109ec37 100644 --- a/drivers/net/nfp/nfp_ethdev.c +++ b/drivers/net/nfp/nfp_ethdev.c @@ -344,7 +344,7 @@ static const struct eth_dev_ops nfp_net_eth_dev_ops = { .dev_infos_get = nfp_net_infos_get, .dev_supported_ptypes_get = nfp_net_supported_ptypes_get, .mtu_set = nfp_net_dev_mtu_set, - .mac_addr_set = nfp_set_mac_addr, + .mac_addr_set = nfp_net_set_mac_addr, .vlan_offload_set = nfp_net_vlan_offload_set, .reta_update = nfp_net_reta_update, .reta_query = nfp_net_reta_query, diff --git a/drivers/net/nfp/nfp_ethdev_vf.c b/drivers/net/nfp/nfp_ethdev_vf.c index 8d68ccbc95..08077632c6 100644 --- a/drivers/net/nfp/nfp_ethdev_vf.c +++ b/drivers/net/nfp/nfp_ethdev_vf.c @@ -251,7 +251,7 @@ static const struct eth_dev_ops nfp_netvf_eth_dev_ops = { .dev_infos_get = nfp_net_infos_get, .dev_supported_ptypes_get = nfp_net_supported_ptypes_get, .mtu_set = nfp_net_dev_mtu_set, - .mac_addr_set = nfp_set_mac_addr, + .mac_addr_set = nfp_net_set_mac_addr, .vlan_offload_set = nfp_net_vlan_offload_set, .reta_update = nfp_net_reta_update, .reta_query = nfp_net_reta_query, -- 2.27.0