[spp] [PATCH 08/23] spp_vf: move defines for decode to common dir

x-fn-spp at sl.ntt-tx.co.jp x-fn-spp at sl.ntt-tx.co.jp
Wed Nov 21 02:35:43 CET 2018


From: Hideyuki Yamashita <yamashita.hideyuki at po.ntt-tx.co.jp>

Move defines, enums and structs used for decode to common directory.

Signed-off-by: Hideyuki Yamashita <yamashita.hideyuki at po.ntt-tx.co.jp>
Signed-off-by: Naoki Takada <takada.naoki at lab.ntt.co.jp>
---
 src/vf/common/command_dec.h | 15 +++++++++++++++
 src/vf/spp_vf.h             |  9 ---------
 2 files changed, 15 insertions(+), 9 deletions(-)

diff --git a/src/vf/common/command_dec.h b/src/vf/common/command_dec.h
index 281a8c4..538eb57 100644
--- a/src/vf/common/command_dec.h
+++ b/src/vf/common/command_dec.h
@@ -37,6 +37,21 @@ enum spp_command_decode_error_code {
 	SPP_CMD_DERR_BAD_VALUE,       /**< Wrong value */
 };
 
+/**
+ * Define actions of each of components
+ *  The Run option of the folllwing commands.
+ *   compomnent       : start,stop
+ *   port             : add,del
+ *   classifier_table : add,del
+ */
+enum spp_command_action {
+	SPP_CMD_ACTION_NONE,  /**< none */
+	SPP_CMD_ACTION_START, /**< start */
+	SPP_CMD_ACTION_STOP,  /**< stop */
+	SPP_CMD_ACTION_ADD,   /**< add */
+	SPP_CMD_ACTION_DEL,   /**< delete */
+};
+
 /**
  * spp command type.
  *
diff --git a/src/vf/spp_vf.h b/src/vf/spp_vf.h
index 1a49847..f540122 100644
--- a/src/vf/spp_vf.h
+++ b/src/vf/spp_vf.h
@@ -18,15 +18,6 @@
 /** The max number of client ID */
 #define SPP_CLIENT_MAX    128
 
-/** command setting type */
-enum spp_command_action {
-	SPP_CMD_ACTION_NONE,  /**< none */
-	SPP_CMD_ACTION_START, /**< start */
-	SPP_CMD_ACTION_STOP,  /**< stop */
-	SPP_CMD_ACTION_ADD,   /**< add */
-	SPP_CMD_ACTION_DEL,   /**< delete */
-};
-
 /**
  * Get client ID
  *
-- 
2.18.0



More information about the spp mailing list