[spp] [PATCH 41/57] spp_vf: change function names
x-fn-spp at sl.ntt-tx.co.jp
x-fn-spp at sl.ntt-tx.co.jp
Thu Dec 28 05:55:48 CET 2017
From: Hiroyuki Nakamura <nakamura.hioryuki at po.ntt-tx.co.jp>
Change function name in program files according to the change of
the function name from "spp_config_format_if_info" to
"spp_config_format_port_string"
Signed-off-by: Daiki Yamashita <yamashita.daiki.z01 at as.ntt-tx.co.jp>
Signed-off-by: Yasufum Ogawa <ogawa.yasufumi at lab.ntt.co.jp>
---
src/vf/command_proc.c | 2 +-
src/vf/spp_config.c | 2 +-
src/vf/spp_config.h | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/vf/command_proc.c b/src/vf/command_proc.c
index a627277..fe18e22 100644
--- a/src/vf/command_proc.c
+++ b/src/vf/command_proc.c
@@ -235,7 +235,7 @@ int append_classifier_element_value(
json_t *parent_obj = (json_t *)opaque;
char port_str[64];
- spp_config_format_if_info(port_str, port->if_type, port->if_no);
+ spp_config_format_port_string(port_str, port->if_type, port->if_no);
json_array_append_new(parent_obj, json_pack(
"{ssssss}",
diff --git a/src/vf/spp_config.c b/src/vf/spp_config.c
index 01f279a..27bce8f 100644
--- a/src/vf/spp_config.c
+++ b/src/vf/spp_config.c
@@ -200,7 +200,7 @@ spp_config_get_if_info(const char *port, enum port_type *if_type, int *if_no)
/*
* IF種別とIF番号からIF情報文字列を作成する
*/
-int spp_config_format_if_info(char *port, enum port_type if_type, int if_no)
+int spp_config_format_port_string(char *port, enum port_type if_type, int if_no)
{
const char* if_type_str;
diff --git a/src/vf/spp_config.h b/src/vf/spp_config.h
index a9bcb85..7a8bdf6 100644
--- a/src/vf/spp_config.h
+++ b/src/vf/spp_config.h
@@ -114,7 +114,7 @@ int spp_config_get_if_info(const char *port, enum port_type *if_type, int *if_no
* OK : 0
* NG : -1
*/
-int spp_config_format_if_info(char *port, enum port_type if_type, int if_no);
+int spp_config_format_port_string(char *port, enum port_type if_type, int if_no);
/*
* Load config file
--
1.9.1
More information about the spp
mailing list