History

IB/mlx5: Fix congestion counters in LAG mode

Congestion counters are counted and queried per physical function. When working in LAG mode, CNP packets can be sent or received on both of the functions, thus congestion counters should be aggregated from the two physical functions.

Majd Dibbiny committed 8 years ago

Commit 71a0ff61 parent e3524b25 files · +66 −42Browse files

Showing the changes to include/linux (1 of 5 files). Show all

Unified · Split

include/linux/mlx5/driver.h+4−0
@@ -1164,6 +1164,10 @@ int mlx5_cmd_create_vport_lag(struct mlx5_core_dev *dev); · 1163 unmodified lines
1164int mlx5_cmd_destroy_vport_lag(struct mlx5_core_dev *dev);1164int mlx5_cmd_destroy_vport_lag(struct mlx5_core_dev *dev);
1165bool mlx5_lag_is_active(struct mlx5_core_dev *dev);1165bool mlx5_lag_is_active(struct mlx5_core_dev *dev);
1166struct net_device *mlx5_lag_get_roce_netdev(struct mlx5_core_dev *dev);1166struct net_device *mlx5_lag_get_roce_netdev(struct mlx5_core_dev *dev);
1167int mlx5_lag_query_cong_counters(struct mlx5_core_dev *dev,
1168 u64 *values,
1169 int num_counters,
1170 size_t *offsets);
1167struct mlx5_uars_page *mlx5_get_uars_page(struct mlx5_core_dev *mdev);1171struct mlx5_uars_page *mlx5_get_uars_page(struct mlx5_core_dev *mdev);
1168void mlx5_put_uars_page(struct mlx5_core_dev *mdev, struct mlx5_uars_page *up);1172void mlx5_put_uars_page(struct mlx5_core_dev *mdev, struct mlx5_uars_page *up);
1169 1173