18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Copyright (c) 2013-2020, Mellanox Technologies inc. All rights reserved. 48c2ecf20Sopenharmony_ci */ 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ci#ifndef _MLX5_IB_COUNTERS_H 78c2ecf20Sopenharmony_ci#define _MLX5_IB_COUNTERS_H 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci#include "mlx5_ib.h" 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ciint mlx5_ib_counters_init(struct mlx5_ib_dev *dev); 128c2ecf20Sopenharmony_civoid mlx5_ib_counters_cleanup(struct mlx5_ib_dev *dev); 138c2ecf20Sopenharmony_civoid mlx5_ib_counters_clear_description(struct ib_counters *counters); 148c2ecf20Sopenharmony_ciint mlx5_ib_flow_counters_set_data(struct ib_counters *ibcounters, 158c2ecf20Sopenharmony_ci struct mlx5_ib_create_flow *ucmd); 168c2ecf20Sopenharmony_ciu16 mlx5_ib_get_counters_id(struct mlx5_ib_dev *dev, u8 port_num); 178c2ecf20Sopenharmony_ci#endif /* _MLX5_IB_COUNTERS_H */ 18