Soft Patch Panel
 help / color / Atom feed
From: yasufum.o@gmail.com
To: spp@dpdk.org, ferruh.yigit@intel.com, yasufum.o@gmail.com
Subject: [spp] [PATCH] shared: rename func spp_check_used_port
Date: Thu, 12 Sep 2019 20:40:35 +0900
Message-ID: <20190912114035.12591-1-yasufum.o@gmail.com> (raw)

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

This update is to rename spp_check_used_port() to
sppwk_check_used_port() for conventions.

Signed-off-by: Yasufumi Ogawa <yasufum.o@gmail.com>
---
 src/shared/secondary/spp_worker_th/cmd_parser.c | 6 +++---
 src/shared/secondary/spp_worker_th/cmd_utils.c  | 6 +++---
 src/shared/secondary/spp_worker_th/cmd_utils.h  | 2 +-
 3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/shared/secondary/spp_worker_th/cmd_parser.c b/src/shared/secondary/spp_worker_th/cmd_parser.c
index a136b84..3f947f5 100644
--- a/src/shared/secondary/spp_worker_th/cmd_parser.c
+++ b/src/shared/secondary/spp_worker_th/cmd_parser.c
@@ -463,10 +463,10 @@ parse_port(void *output, const char *arg_val, int allow_override)
 	/* If action is `add`, check the port is already used for rx and tx. */
 	if (allow_override == 0) {
 		if ((port->wk_action == SPPWK_ACT_ADD) &&
-				(spp_check_used_port(tmp_port.iface_type,
+				(sppwk_check_used_port(tmp_port.iface_type,
 						tmp_port.iface_no,
 						SPPWK_PORT_DIR_RX) >= 0) &&
-				(spp_check_used_port(tmp_port.iface_type,
+				(sppwk_check_used_port(tmp_port.iface_type,
 						tmp_port.iface_no,
 						SPPWK_PORT_DIR_TX) >= 0)) {
 			RTE_LOG(ERR, WK_CMD_PARSER,
@@ -498,7 +498,7 @@ parse_port_direction(void *output, const char *arg_val, int allow_override)
 	/* add vlantag command check */
 	if (allow_override == 0) {
 		if ((port->wk_action == SPPWK_ACT_ADD) &&
-				(spp_check_used_port(port->port.iface_type,
+				(sppwk_check_used_port(port->port.iface_type,
 					port->port.iface_no, ret) >= 0)) {
 			RTE_LOG(ERR, WK_CMD_PARSER,
 				"Port in used. (port command) val=%s\n",
diff --git a/src/shared/secondary/spp_worker_th/cmd_utils.c b/src/shared/secondary/spp_worker_th/cmd_utils.c
index 1606d4f..f3d5de8 100644
--- a/src/shared/secondary/spp_worker_th/cmd_utils.c
+++ b/src/shared/secondary/spp_worker_th/cmd_utils.c
@@ -519,7 +519,7 @@ sppwk_is_lcore_updated(unsigned int lcore_id)
 
 /* Check if component is using port. */
 int
-spp_check_used_port(
+sppwk_check_used_port(
 		enum port_type iface_type,
 		int iface_no,
 		enum sppwk_port_dir dir)
@@ -562,14 +562,14 @@ set_component_change_port(struct sppwk_port_info *port,
 {
 	int ret = 0;
 	if ((dir == SPPWK_PORT_DIR_RX) || (dir == SPPWK_PORT_DIR_BOTH)) {
-		ret = spp_check_used_port(port->iface_type, port->iface_no,
+		ret = sppwk_check_used_port(port->iface_type, port->iface_no,
 				SPPWK_PORT_DIR_RX);
 		if (ret >= 0)
 			*(g_mng_data.p_change_component + ret) = 1;
 	}
 
 	if ((dir == SPPWK_PORT_DIR_TX) || (dir == SPPWK_PORT_DIR_BOTH)) {
-		ret = spp_check_used_port(port->iface_type, port->iface_no,
+		ret = sppwk_check_used_port(port->iface_type, port->iface_no,
 				SPPWK_PORT_DIR_TX);
 		if (ret >= 0)
 			*(g_mng_data.p_change_component + ret) = 1;
diff --git a/src/shared/secondary/spp_worker_th/cmd_utils.h b/src/shared/secondary/spp_worker_th/cmd_utils.h
index db12e75..df1b0dc 100644
--- a/src/shared/secondary/spp_worker_th/cmd_utils.h
+++ b/src/shared/secondary/spp_worker_th/cmd_utils.h
@@ -225,7 +225,7 @@ int sppwk_is_lcore_updated(unsigned int lcore_id);
  * @retval 0~127      If match component ID
  * @retval SPPWK_RET_NG If failed.
  */
-int spp_check_used_port(
+int sppwk_check_used_port(
 		enum port_type iface_type,
 		int iface_no,
 		enum sppwk_port_dir dir);
-- 
2.17.1


                 reply index

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publically to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190912114035.12591-1-yasufum.o@gmail.com \
    --to=yasufum.o@gmail.com \
    --cc=ferruh.yigit@intel.com \
    --cc=spp@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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