Fix #4: nb_procs < 0 =====> proc_id < 0

This commit is contained in:
logwang 2017-05-15 11:27:44 +08:00
parent 8745404160
commit 8f57dbbcb5
1 changed files with 1 additions and 1 deletions

View File

@ -713,7 +713,7 @@ ff_dpdk_init(int argc, char **argv)
if (ff_global_cfg.dpdk.nb_procs < 1 || if (ff_global_cfg.dpdk.nb_procs < 1 ||
ff_global_cfg.dpdk.nb_procs > RTE_MAX_LCORE || 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.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", printf("param num_procs[%d] or proc_id[%d] error!\n",
ff_global_cfg.dpdk.nb_procs, ff_global_cfg.dpdk.nb_procs,
ff_global_cfg.dpdk.proc_id); ff_global_cfg.dpdk.proc_id);