diff options
Diffstat (limited to 'service/src/rxtx.c')
| -rw-r--r-- | service/src/rxtx.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/service/src/rxtx.c b/service/src/rxtx.c index ca28dbe..ac114d0 100644 --- a/service/src/rxtx.c +++ b/service/src/rxtx.c @@ -138,10 +138,14 @@ clean: } void sc_thread_rxtx_loop(struct sc_instance * instance, thread_id_t tid) -{ +{ PERF_BEGIN(PERF_SC_LOOP); unsigned int sz_burst = instance->sc_param.sz_burst; + // �߳�������� + if (instance->keepalive) + rte_keepalive_mark_alive(instance->keepalive); + struct sc_device * device_iter; TAILQ_FOREACH(device_iter, &instance->device_list, next) { @@ -163,6 +167,9 @@ void * sc_runtime_thread(void * args) mr_app_manager_thread_register(); struct sc_instance * instance = (struct sc_instance *)args; thread_id_t tid = mr_thread_id(); + + if (instance->keepalive) + rte_keepalive_register_core(instance->keepalive, tid); MR_LOG(INFO, SERVICE, "Thread %d Running...\n", mr_thread_id()); |
