hsa: use tcp for vcl test control channel
[vpp.git] / src / plugins / hs_apps / vcl / vcl_test.h
index 6bb3446..5b3ae65 100644 (file)
@@ -67,6 +67,8 @@
 #define VCL_TEST_CFG_MAX_TEST_SESS     32
 #define VCL_TEST_CFG_MAX_EPOLL_EVENTS  16
 
+#define VCL_TEST_CTRL_LISTENER         (~0 - 1)
+#define VCL_TEST_DATA_LISTENER         (~0)
 #define VCL_TEST_DELAY_DISCONNECT      1
 #define VCL_TEST_SEPARATOR_STRING      \
   "  -----------------------------\n"
@@ -79,11 +81,19 @@ typedef enum
   VCL_TEST_TYPE_EXIT,
 } vcl_test_t;
 
+typedef enum
+{
+  VCL_TEST_CMD_SYNC,
+  VCL_TEST_CMD_START,
+  VCL_TEST_CMD_STOP,
+} vcl_test_cmd_t;
+
 typedef struct __attribute__ ((packed))
 {
   uint32_t magic;
   uint32_t seq_num;
   uint32_t test;
+  uint32_t cmd;
   uint32_t ctrl_handle;
   uint32_t num_test_sessions;
   uint32_t num_test_sessions_perq;