[spp] [PATCH 16/57] spp_vf: add const keyword to parameter
x-fn-spp at sl.ntt-tx.co.jp
x-fn-spp at sl.ntt-tx.co.jp
Thu Dec 28 05:55:23 CET 2017
From: Hiroyuki Nakamura <nakamura.hioryuki at po.ntt-tx.co.jp>
spp_vf supports command for modifying classifier table.
* Misc. modifications.
* Add const keyword to parameter.
Signed-off-by: Kentaro Watanabe <watanabe.kentaro.z01 at as.ntt-tx.co.jp>
Signed-off-by: Yasufum Ogawa <ogawa.yasufumi at lab.ntt.co.jp>
---
src/vf/spp_vf.c | 2 +-
src/vf/spp_vf.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/vf/spp_vf.c b/src/vf/spp_vf.c
index 805c582..45ab6c6 100644
--- a/src/vf/spp_vf.c
+++ b/src/vf/spp_vf.c
@@ -1039,7 +1039,7 @@ int
spp_update_classifier_table(
enum spp_classifier_type type,
const char *data,
- struct spp_config_port_info *port)
+ const struct spp_config_port_info *port)
{
enum port_type if_type = UNDEF;
int if_no = 0;
diff --git a/src/vf/spp_vf.h b/src/vf/spp_vf.h
index f9707d7..4ca4568 100644
--- a/src/vf/spp_vf.h
+++ b/src/vf/spp_vf.h
@@ -73,7 +73,7 @@ int spp_get_process_id(void);
* : SPP_RET_NOT_ADD_PORT(-3)
* : SPP_RET_USED_PORT(-4)
*/
-int spp_update_classifier_table(enum spp_classifier_type type, const char *data, struct spp_config_port_info *port);
+int spp_update_classifier_table(enum spp_classifier_type type, const char *data, const struct spp_config_port_info *port);
/*
* Flush SPP component
--
1.9.1
More information about the spp
mailing list