summaryrefslogtreecommitdiff
path: root/app/src/marsio.c
diff options
context:
space:
mode:
authorLu Qiuwen <[email protected]>2023-08-02 13:57:10 +0800
committerLu Qiuwen <[email protected]>2023-08-02 15:00:26 +0800
commitfcf0ba2b8862814acc8552fc6b019be5674d33a6 (patch)
treeddefeb386db54e88eee67ab8aad066317573263d /app/src/marsio.c
parent2d785acf08d8c27225fd7034c9618dfb74e25092 (diff)
改进poll_wait机制,避免service频繁通知应用的数据面线程。
Diffstat (limited to 'app/src/marsio.c')
-rw-r--r--app/src/marsio.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/app/src/marsio.c b/app/src/marsio.c
index bc08bd3..0ea11fe 100644
--- a/app/src/marsio.c
+++ b/app/src/marsio.c
@@ -135,8 +135,14 @@ static void mrapp_rx_notify_init(struct mr_instance * instance)
instance->rx_notify_epfd[i] = epfd;
}
- MESA_load_profile_uint_def(instance->g_cfgfile_path, "service", "poll_wait_throttle",
- &instance->notify_throttle_threshold, 128);
+ MESA_load_profile_uint_def(instance->g_cfgfile_path, "service", "poll_wait_throttle_usleep_threshold",
+ &instance->zero_recv_usleep_threshold, 32);
+
+ MESA_load_profile_uint_def(instance->g_cfgfile_path, "service", "poll_wait_throttle_usleep_period",
+ &instance->zero_recv_usleep_period, 5);
+
+ MESA_load_profile_uint_def(instance->g_cfgfile_path, "service", "poll_wait_throttle_notify_threshold",
+ &instance->zero_recv_notify_threshold, 256);
MESA_load_profile_uint_def(instance->g_cfgfile_path, "service", "poll_wait_enable", &instance->en_notify, 1);
MESA_load_profile_uint_def(instance->g_cfgfile_path, "service", "vdev_buffer_size", &instance->sz_vdev_buffer,