164825827SLeon Romanovsky /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ 264825827SLeon Romanovsky /* 364825827SLeon Romanovsky * Copyright (c) 2013-2020, Mellanox Technologies inc. All rights reserved. 464825827SLeon Romanovsky */ 564825827SLeon Romanovsky 664825827SLeon Romanovsky #ifndef _MLX5_IB_COUNTERS_H 764825827SLeon Romanovsky #define _MLX5_IB_COUNTERS_H 864825827SLeon Romanovsky 964825827SLeon Romanovsky #include "mlx5_ib.h" 1064825827SLeon Romanovsky 1164825827SLeon Romanovsky int mlx5_ib_counters_init(struct mlx5_ib_dev *dev); 1264825827SLeon Romanovsky void mlx5_ib_counters_cleanup(struct mlx5_ib_dev *dev); 1364825827SLeon Romanovsky void mlx5_ib_counters_clear_description(struct ib_counters *counters); 1464825827SLeon Romanovsky int mlx5_ib_flow_counters_set_data(struct ib_counters *ibcounters, 1564825827SLeon Romanovsky struct mlx5_ib_create_flow *ucmd); 16*1fb7f897SMark Bloch u16 mlx5_ib_get_counters_id(struct mlx5_ib_dev *dev, u32 port_num); 1764825827SLeon Romanovsky #endif /* _MLX5_IB_COUNTERS_H */ 18