mlx5/core: Support max_io_eqs for a function
authorParav Pandit <parav@nvidia.com>
Sat, 6 Apr 2024 01:05:38 +0000 (04:05 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Apr 2024 13:10:45 +0000 (14:10 +0100)
commit93197c7c509d0c872de8b4fa17b44db175633f5c
tree9266ebb3ab1326bee1e894be349ed68fae218df8
parent5af3e3876d567fb79a355bec1cb48e432d69b4fb
mlx5/core: Support max_io_eqs for a function

Implement get and set for the maximum IO event queues for SF and VF.
This enables administrator on the hypervisor to control the maximum
IO event queues which are typically used to derive the maximum and
default number of net device channels or rdma device completion vectors.

Reviewed-by: Shay Drory <shayd@nvidia.com>
Signed-off-by: Parav Pandit <parav@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/esw/devlink_port.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c