| 1 |
/* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ |
| 2 |
/* |
| 3 |
* stat.h RDMA tool |
| 4 |
* Authors: Mark Zhang <[email protected]> |
| 5 |
* Erez Alfasi <[email protected]> |
| 6 |
*/ |
| 7 |
#ifndef _RDMA_TOOL_STAT_H_ |
| 8 |
#define _RDMA_TOOL_STAT_H_ |
| 9 |
|
| 10 |
#include "rdma.h" |
| 11 |
|
| 12 |
int res_get_hwcounters(struct nlattr *hwc_table, bool print); |
| 13 |
int stat_mr_parse_cb(const struct nlmsghdr *nlh, void *data); |
| 14 |
int stat_mr_idx_parse_cb(const struct nlmsghdr *nlh, void *data); |
| 15 |
|
| 16 |
static const |
| 17 |
struct filters stat_mr_valid_filters[MAX_NUMBER_OF_FILTERS] = { |
| 18 |
{ .name = "mrn", .is_number = true, .is_doit = true }, |
| 19 |
}; |
| 20 |
|
| 21 |
RES_FUNC(stat_mr, RDMA_NLDEV_CMD_STAT_GET, stat_mr_valid_filters, true, |
| 22 |
RDMA_NLDEV_ATTR_RES_MRN); |
| 23 |
|
| 24 |
#endif /* _RDMA_TOOL_STAT_H_ */ |