From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail04.ics.ntt-tx.co.jp (mail05.ics.ntt-tx.co.jp [210.232.35.69]) by dpdk.org (Postfix) with ESMTP id E807F5A44 for ; Wed, 21 Nov 2018 02:41:08 +0100 (CET) Received: from gwchk03.silk.ntt-tx.co.jp (gwchk03.silk.ntt-tx.co.jp [10.107.0.111]) by mail04.ics.ntt-tx.co.jp (unknown) with ESMTP id wAL1f7Jd002684; Wed, 21 Nov 2018 10:41:07 +0900 Received: (from root@localhost) by gwchk03.silk.ntt-tx.co.jp (unknown) id wAL1f5ao004480; Wed, 21 Nov 2018 10:41:05 +0900 Received: from gwchk.silk.ntt-tx.co.jp [10.107.0.110] by gwchk03.silk.ntt-tx.co.jp with ESMTP id LAA01795; Wed, 21 Nov 2018 10:36:00 +0900 Received: from imss03.silk.ntt-tx.co.jp (localhost [127.0.0.1]) by imss03.silk.ntt-tx.co.jp (unknown) with ESMTP id wAL1a0nN009627; Wed, 21 Nov 2018 10:36:00 +0900 Received: from mgate02.silk.ntt-tx.co.jp (smtp02.silk.ntt-tx.co.jp [10.107.0.37]) by imss03.silk.ntt-tx.co.jp (unknown) with ESMTP id wAL1a0YQ009624; Wed, 21 Nov 2018 10:36:00 +0900 Message-Id: <201811210136.wAL1a0YQ009624@imss03.silk.ntt-tx.co.jp> Received: from localhost by mgate02.silk.ntt-tx.co.jp (unknown) id wAL1ZwWa008346 ; Wed, 21 Nov 2018 10:36:00 +0900 From: x-fn-spp@sl.ntt-tx.co.jp To: ferruh.yigit@intel.com, ogawa.yasufumi@lab.ntt.co.jp Cc: spp@dpdk.org Date: Wed, 21 Nov 2018 10:35:43 +0900 X-Mailer: git-send-email 2.18.0 In-Reply-To: <20181121013558.8869-1-x-fn-spp@sl.ntt-tx.co.jp> References: <20181121013558.8869-1-x-fn-spp@sl.ntt-tx.co.jp> X-TM-AS-MML: No Subject: [spp] [PATCH 08/23] spp_vf: move defines for decode to common dir X-BeenThere: spp@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Soft Patch Panel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Nov 2018 01:41:09 -0000 From: Hideyuki Yamashita Move defines, enums and structs used for decode to common directory. Signed-off-by: Hideyuki Yamashita Signed-off-by: Naoki Takada --- 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