summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMark Bloch <mbloch@nvidia.com>2022-03-01 18:42:01 +0300
committerSaeed Mahameed <saeedm@nvidia.com>2022-05-10 08:54:00 +0300
commit34a30d7635a8e37275a7b63bec09035ed762969b (patch)
treeead65e2f4fee0d0daea95f849b57babca89161a0 /include
parent37ca95e62ee23fa6d2c2c64e3dc40b4a0c0146dc (diff)
downloadlinux-34a30d7635a8e37275a7b63bec09035ed762969b.tar.xz
net/mlx5: Lag, expose number of lag ports
Downstream patches will add support for hardware lag with more than 2 ports. Add a way for users to query the number of lag ports. Signed-off-by: Mark Bloch <mbloch@nvidia.com> Reviewed-by: Maor Gottlieb <maorg@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mlx5/driver.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h
index f327d0544038..62ea1120de9c 100644
--- a/include/linux/mlx5/driver.h
+++ b/include/linux/mlx5/driver.h
@@ -1142,6 +1142,7 @@ int mlx5_lag_query_cong_counters(struct mlx5_core_dev *dev,
int num_counters,
size_t *offsets);
struct mlx5_core_dev *mlx5_lag_get_peer_mdev(struct mlx5_core_dev *dev);
+u8 mlx5_lag_get_num_ports(struct mlx5_core_dev *dev);
struct mlx5_uars_page *mlx5_get_uars_page(struct mlx5_core_dev *mdev);
void mlx5_put_uars_page(struct mlx5_core_dev *mdev, struct mlx5_uars_page *up);
int mlx5_dm_sw_icm_alloc(struct mlx5_core_dev *dev, enum mlx5_sw_icm_type type,