summaryrefslogtreecommitdiff
path: root/app/include/mrapp.h
diff options
context:
space:
mode:
authorLu Qiuwen <[email protected]>2023-05-17 16:58:14 +0800
committerLu Qiuwen <[email protected]>2023-05-17 16:58:51 +0800
commita2363d62052b3e6775ca5a8b2555e26fffe17d44 (patch)
tree39658826c81f773c7e956c478faa646495c93728 /app/include/mrapp.h
parentf53d201d1e7d6953c4f1c14381c4e531658d08ad (diff)
性能优化,调整关键部分代码的实现提高收、发包的性能。
1. 调整部分数据结构的定义,将需要跨核读写的部分单独使用一个cache line; 2. 增加关键数据结构的预取动作,如mbuf的metadata、数据包头部等; 3. 部分字节序转换的操作调整到编译器执行,运行时不再进行字节序转换; 4. 将mbuf头部后64字节作为mrb_metadata的存储区域,不再支持运行时调整。 5. 采用O3编译,march改用icelake-server以充分发挥处理器加速能力。
Diffstat (limited to 'app/include/mrapp.h')
-rw-r--r--app/include/mrapp.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/include/mrapp.h b/app/include/mrapp.h
index afe019e..c97da8c 100644
--- a/app/include/mrapp.h
+++ b/app/include/mrapp.h
@@ -149,7 +149,8 @@ struct mr_instance
unsigned int busy_loop_counter[MR_SID_MAX];
/* threshold */
- unsigned int rx_notify_defer_threshold;
+ unsigned int notify_throttle_threshold;
+ unsigned int en_notify;
/* mempool cache map */
struct mp_cache_map * mp_cache_map[MR_MEMPOOL_COUNT_MAX];