app/testpmd: fix crash of tx_first mode with numa
authorAdrien Mazarguil <adrien.mazarguil@6wind.com>
Wed, 30 Apr 2014 13:16:16 +0000 (15:16 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 30 Apr 2014 20:59:17 +0000 (22:59 +0200)
commit5886ae07d211e4b5e49806dd183812beb31c67ad
treec6b980f0857cf0b285a5b149c5ddb4a7467ee16e
parent20a0286fd2c0f03bfe06ae419c128b648f5bf9bf
app/testpmd: fix crash of tx_first mode with numa

When NUMA is enabled, the mbuf pool pointer of per-core fwd_lcores structure
is not set, causing a crash when accessing to mbp for txonly burst.

Initialize fwd_lcore after allocating NUMA memory pools.

Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
app/test-pmd/testpmd.c