Merge tag 'block-5.11-2021-01-10' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / drivers / infiniband / hw / mlx5 / counters.h
blob1aa30c2f3f4ddd4f1523b9bd6ea8da95ed8054a5
1 /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
2 /*
3 * Copyright (c) 2013-2020, Mellanox Technologies inc. All rights reserved.
4 */
6 #ifndef _MLX5_IB_COUNTERS_H
7 #define _MLX5_IB_COUNTERS_H
9 #include "mlx5_ib.h"
11 int mlx5_ib_counters_init(struct mlx5_ib_dev *dev);
12 void mlx5_ib_counters_cleanup(struct mlx5_ib_dev *dev);
13 void mlx5_ib_counters_clear_description(struct ib_counters *counters);
14 int mlx5_ib_flow_counters_set_data(struct ib_counters *ibcounters,
15 struct mlx5_ib_create_flow *ucmd);
16 u16 mlx5_ib_get_counters_id(struct mlx5_ib_dev *dev, u8 port_num);
17 #endif /* _MLX5_IB_COUNTERS_H */