net/mvpp2: fix non-EAL thread support
authorDavid Marchand <david.marchand@redhat.com>
Tue, 16 Jun 2020 09:47:00 +0000 (11:47 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 30 Jun 2020 12:52:30 +0000 (14:52 +0200)
commitb52d25ae4b1bbe9adba0d9276b7771ec27e3d151
tree0e2964192ad2eacca9e53b0fc29410f0919f118f
parentb10231aed1edb9cdd74a0a021a38267255952f00
net/mvpp2: fix non-EAL thread support

Caught by code inspection, for a non-EAL thread identified with
rte_lcore_id() == LCORE_ID_ANY, the code currently arbitrarily uses
lcore 0 while there is no guarantee this lcore is used.

Fixes: 3588aaa68eab ("net/mrvl: fix HIF objects allocation")
Cc: stable@dpdk.org
Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Liron Himi <lironh@marvell.com>
drivers/net/mvpp2/mrvl_ethdev.c