nndocs:infiniband:connectx-4
Differences
This shows you the differences between two versions of the page.
| nndocs:infiniband:connectx-4 [2026/08/08 19:45] – created naptastic | nndocs:infiniband:connectx-4 [2026/08/08 21:04] (current) – [SR-IOV] All the info I currently have naptastic | ||
|---|---|---|---|
| Line 139: | Line 139: | ||
| ====SR-IOV==== | ====SR-IOV==== | ||
| - | The ConnectX-4 is definitely where SR-IOV | + | (For info about Infiniband |
| - | I wonder if it works with virt-manager. | + | Create virtual functions: |
| + | |||
| + | [root]@[southpark][13: | ||
| + | [root]@[southpark][13: | ||
| + | |||
| + | [root]@[southpark][13: | ||
| + | (...snip...) | ||
| + | 8: mlx1: < | ||
| + | link/ether b8: | ||
| + | vf 0 | ||
| + | vf 1 | ||
| + | vf 2 | ||
| + | vf 3 | ||
| + | vf 4 | ||
| + | vf 5 | ||
| + | vf 6 | ||
| + | vf 7 | ||
| + | (...snip...) | ||
| + | |||
| + | This adapter helpfully creates new PCI devices for the VFs instead of adding more functions to device 0. | ||
| + | |||
| + | [root]@[southpark][13: | ||
| + | 06:00.0 Infiniband controller: Mellanox Technologies MT27700 Family [ConnectX-4] | ||
| + | 06:00.1 Ethernet controller: Mellanox Technologies MT27700 Family [ConnectX-4] | ||
| + | 06:01.2 Ethernet controller: Mellanox Technologies MT27700 Family [ConnectX-4 Virtual Function] | ||
| + | 06:01.3 Ethernet controller: Mellanox Technologies MT27700 Family [ConnectX-4 Virtual Function] | ||
| + | 06:01.4 Ethernet controller: Mellanox Technologies MT27700 Family [ConnectX-4 Virtual Function] | ||
| + | 06:01.5 Ethernet controller: Mellanox Technologies MT27700 Family [ConnectX-4 Virtual Function] | ||
| + | 06:01.6 Ethernet controller: Mellanox Technologies MT27700 Family [ConnectX-4 Virtual Function] | ||
| + | 06:01.7 Ethernet controller: Mellanox Technologies MT27700 Family [ConnectX-4 Virtual Function] | ||
| + | 06:02.0 Ethernet controller: Mellanox Technologies MT27700 Family [ConnectX-4 Virtual Function] | ||
| + | 06:02.1 Ethernet controller: Mellanox Technologies MT27700 Family [ConnectX-4 Virtual Function] | ||
| + | |||
| + | Configure a VF; this one is for the Factorio server: | ||
| + | |||
| + | [root]@[southpark][14: | ||
| + | [root]@[southpark][14: | ||
| + | vf 0 | ||
| + | vf 1 | ||
| + | |||
| + | (Notice vlan wasn't there before, but it's there now.) | ||
| + | |||
| + | ===For a virtual machine=== | ||
| + | |||
| + | The SR-IOV network pool thing in virt-manager still doesn' | ||
| + | |||
| + | <hostdev mode=" | ||
| + | <driver name=" | ||
| + | < | ||
| + | <address domain=" | ||
| + | </ | ||
| + | <alias name=" | ||
| + | <address type=" | ||
| + | </ | ||
| + | |||
| + | ===For use by the host=== | ||
| + | |||
| + | There' | ||
| + | |||
| + | Warning: `driverctl list-devices` lists **all** the devices on the PCI bus: the root complex, the ports, the fabric functions, anything that looks like a bridge... on southpark, it's ~2 pages of output. | ||
| + | |||
| + | Strongly recommend grepping the output for the relevant PCI devices with a start-of-line anchor and the PCI domain: | ||
| + | |||
| + | # driverctl list-devices | grep ^0000: | ||
| + | 0000: | ||
| + | 0000: | ||
| + | 0000: | ||
| + | 0000: | ||
| + | 0000: | ||
| + | 0000: | ||
| + | 0000: | ||
| + | 0000: | ||
| + | 0000: | ||
| + | 0000: | ||
| + | |||
| + | Configure the VF as above: | ||
| + | |||
| + | [root]@[southpark][14: | ||
| + | [root]@[southpark][14: | ||
| + | 8: mlx1: < | ||
| + | link/ether b8: | ||
| + | vf 0 | ||
| + | vf 1 | ||
| + | vf 2 | ||
| + | |||
| + | Bind the driver to mlx5_core: | ||
| + | |||
| + | [root]@[southpark][14: | ||
| + | |||
| + | [root]@[southpark][14: | ||
| + | 0000: | ||
| + | 0000: | ||
| + | 0000: | ||
| + | 0000: | ||
| + | (...snip...) | ||
| + | |||
| + | A new network device will appear in `ip link`. Here I have already connected it to green and turned it on: | ||
| + | |||
| + | 21: eth0: < | ||
| + | link/ether 00: | ||
| ====GUIDs==== | ====GUIDs==== | ||
| Right now I only have one ConnectX-4: | Right now I only have one ConnectX-4: | ||
| * b8cef603004ebc86 - CX456A-FCAT installed in southpark | * b8cef603004ebc86 - CX456A-FCAT installed in southpark | ||
nndocs/infiniband/connectx-4.txt · Last modified: 2026/08/08 21:04 by naptastic
