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 4203341BE7; Mon, 6 Feb 2023 07:15:22 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0556B42DC2; Mon, 6 Feb 2023 07:13:40 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 7C64242D8F for ; Mon, 6 Feb 2023 07:13:35 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1675664015; x=1707200015; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ztNBWHNL/hVN0XlMvMHJGb9UbQJNIzJ47V1BBt0znm0=; b=ffEXgKM/lQCa9AXhwnqiV5SE4Hj7teNVWK8eMJNjcaahERb+0Fyd8qco OGg1WjkBoo+qtu8adU6UcACO2RsXdQd0zt/eX8m7eMwopHnnOTeuMiM+S 2VhWWlwMBm1muGIY2h7GIoQuKI7Sv4H+tmjXJEzxF3gZNXih4rcyAuWlo /O3GbJ52AURanvsSCMaKsnqik3fQBkMZxaXoi16kSQEY0VYzyCunGuDMK jsTejr6CYLP1s2NBxCqe+Ok2RaUmA60e5VEv6JTstiCKn8qO6FF2hmUQf usxjNsfKMEm2o3crw0mViHSZmZht97km6WYXZjeQqReOex+nITvz7noaJ Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10612"; a="308780521" X-IronPort-AV: E=Sophos;i="5.97,276,1669104000"; d="scan'208";a="308780521" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Feb 2023 22:13:35 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10612"; a="755142950" X-IronPort-AV: E=Sophos;i="5.97,276,1669104000"; d="scan'208";a="755142950" Received: from dpdk-beileix-3.sh.intel.com ([10.67.110.253]) by FMSMGA003.fm.intel.com with ESMTP; 05 Feb 2023 22:13:33 -0800 From: beilei.xing@intel.com To: jingjing.wu@intel.com Cc: dev@dpdk.org, qi.z.zhang@intel.com, Beilei Xing Subject: [PATCH v7 16/19] common/idpf: refine API name for vport functions Date: Mon, 6 Feb 2023 05:46:15 +0000 Message-Id: <20230206054618.40975-17-beilei.xing@intel.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20230206054618.40975-1-beilei.xing@intel.com> References: <20230203094340.8103-1-beilei.xing@intel.com> <20230206054618.40975-1-beilei.xing@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 From: Beilei Xing This patch refines API name for all vport related functions. Signed-off-by: Beilei Xing --- drivers/common/idpf/idpf_common_device.c | 8 ++++---- drivers/common/idpf/idpf_common_device.h | 10 +++++----- drivers/common/idpf/version.map | 14 ++++++++------ drivers/net/idpf/idpf_ethdev.c | 10 +++++----- 4 files changed, 22 insertions(+), 20 deletions(-) diff --git a/drivers/common/idpf/idpf_common_device.c b/drivers/common/idpf/idpf_common_device.c index e8d69c2490..e67bd616dc 100644 --- a/drivers/common/idpf/idpf_common_device.c +++ b/drivers/common/idpf/idpf_common_device.c @@ -505,7 +505,7 @@ idpf_vport_deinit(struct idpf_vport *vport) return 0; } int -idpf_config_rss(struct idpf_vport *vport) +idpf_vport_rss_config(struct idpf_vport *vport) { int ret; @@ -531,7 +531,7 @@ idpf_config_rss(struct idpf_vport *vport) } int -idpf_config_irq_map(struct idpf_vport *vport, uint16_t nb_rx_queues) +idpf_vport_irq_map_config(struct idpf_vport *vport, uint16_t nb_rx_queues) { struct idpf_adapter *adapter = vport->adapter; struct virtchnl2_queue_vector *qv_map; @@ -606,7 +606,7 @@ idpf_config_irq_map(struct idpf_vport *vport, uint16_t nb_rx_queues) } int -idpf_config_irq_unmap(struct idpf_vport *vport, uint16_t nb_rx_queues) +idpf_vport_irq_unmap_config(struct idpf_vport *vport, uint16_t nb_rx_queues) { idpf_vc_config_irq_map_unmap(vport, nb_rx_queues, false); @@ -617,7 +617,7 @@ idpf_config_irq_unmap(struct idpf_vport *vport, uint16_t nb_rx_queues) } int -idpf_create_vport_info_init(struct idpf_vport *vport, +idpf_vport_info_init(struct idpf_vport *vport, struct virtchnl2_create_vport *vport_info) { struct idpf_adapter *adapter = vport->adapter; diff --git a/drivers/common/idpf/idpf_common_device.h b/drivers/common/idpf/idpf_common_device.h index 583ca90361..545117df79 100644 --- a/drivers/common/idpf/idpf_common_device.h +++ b/drivers/common/idpf/idpf_common_device.h @@ -183,13 +183,13 @@ int idpf_vport_init(struct idpf_vport *vport, __rte_internal int idpf_vport_deinit(struct idpf_vport *vport); __rte_internal -int idpf_config_rss(struct idpf_vport *vport); +int idpf_vport_rss_config(struct idpf_vport *vport); __rte_internal -int idpf_config_irq_map(struct idpf_vport *vport, uint16_t nb_rx_queues); +int idpf_vport_irq_map_config(struct idpf_vport *vport, uint16_t nb_rx_queues); __rte_internal -int idpf_config_irq_unmap(struct idpf_vport *vport, uint16_t nb_rx_queues); +int idpf_vport_irq_unmap_config(struct idpf_vport *vport, uint16_t nb_rx_queues); __rte_internal -int idpf_create_vport_info_init(struct idpf_vport *vport, - struct virtchnl2_create_vport *vport_info); +int idpf_vport_info_init(struct idpf_vport *vport, + struct virtchnl2_create_vport *vport_info); #endif /* _IDPF_COMMON_DEVICE_H_ */ diff --git a/drivers/common/idpf/version.map b/drivers/common/idpf/version.map index a0e97de81f..bd4dae503a 100644 --- a/drivers/common/idpf/version.map +++ b/drivers/common/idpf/version.map @@ -3,14 +3,18 @@ INTERNAL { idpf_adapter_deinit; idpf_adapter_init; + + idpf_vport_deinit; + idpf_vport_info_init; + idpf_vport_init; + idpf_vport_irq_map_config; + idpf_vport_irq_unmap_config; + idpf_vport_rss_config; + idpf_alloc_single_rxq_mbufs; idpf_alloc_split_rxq_mbufs; idpf_check_rx_thresh; idpf_check_tx_thresh; - idpf_config_irq_map; - idpf_config_irq_unmap; - idpf_config_rss; - idpf_create_vport_info_init; idpf_execute_vc_cmd; idpf_prep_pkts; idpf_register_ts_mbuf; @@ -50,8 +54,6 @@ INTERNAL { idpf_vc_set_rss_key; idpf_vc_set_rss_lut; idpf_vc_switch_queue; - idpf_vport_deinit; - idpf_vport_init; local: *; }; diff --git a/drivers/net/idpf/idpf_ethdev.c b/drivers/net/idpf/idpf_ethdev.c index ee2dec7c7c..b324c0dc83 100644 --- a/drivers/net/idpf/idpf_ethdev.c +++ b/drivers/net/idpf/idpf_ethdev.c @@ -169,7 +169,7 @@ idpf_init_rss(struct idpf_vport *vport) vport->rss_hf = IDPF_DEFAULT_RSS_HASH_EXPANDED; - ret = idpf_config_rss(vport); + ret = idpf_vport_rss_config(vport); if (ret != 0) PMD_INIT_LOG(ERR, "Failed to configure RSS"); @@ -245,7 +245,7 @@ idpf_config_rx_queues_irqs(struct rte_eth_dev *dev) struct idpf_vport *vport = dev->data->dev_private; uint16_t nb_rx_queues = dev->data->nb_rx_queues; - return idpf_config_irq_map(vport, nb_rx_queues); + return idpf_vport_irq_map_config(vport, nb_rx_queues); } static int @@ -334,7 +334,7 @@ idpf_dev_start(struct rte_eth_dev *dev) err_vport: idpf_stop_queues(dev); err_startq: - idpf_config_irq_unmap(vport, dev->data->nb_rx_queues); + idpf_vport_irq_unmap_config(vport, dev->data->nb_rx_queues); err_irq: idpf_vc_dealloc_vectors(vport); err_vec: @@ -353,7 +353,7 @@ idpf_dev_stop(struct rte_eth_dev *dev) idpf_stop_queues(dev); - idpf_config_irq_unmap(vport, dev->data->nb_rx_queues); + idpf_vport_irq_unmap_config(vport, dev->data->nb_rx_queues); idpf_vc_dealloc_vectors(vport); @@ -643,7 +643,7 @@ idpf_dev_vport_init(struct rte_eth_dev *dev, void *init_params) vport->devarg_id = param->devarg_id; memset(&create_vport_info, 0, sizeof(create_vport_info)); - ret = idpf_create_vport_info_init(vport, &create_vport_info); + ret = idpf_vport_info_init(vport, &create_vport_info); if (ret != 0) { PMD_INIT_LOG(ERR, "Failed to init vport req_info."); goto err; -- 2.26.2