summaryrefslogtreecommitdiff
path: root/app/include
diff options
context:
space:
mode:
authorQiuwen Lu <[email protected]>2017-03-22 14:41:35 +0800
committerQiuwen Lu <[email protected]>2017-03-22 14:41:35 +0800
commit83de81b8f4b4fe4faabc23517efa791430f65ac2 (patch)
tree38f628e646ab9067bcdaa66453ca0b3170fbc439 /app/include
parent6e1fe7e6803a50f9a432c489f4d1c3356fce8e9e (diff)
增加线程绑定功能。修正虚设备销毁部分实现。修正数据面处理流程的Bug。
Diffstat (limited to 'app/include')
-rw-r--r--app/include/mrapp.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/include/mrapp.h b/app/include/mrapp.h
index d765627..20d0d22 100644
--- a/app/include/mrapp.h
+++ b/app/include/mrapp.h
@@ -30,6 +30,13 @@ struct mr_vdev
unsigned int en_icmp;
};
+struct mr_thread_info
+{
+ struct mr_instance * instance;
+ thread_id_t thread_id;
+ cpu_id_t cpu_id;
+};
+
struct mr_instance
{
/* ==== 运行句柄 ==== */
@@ -63,10 +70,13 @@ struct mr_instance
unsigned int nr_dataplane_thread;
/* 核心掩码 */
cpu_mask_t cpu_mask;
+ /* 当前待分配的线程ID */
+ thread_id_t to_suppose_tid;
};
/* EAL环境是否初始化 */
extern unsigned int g_eal_inited;
+extern __thread struct mr_thread_info thread_info;
/* 状态监测入口 */
int mrapp_monit_loop(struct mr_instance * instance);