mirror of https://github.com/F-Stack/f-stack.git
fix bug: Can not support more than 32 processes
This commit is contained in:
parent
4e27c6abe6
commit
78415de5a0
|
@ -113,7 +113,7 @@ parse_lcore_mask(struct ff_config *cfg, const char *coremask)
|
||||||
if ((1 << j) & val) {
|
if ((1 << j) & val) {
|
||||||
proc_lcore[count] = idx;
|
proc_lcore[count] = idx;
|
||||||
if (cfg->dpdk.proc_id == count) {
|
if (cfg->dpdk.proc_id == count) {
|
||||||
sprintf(buf, "%x", 1<<idx);
|
sprintf(buf, "%llx", (unsigned long long)1<<idx);
|
||||||
cfg->dpdk.proc_mask = strdup(buf);
|
cfg->dpdk.proc_mask = strdup(buf);
|
||||||
}
|
}
|
||||||
count++;
|
count++;
|
||||||
|
|
Loading…
Reference in New Issue