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 3D80AA0548; Thu, 2 Jun 2022 03:54:45 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2C2B242670; Thu, 2 Jun 2022 03:54:45 +0200 (CEST) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2117.outbound.protection.outlook.com [40.107.223.117]) by mails.dpdk.org (Postfix) with ESMTP id 5DB444021E for ; Thu, 2 Jun 2022 03:54:44 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kK2bYs1f0r1H0a70I++++GwlFp/VfwKKGFiBthjRljvOoK/3Cvm3q2Z5KQ+DETuxpqFhH2r7LasTYKTH8uG3faV9dWL/V4zvcPXLDEO2AzSdJvZa4u268pjXqF+ydcH2n05oawP9WG01wZRuhdaqXilokEdOFom5SbuxH9pQv6dBgxmP/M1HWzHitELqLHHZUqrnuEc/ybClYi0sqQjNukNe5IiOrTZiAjDDDgnjzt6SKmvSR221HEJ23RReuhwDQ4w9oWEA8py0iML+2o6chj+wfydg79kHHOMarNe7j6pcZUhGoXt7OA/jPiJDfwFh4WMnzlSl18oyLvahEkOwcw== 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=sDQhxEFd2lzdWcSxtS/mozMiE3XF1/yEzL/wpttPoeM=; b=oBtlDoUsuwcnmVDfZ+dwuge0GCi2hxmue632s3usZf9h0j5mfTgT2EInxwHrdcZf31j4RXRmeJDJo4N1FDGN5swUk7jEGjB48M+NuYzJ7g+Bl+T+z5eoihw3CPe8qEVyX+x9xxEmJSlR3YuulQSRwr661O5+qlz/wfRNsvLrFlGnbsHZUIkOOcv/r1Akla6m9eWeelX/p/ttsmib4xiXm9hc/3AMdMH54iPZMQgDtcXl2bQ00b0CrH6Ltp5zFwL+ASR9gp1cSM9KiMb+GQJ9LtFN1hXQtKvLwZ2KfGln+/RSA9LeJoOherKnMBF44LAIPYTr2zv3KGsWxDBCy0s0ZA== 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=sDQhxEFd2lzdWcSxtS/mozMiE3XF1/yEzL/wpttPoeM=; b=gEszQijCT//3vUEBowH07lCTHI6tI3e1hz0k2iJqcL3BZ4e/PQyh/NnLbAqb44ZAHgxWTUUwvZd45vIBPdHDjTl02MEwr0GEo9Xfn47A2YhOi14AYq2xjXbLVCM0PO/+TeW77chmziY+/c63ja8hjnPs8uVeXFim10z+l9vPXbg= 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 CY4PR13MB1349.namprd13.prod.outlook.com (2603:10b6:903:a0::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5314.13; Thu, 2 Jun 2022 01:54:43 +0000 Received: from DM6PR13MB3004.namprd13.prod.outlook.com ([fe80::d902:ed7d:82bb:c753]) by DM6PR13MB3004.namprd13.prod.outlook.com ([fe80::d902:ed7d:82bb:c753%4]) with mapi id 15.20.5314.013; Thu, 2 Jun 2022 01:54:43 +0000 From: Jin Liu To: dev@dpdk.org Cc: niklas.soderlund@corigine.com, Jin Liu , Diana Wang , Peng Zhang , Chaoyong He Subject: [PATCH 04/14] net/nfp: rename set MAC function Date: Thu, 2 Jun 2022 03:52:54 +0200 Message-Id: <20220602015304.710197-5-jin.liu@corigine.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220602015304.710197-1-jin.liu@corigine.com> References: <20220602015304.710197-1-jin.liu@corigine.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: LO4P123CA0457.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:1aa::12) 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: 39809aef-dcfd-4644-fa06-08da443adcc1 X-MS-TrafficTypeDiagnostic: CY4PR13MB1349: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: LYLduHV90usVTrRPvfdFDpvNzDpF99rrCr4Fyh6yL4VGty8BbmBQWiW/K39bHPcQHcJ15a+bCOcINN40T8kFfir81XneoQzNir7x8/BvY9fm2hZdyZL44lezYtRFQ+21XLTUbn4V9eXzWQ4PP3Us7QoIcsT6A15aB8sUIc6XuVuTpydRpk6srFrAHXZRedcaj9gpMhWvx3xmTElmOLpgm6uDLmrl+VTDHWxDovwNm9dc/HH2hhUyvzLrROvnRCFFEF3dDo52EzDbXFVbmx4goJFGMb+GDvC1waueqYT8449oQELRZ/PNg9aauX0kwCmfanqbKC2v4jv6pSP5dDFrAcavnD6dvpTJkKooWm3orc7zROb1hzyRLsAy86Z3qTj6LHWu0jeJ5Zwr7GqUH2joTl4nLTm161MxI/9Jcfv7gfLb7ZBflojULKNMeMIhiMsJFyrQOKaTbCmFd8a08Ao+H9e21CNUMgaWst+KD0rae96vgnTuonVgjKIGfdQ9g5N0ay5xvw4ysu9VraYZri0KhUgVgNq1o4HUzLW0SD0GNUwC8wAYDgrO06FU0T8FaFyqHTuN31SRH+iGaC90KaspwSgCjHvpZYGrY+zsLpfzHFszaqAWg3xe0cyc2xcvtKqi7SYr+9BUL6THcdD76nfq9jfNzHN1Ck8XQNGCeNQdmmY3lh+9fmnEzLJsVrrQooSy0en1U/7UgDyrZGXZrUSeIQ== 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:(13230001)(4636009)(366004)(39840400004)(136003)(376002)(346002)(396003)(6512007)(83380400001)(8936002)(38350700002)(8676002)(66476007)(316002)(4326008)(38100700002)(26005)(66946007)(66556008)(2906002)(6506007)(6486002)(5660300002)(508600001)(6666004)(52116002)(107886003)(1076003)(36756003)(186003)(86362001)(41300700001)(66574015)(44832011)(2616005)(54906003)(6916009); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?SjB0RkdhaThTNzFzL3BzbjZnRldjU0d2UjlqTWRrZG0wNUpiTkpHSElsR0RZ?= =?utf-8?B?OHdiWmV1WjNNaDNxTlp4RXRmRDM0N2d1Zklsd3dYTXlvNlpYMVJBeDlmUi80?= =?utf-8?B?clpnamlsSG1UWHkzYXlqbWY3OEF3TUhQNnVOT21Ma05kdHgxWEFYM25lZWR5?= =?utf-8?B?VjVRd1JONUl0bk9FOFRZcG9xZTMzcFhCd2JlQjc2ckJXVXdIS1JzUUtDQ1Fm?= =?utf-8?B?N0pNWnhZblZWVG9VaG1BYXBGTWpLYVJEV3RscjdHZE5LdVVHaUttWkloMWFl?= =?utf-8?B?ZWdYMGV1ZjFhcCtmclMzc2NjNzh4ekJudzhnQlhaU1VrVDY5VkdaNWgvZWto?= =?utf-8?B?TktueDdtR2FkSE42eGJHZ3JuMmdSTmdwLy9M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xMm1XcFVVU3JwaTcwVGVEaWlOMWFDV1ladVZOTVBoTGZQdkVV?= =?utf-8?B?T0lSb0VMZ0RFWFVkdWR6YlpDS0U4aENsV3I1OU5tQXgybjhnZzdTRElnMjlv?= =?utf-8?B?OWFhTFo0Y0Q5d2lOQWVDaXRJYjNmZXhrVnJXanpvZ2YwRXoxY1BJQT09?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 39809aef-dcfd-4644-fa06-08da443adcc1 X-MS-Exchange-CrossTenant-AuthSource: DM6PR13MB3004.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jun 2022 01:54:43.1494 (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: Dnoflsl3yyJ/XZ/Ky79motHLHTZb7drqRTx/xr3DzjoujhucO8313rXhpu/Zb8Vinmm8pVj+uXtRNS8imwUDzA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR13MB1349 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 b26770dbfb..6cd1085c1c 100644 --- a/drivers/net/nfp/nfp_common.c +++ b/drivers/net/nfp/nfp_common.c @@ -267,7 +267,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 2ca3c0c30a..1dd230bcc6 100644 --- a/drivers/net/nfp/nfp_common.h +++ b/drivers/net/nfp/nfp_common.h @@ -347,7 +347,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 790d575bb8..e491eee99a 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 69d9e0ee47..aa156ad162 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