Blame rdma/stat.h

Packit Service 3880ab
/* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
Packit Service 3880ab
/*
Packit Service 3880ab
 * stat.h        RDMA tool
Packit Service 3880ab
 * Authors:      Mark Zhang <markz@mellanox.com>
Packit Service 3880ab
 *		 Erez Alfasi <ereza@mellanox.com>
Packit Service 3880ab
 */
Packit Service 3880ab
#ifndef _RDMA_TOOL_STAT_H_
Packit Service 3880ab
#define _RDMA_TOOL_STAT_H_
Packit Service 3880ab
Packit Service 3880ab
#include "rdma.h"
Packit Service 3880ab
Packit Service 3880ab
int res_get_hwcounters(struct rd *rd, struct nlattr *hwc_table,
Packit Service 3880ab
		       bool print);
Packit Service 3880ab
Packit Service 3880ab
int stat_mr_parse_cb(const struct nlmsghdr *nlh, void *data);
Packit Service 3880ab
int stat_mr_idx_parse_cb(const struct nlmsghdr *nlh, void *data);
Packit Service 3880ab
Packit Service 3880ab
static const
Packit Service 3880ab
struct filters stat_mr_valid_filters[MAX_NUMBER_OF_FILTERS] = {
Packit Service 3880ab
	{ .name = "mrn", .is_number = true, .is_doit = true },
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
RES_FUNC(stat_mr, RDMA_NLDEV_CMD_STAT_GET, stat_mr_valid_filters, true,
Packit Service 3880ab
	 RDMA_NLDEV_ATTR_RES_MRN);
Packit Service 3880ab
Packit Service 3880ab
#endif /* _RDMA_TOOL_STAT_H_ */