RDMA: Move rdma_node_type to uapi/
This enum is exposed over the sysfs file 'node_type' and over netlink via RDMA_NLDEV_ATTR_DEV_NODE_TYPE, so declare it in the uapi headers. Signed-off-by: Jason Gunthorpe <jgg@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:

committed by
Doug Ledford

parent
2d3c72ed50
commit
5d60c11154
@@ -147,6 +147,18 @@ enum {
|
||||
IWPM_NLA_HELLO_MAX
|
||||
};
|
||||
|
||||
/* For RDMA_NLDEV_ATTR_DEV_NODE_TYPE */
|
||||
enum {
|
||||
/* IB values map to NodeInfo:NodeType. */
|
||||
RDMA_NODE_IB_CA = 1,
|
||||
RDMA_NODE_IB_SWITCH,
|
||||
RDMA_NODE_IB_ROUTER,
|
||||
RDMA_NODE_RNIC,
|
||||
RDMA_NODE_USNIC,
|
||||
RDMA_NODE_USNIC_UDP,
|
||||
RDMA_NODE_UNSPECIFIED,
|
||||
};
|
||||
|
||||
/*
|
||||
* Local service operations:
|
||||
* RESOLVE - The client requests the local service to resolve a path.
|
||||
|
Reference in New Issue
Block a user