app/testpmd: fix initialization
authorAnatoly Burakov <anatoly.burakov@intel.com>
Mon, 14 May 2018 15:46:42 +0000 (16:46 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 14 May 2018 18:35:31 +0000 (20:35 +0200)
commit4aa0d0121a3a1c542dce35194b8704bb2358c06b
tree7211630072376060f7712d47957d4ec34fc07054
parent3d5cf3005e0aab360790af6cfd5bbd3586f221e2
app/testpmd: fix initialization

Patch adding configurable locking has reshuffled some init stages, but
did not put them back in correct order. Fix order of init by moving
everything that was before arguments parsing into correct places.

Fixes: e505d84c64ab ("app/testpmd: make locking memory configurable")

Reported-by: Thomas Monjalon <thomas@monjalon.net>
Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Tested-by: Ali Alnubani <alialnu@mellanox.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
app/test-pmd/testpmd.c