app/testpmd: fix crash in txonly mode and with tx_first
This crash was believed fixed by commit 5886ae07d2
,
but the actual issue is that the core ID provided to rte_lcore_to_socket_id()
is wrong. It must be looked up in fwd_lcores_cpuids[].
Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Signed-off-by: David Marchand <david.marchand@6wind.com>
This commit is contained in:
parent
0ab95e82c1
commit
8fd8bebc05
@ -614,7 +614,9 @@ init_config(void)
|
||||
* Records which Mbuf pool to use by each logical core, if needed.
|
||||
*/
|
||||
for (lc_id = 0; lc_id < nb_lcores; lc_id++) {
|
||||
mbp = mbuf_pool_find(rte_lcore_to_socket_id(lc_id));
|
||||
mbp = mbuf_pool_find(
|
||||
rte_lcore_to_socket_id(fwd_lcores_cpuids[lc_id]));
|
||||
|
||||
if (mbp == NULL)
|
||||
mbp = mbuf_pool_find(0);
|
||||
fwd_lcores[lc_id]->mbp = mbp;
|
||||
|
Loading…
Reference in New Issue
Block a user