1
2
3
4
5
6
7#ifndef _RDMA_TOOL_STAT_H_
8#define _RDMA_TOOL_STAT_H_
9
10#include "rdma.h"
11
12int res_get_hwcounters(struct rd *rd, struct nlattr *hwc_table,
13 bool print);
14
15int stat_mr_parse_cb(const struct nlmsghdr *nlh, void *data);
16int stat_mr_idx_parse_cb(const struct nlmsghdr *nlh, void *data);
17
18static const
19struct filters stat_mr_valid_filters[MAX_NUMBER_OF_FILTERS] = {
20 { .name = "mrn", .is_number = true, .is_doit = true },
21};
22
23RES_FUNC(stat_mr, RDMA_NLDEV_CMD_STAT_GET, stat_mr_valid_filters, true,
24 RDMA_NLDEV_ATTR_RES_MRN);
25
26#endif
27