lkml.org 
[lkml]   [2021]   [Dec]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH net-next v2 6/6] net/mlx5: Let user configure max_macs generic param
On Wed, Dec 08, 2021 at 09:03:50AM +0200, Shay Drory wrote:
> Currently, max_macs is taking 70Kbytes of memory per function. This
> size is not needed in all use cases, and is critical with large scale.
> Hence, allow user to configure the number of max_macs.
>
> For example, to reduce the number of max_macs to 1, execute::
> $ devlink dev param set pci/0000:00:0b.0 name max_macs value 1 \
> cmode driverinit
> $ devlink dev reload pci/0000:00:0b.0
>
> Signed-off-by: Shay Drory <shayd@nvidia.com>
> Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
> Reviewed-by: Parav Pandit <parav@nvidia.com>
> ---
> Documentation/networking/devlink/mlx5.rst | 3 +
> .../net/ethernet/mellanox/mlx5/core/devlink.c | 67 +++++++++++++++++++
> .../net/ethernet/mellanox/mlx5/core/main.c | 21 ++++++
> include/linux/mlx5/mlx5_ifc.h | 2 +-
> 4 files changed, 92 insertions(+), 1 deletion(-)

<...>

> diff --git a/include/linux/mlx5/mlx5_ifc.h b/include/linux/mlx5/mlx5_ifc.h
> index fbaab440a484..e9db12aae8f9 100644
> --- a/include/linux/mlx5/mlx5_ifc.h
> +++ b/include/linux/mlx5/mlx5_ifc.h
> @@ -1621,7 +1621,7 @@ struct mlx5_ifc_cmd_hca_cap_bits {
>
> u8 ext_stride_num_range[0x1];
> u8 roce_rw_supported[0x1];
> - u8 reserved_at_3a2[0x1];
> + u8 log_max_current_uc_list_wr_supported[0x1];
> u8 log_max_stride_sz_rq[0x5];
> u8 reserved_at_3a8[0x3];
> u8 log_min_stride_sz_rq[0x5];


All IFC changes should be in separate patch and need to go to shared branch (mlx5-next).

Thanks

> --
> 2.21.3
>

\
 
 \ /
  Last update: 2021-12-08 10:25    [W:0.029 / U:0.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site