1 { config, lib, pkgs, ... }:
6 cfg = config.networking.rxe;
13 enable = mkEnableOption "RDMA over converged ethernet";
14 interfaces = mkOption {
15 type = types.listOf types.str;
19 Enable RDMA on the listed interfaces. The corresponding virtual
20 RDMA interfaces will be named rxe_\<interface\>.
21 UDP port 4791 must be open on the respective ethernet interfaces.
29 config = mkIf cfg.enable {
31 systemd.services.rxe = {
32 description = "RoCE interfaces";
34 wantedBy = [ "multi-user.target" ];
35 after = [ "systemd-modules-load.service" "network-online.target" ];
36 wants = [ "network-pre.target" "network-online.target" ];
40 RemainAfterExit = true;
42 "${pkgs.iproute2}/bin/rdma link add rxe_${x} type rxe netdev ${x}"
46 "${pkgs.iproute2}/bin/rdma link delete rxe_${x}"