From d8ba6ecab95d93e500a2d8fc4b8d4c77928b00bd Mon Sep 17 00:00:00 2001 From: Pierre Bourdon Date: Thu, 9 Dec 2021 01:59:10 +0100 Subject: [PATCH] dpdk: add Mellanox support via rdma-core dependency rdma-core contains libmlx4/libmlx5 which are required for DPDK to be able to run using Mellanox NIC devices. This has a non-trivial closure size impact (730M -> 941M) but the size increase is almost entirely driven by adding systemd to the transitive closure, which we should expect is present anyway on most NixOS systems. So, in practice, this is expected to be close to no-op in size increase. --- pkgs/os-specific/linux/dpdk/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/os-specific/linux/dpdk/default.nix b/pkgs/os-specific/linux/dpdk/default.nix index 81bf17b19993..650c2516ef98 100644 --- a/pkgs/os-specific/linux/dpdk/default.nix +++ b/pkgs/os-specific/linux/dpdk/default.nix @@ -2,7 +2,7 @@ , kernel , fetchurl , pkg-config, meson, ninja -, libbsd, numactl, libbpf, zlib, libelf, jansson, openssl, libpcap +, libbsd, numactl, libbpf, zlib, libelf, jansson, openssl, libpcap, rdma-core , doxygen, python3 , withExamples ? [] , shared ? false }: @@ -36,6 +36,7 @@ in stdenv.mkDerivation rec { libpcap numactl openssl.dev + rdma-core zlib ] ++ lib.optionals mod kernel.moduleBuildDependencies;