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 0DA2AA0547; Thu, 16 Jun 2022 04:41:13 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D66AC42BB5; Thu, 16 Jun 2022 04:41:07 +0200 (CEST) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2104.outbound.protection.outlook.com [40.107.94.104]) by mails.dpdk.org (Postfix) with ESMTP id D246C42BD7 for ; Thu, 16 Jun 2022 04:41:05 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Bt7aHvekZ6XJmweDUE/kevrXBpehPsCdCIwgyLNPjyZuv4TdYDgFjnWgXphxNTynDJsmpoJ8OFHnKqKCCixZZes4oXetJ41LdKZHI8cYvoWRwtp2/kdvD8JEggl4Hv0du8hM5F6yhCa71t37v9ym9p/e5/aOZn48M0qo9ffufNclacyEUP3D/Bw5JXlxOW8AMgtQJSYgeHYbokuM+bd4WW9UsVGPCvhrk9zE2DEGxDvDqQ6/6V/GPrj1I+7dFy15MkdpSQCAVX/yyJ09vML/n0Uun/5ewqsc+9DRDvosrxCoJAY+1uPPFnhubEwnCCwhjrGN8UDyP4Vjf0JBGGFmmg== 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=avAjwGqm0JD4bXy+6QvLvTL/oqs57rjHA2F8I6eyelRhhxaGsf3NSZefsupFZEnDbT1Ae0P7ii8F02p6y7JhGRd5OyNk3avsT1qOmtjmC/yybl4lji88MrAnfztqcdWbqcY6gecO3xsURH2P2I5qKeweDd3b/cX6uig3KP0/Ak8/9ArCa6EBrWLbYMcNLlwR3x7Q90x5IxpgQlCPKqb4YaSnll+U7IjpsB74x2w+CF35ytMeIXRAqXmX2F63HTglf0McstUx0vspylZg/ifDf8zZc2jOvZxnSu4zOUKXTlXEB1zb/al6ZZs9QkSL+XNVncYl1L05FRPFsNy++XHSgg== 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=q9tx0m5J6NGJiF6+u85RGTYvrux7eHV7d0G2tU9AzYGxpWgsdwniUKzNhQqzhDbH3wuA6nh1KUhlc6RKlPd+apoeS31aHRrcFnlbyoF2ind3PsA92PYD5y+QJzyGVFy82/OiS9AARXkMkHEfv0T+63SShDXg0cu4uMobEOnWiEs= 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 DM6PR13MB2345.namprd13.prod.outlook.com (2603:10b6:5:be::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5373.9; Thu, 16 Jun 2022 02:41:04 +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.5353.011; Thu, 16 Jun 2022 02:41:04 +0000 From: Jin Liu To: dev@dpdk.org Cc: niklas.soderlund@corigine.com, Jin Liu , Diana Wang , Peng Zhang , Chaoyong He Subject: [PATCH v2 06/15] net/nfp: rename set MAC function Date: Thu, 16 Jun 2022 04:39:30 +0200 Message-Id: <20220616023939.1798769-7-jin.liu@corigine.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220616023939.1798769-1-jin.liu@corigine.com> References: <20220602015304.710197-1-jin.liu@corigine.com> <20220616023939.1798769-1-jin.liu@corigine.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: LO4P123CA0087.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:190::20) 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: a3537592-a24f-45f7-ba74-08da4f41a829 X-MS-TrafficTypeDiagnostic: DM6PR13MB2345: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: KNfX0dQhYWMWDmrsrQCnb2R2ax6DQLrAXSgf8SxfbLUD0nMj2PxT3yojSWcNl58ia/45DfbTpKXDiWIUVW2AIA+nGHZSdziWJuYPO1XKVO0Oau9fYTIiZeSmUkm1DacVs+OVuqWecwXMrn4H/iHxBQFvm7v+PP0KqPgGNWmENfLpxxdyiwr9YUyksJDQwZlViI5wB25JRFJQLNgCHsTOP8DHyT8+B11/Gi28HIgulvv4Jt/wqGS7zqd1yi8/1wrNMMbtoFKusYhCi13Aj09WO4Ni8RWeVENaO6X1xEdkQHHG3NT4+L1TaNsDVZLqoTb8wlsT8VpFAnspRSRuEkH6QljKzqZa5QDwE8BuD2QvxxuR3I0cFZuN6XTDBht9y1tKG7+8MhJAJ5vNf/ca6SR8kXMu67Y+ygGZA9l2izxgrhPy4dwJSVRO/YNBouSIEAIBUCWFWl4UYah/0F0XXc0HE25H2I4wFZ0S9LX1H2MFDPjTLp2Cr9+JmF9NFErcT9nysIQ5ESQT3EWJbWBmuDZmWdu+nK6K1bHWzkpHsuUg3r8GgAuIzb2EoHCmDorEfhOWTNSPFb0E5ENZ5941DcDkQy88OeUnKt5agXXV0YcEErI5IbN4rIB7oLc8eHpZWbtSrFcHkHoemjJPdtbZS19RaEnUyJvmbEAncNJ0b1rJLORDZkxOWlU6P2ERhbahC1Ij3Q/FPs0QA3fnqOfn8uIb4Q== 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)(396003)(366004)(39830400003)(136003)(6506007)(6666004)(26005)(316002)(66574015)(186003)(107886003)(6486002)(508600001)(41300700001)(2616005)(83380400001)(1076003)(36756003)(54906003)(6916009)(66556008)(8676002)(2906002)(4326008)(44832011)(38350700002)(6512007)(52116002)(5660300002)(66476007)(66946007)(86362001)(8936002)(38100700002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?YWhsMDAraXFzd3VMTlhLWGI5SDEwNiswTjVsRnZobkx0WGNUakpiT3d6Rk9E?= =?utf-8?B?NEkvSVhqc3BnOXIrQlpCb2RNWk9nckRYcG5xT3R3UDNuYTB4d0pjcW5hQlk4?= =?utf-8?B?UnNtemQ1RGJnRlRHTjJ5bWhBTjFhWDBRNGZwY0ZaRXlBUHZOaHNxYW44VU9q?= =?utf-8?B?Wmp3cUNBQ1N6d0hYK0txZzdDeUtPMHZLSFVBYVZUZEVrM1lxVU5VeDRyN1J6?= =?utf-8?B?UHhob1RyYVpUVXU1TDdpV29nNnJGb3QyT3lDSVRzTEFVTmRpMVV5S1VORmUw?= =?utf-8?B?TkhmcGJXU0VzZFhCbVpHcld1YkpsNWtZZXlZOGR5Z0tBK3dYV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ZxLzZIMUVtcEJ6Zmk4VThHcndJ?= =?utf-8?B?aE9DblppbGJVUHIraW1yYmM5Q1piYWtlYk10TG0rNVRXYnhQQ1VoRWZSNEJ6?= =?utf-8?B?S21Ga0t5Z1Q0dXliQmwxcmh3aHVURFFkMy9zRy9hOEc3WURyaUNsWVNVTkFC?= =?utf-8?B?ZTFpK0laaE1yTTU2YUtmWUdtdmhRTjlnMEdUMVQ0YWpFQitBODhydz09?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: a3537592-a24f-45f7-ba74-08da4f41a829 X-MS-Exchange-CrossTenant-AuthSource: DM6PR13MB3004.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jun 2022 02:41:04.2403 (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: Dj0ev/zEokmTaAgCCsb16ixdpSKubidJsgf5gdOQoAJ9cSoxtidOwRSz4F+rmTbmBpVNFxCdbTD8Iu+0ydnx+A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR13MB2345 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