Infini-SD: properly setup infiniband
This commit is contained in:
parent
1aed464380
commit
ab9333c203
1 changed files with 7 additions and 3 deletions
|
@ -31,9 +31,13 @@
|
|||
};
|
||||
};
|
||||
|
||||
services.udev.extraRules = ''
|
||||
DRIVER=="mlx4_core", ATTR{mlx4_port1}="eth", ATTR{mlx4_port2}="eth"
|
||||
'';
|
||||
systemd.services.setup-infiniband = {
|
||||
wantedBy = [ "network.target" ];
|
||||
script = ''
|
||||
echo "eth" > /sys/bus/pci/devices/0000:04:00.0/mlx4_port1
|
||||
echo "eth" > /sys/bus/pci/devices/0000:04:00.0/mlx4_port2
|
||||
'';
|
||||
};
|
||||
|
||||
documentation.man.man-db.enable = false;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue