]> www.infradead.org Git - users/dwmw2/linux.git/commit
net/mlx5: Set sf_eq_usage for SF max EQs
authorDaniel Jurgens <danielj@nvidia.com>
Fri, 12 Jul 2024 00:33:08 +0000 (17:33 -0700)
committerJakub Kicinski <kuba@kernel.org>
Sat, 13 Jul 2024 22:44:16 +0000 (15:44 -0700)
commit2ece6c72ea040b2bec823b11f8e5bad0d92d8af2
treeaf5a31e131b4ff1f028986b570f8dbb23de4cb15
parent63c6e08eac8e7e2ad2e883c968e58e23e1dc8c70
net/mlx5: Set sf_eq_usage for SF max EQs

When setting max_io_eqs for an SF function also set the sf_eq_usage_cap.
This is to indicate to the SF driver from the PF that the user has set
the max io eqs via devlink. So the SF driver can later query the proper
max eq value from the new cap.

Signed-off-by: Daniel Jurgens <danielj@nvidia.com>
Reviewed-by: William Tu <witu@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Link: https://patch.msgid.link/20240712003310.355106-3-saeed@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c