app/testpmd: fix crash in txonly mode and with tx_first
authorAdrien Mazarguil <adrien.mazarguil@6wind.com>
Mon, 1 Sep 2014 10:31:11 +0000 (12:31 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 1 Sep 2014 10:56:06 +0000 (12:56 +0200)
commit8fd8bebc051704d7caecfed8d8a065a79c022329
tree9bfe8382188192711b5b0002ab91c12c279039f4
parent0ab95e82c14f7bc4d6270e1c97d6c55b30fabf9b
app/testpmd: fix crash in txonly mode and with tx_first

This crash was believed fixed by commit 5886ae07d211e4b5e49806dd183812,
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>
app/test-pmd/testpmd.c