github.com/vishvananda/netlink@v1.3.0/nl/rdma_link_linux.go (about) 1 package nl 2 3 const ( 4 RDMA_NL_GET_CLIENT_SHIFT = 10 5 ) 6 7 const ( 8 RDMA_NL_NLDEV = 5 9 ) 10 11 const ( 12 RDMA_NLDEV_CMD_GET = 1 13 RDMA_NLDEV_CMD_SET = 2 14 RDMA_NLDEV_CMD_NEWLINK = 3 15 RDMA_NLDEV_CMD_DELLINK = 4 16 RDMA_NLDEV_CMD_SYS_GET = 6 17 RDMA_NLDEV_CMD_SYS_SET = 7 18 ) 19 20 const ( 21 RDMA_NLDEV_ATTR_DEV_INDEX = 1 22 RDMA_NLDEV_ATTR_DEV_NAME = 2 23 RDMA_NLDEV_ATTR_PORT_INDEX = 3 24 RDMA_NLDEV_ATTR_CAP_FLAGS = 4 25 RDMA_NLDEV_ATTR_FW_VERSION = 5 26 RDMA_NLDEV_ATTR_NODE_GUID = 6 27 RDMA_NLDEV_ATTR_SYS_IMAGE_GUID = 7 28 RDMA_NLDEV_ATTR_SUBNET_PREFIX = 8 29 RDMA_NLDEV_ATTR_LID = 9 30 RDMA_NLDEV_ATTR_SM_LID = 10 31 RDMA_NLDEV_ATTR_LMC = 11 32 RDMA_NLDEV_ATTR_PORT_STATE = 12 33 RDMA_NLDEV_ATTR_PORT_PHYS_STATE = 13 34 RDMA_NLDEV_ATTR_DEV_NODE_TYPE = 14 35 RDMA_NLDEV_ATTR_NDEV_NAME = 51 36 RDMA_NLDEV_ATTR_LINK_TYPE = 65 37 RDMA_NLDEV_SYS_ATTR_NETNS_MODE = 66 38 RDMA_NLDEV_NET_NS_FD = 68 39 )