Config: if proc-id is not configured, use 0.

This commit is contained in:
whl739 2018-06-14 22:50:11 +08:00
parent 26e7dd84d2
commit 0ed3d39215
2 changed files with 13 additions and 2 deletions

11
.gitignore vendored
View File

@ -22,3 +22,14 @@ lib/vnode_if_newproto.h
lib/vnode_if_typedef.h lib/vnode_if_typedef.h
app/nginx-1.11.10/Makefile app/nginx-1.11.10/Makefile
app/nginx-1.11.10/objs/ 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

View File

@ -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) { if ((uint16_t)cfg->dpdk.proc_id > RTE_MAX_LCORE) {
printf("proc_id:%d is too large\n", cfg->dpdk.proc_id); printf("invalid proc_id:%d, use default 0\n", cfg->dpdk.proc_id);
return -1; cfg->dpdk.proc_id = 0;
} }
return 0; return 0;