ibv_devinfo command
Prints information about RDMA network interface controller (RNIC) devices available for use from user space.
Syntax
ibv_devinfo [-v
] { [-d <dev>] [-i <port>] } | [-l
] [-e]
Flags
Item | Description |
---|---|
-d dev | Uses the dev RDMA device. By default, the first device that is found is used. |
-e | Prints the extended group ID (GID) tables of the RDMA devices. |
-i port | Uses the port port of RDMA device. By default, all ports are used. |
-l | Prints only the RDMA devices name. |
-v | Prints all the attributes of the RDMA devices. |
Example
- To print the extended GID tables of the RDMA devices, enter the following
command:
# ibv_devinfo -e --------------------------------------------------------------------------------------------------------- Device GID GID Type Net Type MAC Address Net Address ---------------------------------------------------------------------------------------------------------- ent0 fe80:0000:0000:0000:0e42:a1ff:fe4f:18c6 RoCEv1 ETHER 0c:42:a1:4f:18:c6 ent0 fe80:0000:0000:0000:0e42:a1ff:fe4f:18c6 RoCEv2 IPv4 0c:42:a1:4f:18:c6 200.200.200.001 ent0 fe80:0000:0000:0000:063f:72ff:fea4:a2a0 RoCEv1 ETHER 04:3f:72:a4:a2:a0 ent0 fe80:0000:0000:0000:063f:72ff:fea4:a2a0 RoCEv2 IPv4 04:3f:72:a4:a2:a0 200.200.200.001
- To print the information about a specific RDMA device (
ent0
), enter the following command:# ibv_devinfo -d ent0 hca_id: ent0 transport: InfiniBand (0) fw_ver: 0.0.0 node_guid: 063f:72ff:fea4:a2a0 sys_image_guid: 0000:0000:0000:0000 vendor_id: 0xb3151310 vendor_part_id: 336656132 hw_ver: 0x0 phys_port_cnt: 1 port: 1 state: PORT_ACTIVE (4) max_mtu: 4096 (5) active_mtu: 1024 (3) sm_lid: 0 port_lid: 0 port_lmc: 0x00 link_layer: Ethernet
- To print all the attributes of the RDMA devices, enter the following
command:
# ibv_devinfo -v hca_id: ent0 transport: InfiniBand (0) fw_ver: 0.0.0 node_guid: 063f:72ff:fea4:a2a0 sys_image_guid: 0000:0000:0000:0000 vendor_id: 0xb3151310 vendor_part_id: 336656132 hw_ver: 0x0 phys_port_cnt: 1 max_mr_size: 0x1 page_size_cap: 0x0 max_qp: 16384 max_qp_wr: 4096 device_cap_flags: 0x00201884 max_sge: 16 max_sge_rd: 0 max_cq: 32768 max_cqe: 1048575 max_mr: 1048576 max_pd: 32768 max_qp_rd_atom: 16 max_ee_rd_atom: 0 max_res_rd_atom: 16 max_qp_init_rd_atom: 16 max_ee_init_rd_atom: 0 atomic_cap: ATOMIC_HCA (1) max_ee: 0 max_rdd: 0 max_mw: 0 max_raw_ipv6_qp: 0 max_raw_ethy_qp: 0 max_mcast_grp: 2097152 max_mcast_qp_attach: 240 max_total_mcast_qp_attach: 503316480 max_ah: 0 max_fmr: 0 max_srq: 0 max_pkeys: 128 local_ca_ack_delay: 16 port: 1 state: PORT_ACTIVE (4) max_mtu: 4096 (5) active_mtu: 1024 (3) sm_lid: 0 port_lid: 0 port_lmc: 0x00 link_layer: Ethernet max_msg_sz: 0x3fffffff port_cap_flags: 0x00010000 max_vl_num: invalid value (0) bad_pkey_cntr: 0x0 qkey_viol_cntr: 0x0 sm_sl: 0 pkey_tbl_len: 1 gid_tbl_len: 128 subnet_timeout: 0 init_type_reply: 0 active_width: 4X (2) active_speed: 10.0 Gbps (4) phys_state: LINK_UP (5) GID[ 0]: fe80:0000:0000:0000:063f:72ff:fea4:a2a0