dpdk: fix assignment of pkt_mempools to ldev

Removed loop around assignment of pkt_mempools
to ldev_instance->dpdk_vars as it is not needed anymore.

Ticket: 7879
pull/13892/head
Adam Kiripolsky 2 months ago committed by Victor Julien
parent 24503b0ead
commit 5a4d280461

@ -1835,10 +1835,8 @@ static void *ParseDpdkConfigAndConfigureDevice(const char *iface)
if (ldev_instance == NULL) {
FatalError("Device %s is not registered as a live device", iface);
}
for (uint16_t i = 0; i < iconf->threads; i++) {
ldev_instance->dpdk_vars = iconf->pkt_mempools;
iconf->pkt_mempools = NULL;
}
ldev_instance->dpdk_vars = iconf->pkt_mempools;
iconf->pkt_mempools = NULL;
return iconf;
}

Loading…
Cancel
Save