diff options
author | xeji <36407913+xeji@users.noreply.github.com> | 2018-06-25 15:01:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-25 15:01:56 +0200 |
commit | 7e77094f39d3ccf6f1c769be8e52893a449fbb9e (patch) | |
tree | 3e479091f7202f44c00a080a257045e52bff9511 /nixos | |
parent | 39f357a83649d742dbde23558cda0fdb09d3c306 (diff) | |
parent | 401370287a9b74fc18539fe9c0bdc7ac9df9cf22 (diff) |
Merge pull request #42518 from LumiGuide/strongswan-swanctl-5.6.3
strongswan-swanctl: adapt options to strongswan-5.6.3
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/networking/strongswan-swanctl/swanctl-params.nix | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/nixos/modules/services/networking/strongswan-swanctl/swanctl-params.nix b/nixos/modules/services/networking/strongswan-swanctl/swanctl-params.nix index ad211f41eef01..e656163326406 100644 --- a/nixos/modules/services/networking/strongswan-swanctl/swanctl-params.nix +++ b/nixos/modules/services/networking/strongswan-swanctl/swanctl-params.nix @@ -938,9 +938,12 @@ in { protection. ''; - hw_offload = mkYesNoParam no '' + hw_offload = mkEnumParam ["yes" "no" "auto"] "no" '' Enable hardware offload for this CHILD_SA, if supported by the IPsec - implementation. + implementation. The value <literal>yes</literal> enforces offloading + and the installation will fail if it's not supported by either kernel or + device. The value <literal>auto<literal> enables offloading, if it's + supported, but the installation does not fail otherwise. ''; start_action = mkEnumParam ["none" "trap" "start"] "none" '' |