1*64825827SLeon Romanovsky /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ 2*64825827SLeon Romanovsky /* 3*64825827SLeon Romanovsky * Copyright (c) 2013-2020, Mellanox Technologies inc. All rights reserved. 4*64825827SLeon Romanovsky */ 5*64825827SLeon Romanovsky 6*64825827SLeon Romanovsky #ifndef _MLX5_IB_COUNTERS_H 7*64825827SLeon Romanovsky #define _MLX5_IB_COUNTERS_H 8*64825827SLeon Romanovsky 9*64825827SLeon Romanovsky #include "mlx5_ib.h" 10*64825827SLeon Romanovsky 11*64825827SLeon Romanovsky int mlx5_ib_counters_init(struct mlx5_ib_dev *dev); 12*64825827SLeon Romanovsky void mlx5_ib_counters_cleanup(struct mlx5_ib_dev *dev); 13*64825827SLeon Romanovsky void mlx5_ib_counters_clear_description(struct ib_counters *counters); 14*64825827SLeon Romanovsky int mlx5_ib_flow_counters_set_data(struct ib_counters *ibcounters, 15*64825827SLeon Romanovsky struct mlx5_ib_create_flow *ucmd); 16*64825827SLeon Romanovsky u16 mlx5_ib_get_counters_id(struct mlx5_ib_dev *dev, u8 port_num); 17*64825827SLeon Romanovsky #endif /* _MLX5_IB_COUNTERS_H */ 18