Update ff_dpdk_if.c

bond numa
This commit is contained in:
agerguo 2022-08-19 14:42:19 +08:00 committed by GitHub
parent e7757252b3
commit b60bfba1bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -737,7 +737,7 @@ init_port_start(void)
uint16_t q; uint16_t q;
for (q = 0; q < nb_queues; q++) { for (q = 0; q < nb_queues; q++) {
if (numa_on) { if (numa_on) {
uint16_t lcore_id = lcore_conf.port_cfgs[port_id].lcore_list[q]; uint16_t lcore_id = lcore_conf.port_cfgs[u_port_id].lcore_list[q];
socketid = rte_lcore_to_socket_id(lcore_id); socketid = rte_lcore_to_socket_id(lcore_id);
} }
mbuf_pool = pktmbuf_pool[socketid]; mbuf_pool = pktmbuf_pool[socketid];