Implement the RDMA nldev netlink interface for dumping detailed CQ information.
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -240,6 +240,8 @@ enum rdma_nldev_command { · 239 unmodified lines | ||
| 240 | 240 | |
| 241 | 241 | RDMA_NLDEV_CMD_RES_CM_ID_GET, /* can dump */ |
| 242 | 242 | |
| 243 | + RDMA_NLDEV_CMD_RES_CQ_GET, /* can dump */ | |
| 244 | + | |
| 243 | 245 | RDMA_NLDEV_NUM_OPS |
| 244 | 246 | }; |
| 245 | 247 | |
| @@ -364,6 +366,12 @@ enum rdma_nldev_attr { · 118 unmodified lines | ||
| 364 | 366 | RDMA_NLDEV_ATTR_RES_SRC_ADDR, /* __kernel_sockaddr_storage */ |
| 365 | 367 | RDMA_NLDEV_ATTR_RES_DST_ADDR, /* __kernel_sockaddr_storage */ |
| 366 | 368 | |
| 369 | + RDMA_NLDEV_ATTR_RES_CQ, /* nested table */ | |
| 370 | + RDMA_NLDEV_ATTR_RES_CQ_ENTRY, /* nested table */ | |
| 371 | + RDMA_NLDEV_ATTR_RES_CQE, /* u32 */ | |
| 372 | + RDMA_NLDEV_ATTR_RES_USECNT, /* u64 */ | |
| 373 | + RDMA_NLDEV_ATTR_RES_POLL_CTX, /* u8 */ | |
| 374 | + | |
| 367 | 375 | RDMA_NLDEV_ATTR_MAX |
| 368 | 376 | }; |
| 369 | 377 | #endif /* _UAPI_RDMA_NETLINK_H */ |