Soft Patch Panel
 help / color / mirror / Atom feed
From: Yasufumi Ogawa <yasufum.o@gmail.com>
To: spp@dpdk.org, ferruh.yigit@intel.com, yasufum.o@gmail.com
Subject: [spp] [PATCH 2/6] spp_vf: rename func spp_classifier_mac_init
Date: Fri,  2 Aug 2019 18:33:54 +0900	[thread overview]
Message-ID: <20190802093358.13696-3-yasufum.o@gmail.com> (raw)
In-Reply-To: <20190802093358.13696-1-yasufum.o@gmail.com>

This update is to rename spp_classifier_mac_init() to
init_cls_mng_info() because this function is just to initialize
management info with memset().

Signed-off-by: Yasufumi Ogawa <yasufum.o@gmail.com>
---
 src/vf/classifier.c | 2 +-
 src/vf/classifier.h | 2 +-
 src/vf/spp_vf.c     | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/vf/classifier.c b/src/vf/classifier.c
index 49c7d01..be50916 100644
--- a/src/vf/classifier.c
+++ b/src/vf/classifier.c
@@ -703,7 +703,7 @@ change_classifier_index(struct management_info *mng_info, int id)
 
 /* classifier(mac address) initialize globals. */
 int
-spp_classifier_mac_init(void)
+init_cls_mng_info(void)
 {
 	memset(g_mng_infos, 0, sizeof(g_mng_infos));
 	return 0;
diff --git a/src/vf/classifier.h b/src/vf/classifier.h
index ca8d8da..69cbb88 100644
--- a/src/vf/classifier.h
+++ b/src/vf/classifier.h
@@ -25,7 +25,7 @@ struct spp_iterate_classifier_table_params;
  * @retval SPPWK_RET_OK succeeded.
  * @retval SPPWK_RET_NG failed.
  */
-int spp_classifier_mac_init(void);
+int init_cls_mng_info(void);
 
 /**
  * initialize classifier information.
diff --git a/src/vf/spp_vf.c b/src/vf/spp_vf.c
index 2091023..e10ae71 100644
--- a/src/vf/spp_vf.c
+++ b/src/vf/spp_vf.c
@@ -265,7 +265,7 @@ main(int argc, char *argv[])
 		if (unlikely(ret_mng != SPPWK_RET_OK))
 			break;
 
-		int ret_classifier_mac_init = spp_classifier_mac_init();
+		int ret_classifier_mac_init = init_cls_mng_info();
 		if (unlikely(ret_classifier_mac_init != SPPWK_RET_OK))
 			break;
 
-- 
2.17.1


  parent reply	other threads:[~2019-08-02  9:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-02  9:33 [spp] [PATCH 0/6] Refactor classifier of spp_vf Yasufumi Ogawa
2019-08-02  9:33 ` [spp] [PATCH 1/6] spp_vf: rename file classifier_mac Yasufumi Ogawa
2019-08-02  9:33 ` Yasufumi Ogawa [this message]
2019-08-02  9:33 ` [spp] [PATCH 3/6] spp_vf: remove no meaning int variables Yasufumi Ogawa
2019-08-02  9:33 ` [spp] [PATCH 4/6] spp_vf: rename management_info to cls_mng_info Yasufumi Ogawa
2019-08-02  9:33 ` [spp] [PATCH 5/6] spp_vf: refactor variables in classifier.c Yasufumi Ogawa
2019-08-02  9:33 ` [spp] [PATCH 6/6] spp_vf: rename spp_classifier_mac_do Yasufumi Ogawa

Reply instructions:

You may reply publicly 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=20190802093358.13696-3-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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).