net/mlx5: Expose max possible SFs via devlink resource
authorShay Drory <shayd@nvidia.com>
Thu, 13 Jul 2023 11:54:57 +0000 (14:54 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Mon, 14 Aug 2023 21:40:20 +0000 (14:40 -0700)
commit6486c0f44ed8e91073c1b08e83075e3832618ae5
tree92b9fd1f59b05fd58b2e3c81ae2761b801f9e412
parent53b836a44db4259b94ffcfff321fb3d63f976b76
net/mlx5: Expose max possible SFs via devlink resource

Introduce devlink resource for exposing max possible SFs on mlx5
devices.

For example:
$ devlink resource show pci/0000:00:0b.0
pci/0000:00:0b.0:
  name max_local_SFs size 5 unit entry dpipe_tables none
  name max_external_SFs size 0 unit entry dpipe_tables none

Signed-off-by: Shay Drory <shayd@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/devlink.h
drivers/net/ethernet/mellanox/mlx5/core/sf/hw_table.c