Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
0002 /*
0003  * Copyright (c) 2013-2020, Mellanox Technologies inc. All rights reserved.
0004  */
0005 
0006 #ifndef _MLX5_IB_COUNTERS_H
0007 #define _MLX5_IB_COUNTERS_H
0008 
0009 #include "mlx5_ib.h"
0010 
0011 int mlx5_ib_counters_init(struct mlx5_ib_dev *dev);
0012 void mlx5_ib_counters_cleanup(struct mlx5_ib_dev *dev);
0013 void mlx5_ib_counters_clear_description(struct ib_counters *counters);
0014 int mlx5_ib_flow_counters_set_data(struct ib_counters *ibcounters,
0015                    struct mlx5_ib_create_flow *ucmd);
0016 u16 mlx5_ib_get_counters_id(struct mlx5_ib_dev *dev, u32 port_num);
0017 #endif /* _MLX5_IB_COUNTERS_H */