From 8f57dbbcb5d0aa6b810392bbd12c00a88e78a098 Mon Sep 17 00:00:00 2001 From: logwang Date: Mon, 15 May 2017 11:27:44 +0800 Subject: [PATCH] Fix #4: nb_procs < 0 =====> proc_id < 0 --- lib/ff_dpdk_if.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ff_dpdk_if.c b/lib/ff_dpdk_if.c index 53690bc51..b91d4dbd5 100644 --- a/lib/ff_dpdk_if.c +++ b/lib/ff_dpdk_if.c @@ -713,7 +713,7 @@ ff_dpdk_init(int argc, char **argv) if (ff_global_cfg.dpdk.nb_procs < 1 || ff_global_cfg.dpdk.nb_procs > RTE_MAX_LCORE || ff_global_cfg.dpdk.proc_id >= ff_global_cfg.dpdk.nb_procs || - ff_global_cfg.dpdk.nb_procs < 0) { + ff_global_cfg.dpdk.proc_id < 0) { printf("param num_procs[%d] or proc_id[%d] error!\n", ff_global_cfg.dpdk.nb_procs, ff_global_cfg.dpdk.proc_id);