Soft Patch Panel
 help / color / Atom feed
* [spp] [PATCH] shared: remove unused spp_get_component_core
@ 2019-09-12 11:40 yasufum.o
  0 siblings, 0 replies; only message in thread
From: yasufum.o @ 2019-09-12 11:40 UTC (permalink / raw)
  To: spp, ferruh.yigit, yasufum.o

From: Yasufumi Ogawa <yasufum.o@gmail.com>

spp_get_component_core() is used for getting information of given lcore
ID, but not used from anywhere.

Signed-off-by: Yasufumi Ogawa <yasufum.o@gmail.com>
---
 src/shared/secondary/spp_worker_th/cmd_utils.c | 9 ---------
 src/shared/secondary/spp_worker_th/cmd_utils.h | 8 --------
 2 files changed, 17 deletions(-)

diff --git a/src/shared/secondary/spp_worker_th/cmd_utils.c b/src/shared/secondary/spp_worker_th/cmd_utils.c
index 2c50dcd..15ceb6f 100644
--- a/src/shared/secondary/spp_worker_th/cmd_utils.c
+++ b/src/shared/secondary/spp_worker_th/cmd_utils.c
@@ -499,15 +499,6 @@ spp_get_component_type(int id)
 	return component_info->wk_type;
 }
 
-/* Get core ID of target component */
-unsigned int
-spp_get_component_core(int component_id)
-{
-	struct sppwk_comp_info *info =
-			(g_mng_data.p_component_info + component_id);
-	return info->lcore_id;
-}
-
 /* Get core information which is in use */
 struct core_info *
 get_core_info(unsigned int lcore_id)
diff --git a/src/shared/secondary/spp_worker_th/cmd_utils.h b/src/shared/secondary/spp_worker_th/cmd_utils.h
index c778151..fb68905 100644
--- a/src/shared/secondary/spp_worker_th/cmd_utils.h
+++ b/src/shared/secondary/spp_worker_th/cmd_utils.h
@@ -204,14 +204,6 @@ int init_mng_data(void);
 /* Remove sock file if spp is not running */
 void del_vhost_sockfile(struct sppwk_port_info *vhost);
 
-/**
- * Get core ID of target component
- *
- * @param component_id Unique component ID.
- * @return Logical core id of specified component.
- */
-unsigned int spp_get_component_core(int component_id);
-
 /* Get core information which is in use */
 struct core_info *get_core_info(unsigned int lcore_id);
 
-- 
2.17.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-12 11:40 [spp] [PATCH] shared: remove unused spp_get_component_core yasufum.o

Soft Patch Panel

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/spp/0 spp/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 spp spp/ http://inbox.dpdk.org/spp \
		spp@dpdk.org
	public-inbox-index spp


Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.spp


AGPL code for this site: git clone https://public-inbox.org/ public-inbox