2020-07-02 11:18:06 +03:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
|
|
|
|
/*
|
|
|
|
* Copyright (c) 2013-2020, Mellanox Technologies inc. All rights reserved.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _MLX5_IB_COUNTERS_H
|
|
|
|
#define _MLX5_IB_COUNTERS_H
|
|
|
|
|
|
|
|
#include "mlx5_ib.h"
|
|
|
|
|
|
|
|
int mlx5_ib_counters_init(struct mlx5_ib_dev *dev);
|
|
|
|
void mlx5_ib_counters_cleanup(struct mlx5_ib_dev *dev);
|
|
|
|
void mlx5_ib_counters_clear_description(struct ib_counters *counters);
|
|
|
|
int mlx5_ib_flow_counters_set_data(struct ib_counters *ibcounters,
|
|
|
|
struct mlx5_ib_create_flow *ucmd);
|
2021-03-01 09:04:20 +02:00
|
|
|
u16 mlx5_ib_get_counters_id(struct mlx5_ib_dev *dev, u32 port_num);
|
2025-03-13 16:18:46 +02:00
|
|
|
bool mlx5r_is_opfc_shared_and_in_use(struct mlx5_ib_op_fc *opfcs, u32 type,
|
|
|
|
struct mlx5_ib_op_fc **opfc);
|
2020-07-02 11:18:06 +03:00
|
|
|
#endif /* _MLX5_IB_COUNTERS_H */
|