]> git.droids-corp.org - dpdk.git/commit
net/mlx5: remove redundant check of devargs
authorMichael Baum <michaelba@nvidia.com>
Mon, 14 Feb 2022 09:34:57 +0000 (11:34 +0200)
committerRaslan Darawsheh <rasland@nvidia.com>
Mon, 21 Feb 2022 10:36:42 +0000 (11:36 +0100)
commitcfe0639b3046887c4688c08d47ed36c3f9f12324
treed1592bd39cf4366654e9762a8cfce52b308ccaae
parentdec50e58f76cf53d84f512f29c1454b6ced4a41c
net/mlx5: remove redundant check of devargs

The device arguments are parsed and updated twice during spawning. First
time before creating the share device context, and again later after
updating a default value to one of the arguments.

This patch consolidates them into one parsing and updates the default
values before it.

Signed-off-by: Michael Baum <michaelba@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/net/mlx5/linux/mlx5_os.c
drivers/net/mlx5/mlx5.c
drivers/net/mlx5/mlx5.h
drivers/net/mlx5/windows/mlx5_os.c