1 /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
4 * Authors: Mark Zhang <markz@mellanox.com>
5 * Erez Alfasi <ereza@mellanox.com>
7 #ifndef _RDMA_TOOL_STAT_H_
8 #define _RDMA_TOOL_STAT_H_
12 int res_get_hwcounters(struct rd
*rd
, struct nlattr
*hwc_table
,
15 int stat_mr_parse_cb(const struct nlmsghdr
*nlh
, void *data
);
16 int stat_mr_idx_parse_cb(const struct nlmsghdr
*nlh
, void *data
);
19 struct filters stat_mr_valid_filters
[MAX_NUMBER_OF_FILTERS
] = {
20 { .name
= "mrn", .is_number
= true, .is_doit
= true },
23 RES_FUNC(stat_mr
, RDMA_NLDEV_CMD_STAT_GET
, stat_mr_valid_filters
, true,
24 RDMA_NLDEV_ATTR_RES_MRN
);
26 #endif /* _RDMA_TOOL_STAT_H_ */