net/mlx5: fix log initialization
authorStephen Hemminger <stephen@networkplumber.org>
Wed, 13 Jun 2018 18:46:26 +0000 (11:46 -0700)
committerShahaf Shuler <shahafs@mellanox.com>
Sun, 17 Jun 2018 08:17:53 +0000 (10:17 +0200)
commit3d96644aa3af431ed881b900971b8228e93889a9
tree6e557fe6d30bb079f46f7e56a96e3e39922e0a98
parenta9fc0b0ef0c276fcea082b20574e27cca1bac3e8
net/mlx5: fix log initialization

The mlx5 driver had two init functions, but this could
cause log initialization to be done after the
other initialization. Also, the name of the function does
not match convention (cut/paste error?).

Fix by initializing log type first at start of the pmd_init.
This also gets rid of having two constructor functions.

Fixes: a170a30d22a8 ("net/mlx5: use dynamic logging")
Cc: stable@dpdk.org
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
drivers/net/mlx5/mlx5.c