Skip to content

Instantly share code, notes, and snippets.

@joerns
Last active August 23, 2018 09:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joerns/cb7d216b0c3a71b5ea327d0292459211 to your computer and use it in GitHub Desktop.
Save joerns/cb7d216b0c3a71b5ea327d0292459211 to your computer and use it in GitHub Desktop.
# ibv_devinfo
hca_id: mlx5_1
transport: InfiniBand (0)
fw_ver: 16.21.2010
node_guid: ec0d:9a03:008e:b989
sys_image_guid: ec0d:9a03:008e:b988
vendor_id: 0x02c9
vendor_part_id: 4121
hw_ver: 0x0
board_id: MT_0000000013
phys_port_cnt: 1
Device ports:
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
hca_id: mlx5_0
transport: InfiniBand (0)
fw_ver: 16.21.2010
node_guid: ec0d:9a03:008e:b988
sys_image_guid: ec0d:9a03:008e:b988
vendor_id: 0x02c9
vendor_part_id: 4121
hw_ver: 0x0
board_id: MT_0000000013
phys_port_cnt: 1
Device ports:
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
fi_getinfo(FI_VERSION(1, 1), this->ep.address().c_str(), port_addr, FI_SOURCE, hints, &this->fi)
fi_fabric(this->fi->fabric_attr, &this->fabric, NULL)))
fi_eq_open(this->fabric, &eq_attr, &this->eq, NULL)
fi_passive_ep(this->fabric, this->fi, &this->pep, NULL)
fi_pep_bind(this->pep, &this->eq->fid, 0)
fi_control(&this->eq->fid, FI_GETWAIT, &this->ev_context.fd)
// register file descriptor in epoll, wait for notification
fi_eq_sread(eq, &event, &entry, sizeof entry, 0, 0);
// fi_eq_sread yields
// FI_CONNREQ when the request comes on one port. All is good, establish connection
// FI_EAGAIN when the request comes on the other port
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment