]> git.droids-corp.org - dpdk.git/commit
common/mlx5: check common devargs in probing again
authorMichael Baum <michaelba@nvidia.com>
Mon, 14 Feb 2022 09:35:10 +0000 (11:35 +0200)
committerRaslan Darawsheh <rasland@nvidia.com>
Mon, 21 Feb 2022 10:36:55 +0000 (11:36 +0100)
commitc089eb9358a94a34bd2d4cab33015e1e0ac6e1dc
tree4140fb80d3bf49b47a3f86f836e142a07abd2ec8
parent45a6df804ae19a3e1fdc42bf6d9e7e633c560439
common/mlx5: check common devargs in probing again

MLX5 common driver supports probing again in two scenarios:
 - Add new driver under existing device. common probe function gets
   it in devargs, then calls the requested driver's probe function
   (regardless of the driver's own support in probing again) with the
   existing device as parameter.
 - Transfer the probing again support of the drivers themselves
   (currently only net). In this scenario, the existing device is sent
   as a parameter to the existing driver's probe too.

In both cases it gets a new set of arguments that do not necessarily
match the configured arguments in the existing device.
Some of the arguments belong to the configuration of the existing
device, so they can't be updated in the probing again. On the other
hand, there are arguments that belong to a specific driver or specific
port and might get a new value in the probing again.
The user might generate any argument he wants in probing again, but when
he generates arguments belonging to the common device configuration, it
does not affect.

This patch adds an explicit check for the devargs belonging to the
common device configuration. If there is no match to the existing
configuration, it returns an error.

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