]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Reorganize current and maximal capabilities to be per-type
authorParav Pandit <parav@nvidia.com>
Tue, 13 Jul 2021 09:36:05 +0000 (12:36 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 11 Aug 2021 18:14:32 +0000 (11:14 -0700)
commite8fb35737d39ff61fffd12255a8ccad53b0554bd
treebd0836ef1a9ccf61f80c984ca6f80334dff25aac
parentd2c3f9e81e450d7a245f8eb116f126807879bc58
net/mlx5: Reorganize current and maximal capabilities to be per-type

In the current code, the current and maximal capabilities are
maintained in separate arrays which are both per type. In order to
allow the creation of such a basic structure as a dynamically
allocated array, we move curr and max fields to a unified
structure so that specific capabilities can be allocated as one unit.

Signed-off-by: Parav Pandit <parav@nvidia.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Reviewed-by: Shay Drory <shayd@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
drivers/net/ethernet/mellanox/mlx5/core/main.c
include/linux/mlx5/device.h
include/linux/mlx5/driver.h