mirror of https://github.com/F-Stack/f-stack.git
Config: if proc-id is not configured, use 0.
This commit is contained in:
parent
26e7dd84d2
commit
0ed3d39215
|
@ -22,3 +22,14 @@ lib/vnode_if_newproto.h
|
|||
lib/vnode_if_typedef.h
|
||||
app/nginx-1.11.10/Makefile
|
||||
app/nginx-1.11.10/objs/
|
||||
tools/arp/arp
|
||||
tools/ifconfig/ifconfig
|
||||
tools/ipfw/ipfw
|
||||
tools/netstat/netstat
|
||||
tools/netstat/nl_defs.h
|
||||
tools/netstat/nl_symbols.c
|
||||
tools/ngctl/ngctl
|
||||
tools/route/keywords.h
|
||||
tools/route/route
|
||||
tools/sysctl/sysctl
|
||||
tools/top/top
|
||||
|
|
|
@ -523,8 +523,8 @@ ff_parse_args(struct ff_config *cfg, int argc, char *const argv[])
|
|||
}
|
||||
|
||||
if ((uint16_t)cfg->dpdk.proc_id > RTE_MAX_LCORE) {
|
||||
printf("proc_id:%d is too large\n", cfg->dpdk.proc_id);
|
||||
return -1;
|
||||
printf("invalid proc_id:%d, use default 0\n", cfg->dpdk.proc_id);
|
||||
cfg->dpdk.proc_id = 0;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue