lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <YbB56UwaCOGO3VX+@unreal>
Date:   Wed, 8 Dec 2021 11:24:57 +0200
From:   Leon Romanovsky <leon@...nel.org>
To:     Shay Drory <shayd@...dia.com>
Cc:     "David S . Miller" <davem@...emloft.net>,
        Jakub Kicinski <kuba@...nel.org>, jiri@...dia.com,
        saeedm@...dia.com, netdev@...r.kernel.org,
        linux-kernel@...r.kernel.org, Moshe Shemesh <moshe@...dia.com>,
        Parav Pandit <parav@...dia.com>
Subject: Re: [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@...dia.com>
> Reviewed-by: Moshe Shemesh <moshe@...dia.com>
> Reviewed-by: Parav Pandit <parav@...dia.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
> 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ