common/mlx5: fix default devargs initialization
authorMichael Baum <michaelba@nvidia.com>
Tue, 1 Mar 2022 11:09:35 +0000 (13:09 +0200)
committerRaslan Darawsheh <rasland@nvidia.com>
Wed, 2 Mar 2022 16:36:46 +0000 (17:36 +0100)
commit2c75b9bcd5889a09f0945ee48d8d032de1fa9c82
tree08103cbc7429822c612bc69d39644e6633a224ba
parentdfb8c448daaf29a10d6249fc045bd2eef9655684
common/mlx5: fix default devargs initialization

Device arguments list is provided along with its identifier as part of
EAL arguments.
The arguments specified in the list are taken from it, and the rest is
initialized to the default values.

When no list is provided at all, all arguments should have been
initialized to their default values. However, they are mistakenly
initialized to zero which may be a valid value for some.

This patch initializes the default values before checking whether
arguments have been specified.

Bugzilla ID: 945
Fixes: a729d2f093e9 ("common/mlx5: refactor devargs management")

Signed-off-by: Michael Baum <michaelba@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/common/mlx5/mlx5_common.c