summaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorLu Qiuwen <[email protected]>2023-10-27 16:40:30 +0800
committerLu Qiuwen <[email protected]>2023-10-27 16:40:30 +0800
commitf87405271dbacdef55699282b24caead42af3368 (patch)
treef5a9e147c3ce36389318c3fdc6f398aa16f10cfe /app/src
parenta29fa331ac784a96f049145917635db70bc77b55 (diff)
perf: avoid call rte_ring_count() when the shared queue is disabled.
Diffstat (limited to 'app/src')
-rw-r--r--app/src/marsio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/src/marsio.c b/app/src/marsio.c
index 2bb64f8..fc999b0 100644
--- a/app/src/marsio.c
+++ b/app/src/marsio.c
@@ -403,7 +403,7 @@ static int __table_split_line(const char * buffer, char str_tokens[MR_TOKENS_MAX
return total_nr_tokens;
}
-/* 邻居子系统管理器 */
+#if 0
static int mrapp_neigh_init(struct mr_instance * instance)
{
instance->neigh = malloc(sizeof(struct neighbour_manager));
@@ -537,6 +537,7 @@ err:
return RT_ERR;
}
+#endif
static void mp_cache_init_for_each_mp(struct rte_mempool * mp, void * arg)
{