diff options
author | jim-p <jimp@pfsense.org> | 2017-02-28 14:28:07 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2017-02-28 14:28:07 -0500 |
commit | 2c98383fd1618be8412d3810f8cd0c872a837a24 (patch) | |
tree | 95204ac02b0a9ae6be7645309f7011b99dcc701b /src/usr/local | |
parent | 88aceb2573acab8fbc7e4d467e31280f701ba9cd (diff) | |
download | pfsense-2c98383fd1618be8412d3810f8cd0c872a837a24.zip pfsense-2c98383fd1618be8412d3810f8cd0c872a837a24.tar.gz |
Add GUI components for loading cryptodev as a module, and upgrade code so users have it on upgrade since it was in-kernel before. Fixes #5976
Having both aesni and cryptodev loaded at the same time appears to only negatively impact performance, no gains, so at the moment there is no need to load them at the same time.
Diffstat (limited to 'src/usr/local')
-rw-r--r-- | src/usr/local/www/system_advanced_misc.php | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/usr/local/www/system_advanced_misc.php b/src/usr/local/www/system_advanced_misc.php index ac7e226..6476f11 100644 --- a/src/usr/local/www/system_advanced_misc.php +++ b/src/usr/local/www/system_advanced_misc.php @@ -73,7 +73,9 @@ if (!empty($config['system']['powerd_normal_mode'])) { } $crypto_modules = array( - 'aesni' => gettext("AES-NI CPU-based Acceleration")); + 'aesni' => gettext("AES-NI CPU-based Acceleration"), + 'cryptodev' => gettext("BSD Crypto Device (cryptodev)") +); $thermal_hardware_modules = array( 'coretemp' => gettext("Intel Core* CPU on-die thermal sensor"), @@ -443,15 +445,12 @@ $section->addInput(new Form_Select( 'Cryptographic Hardware', $pconfig['crypto_hardware'], ['' => gettext('None')] + $crypto_modules -))->setHelp('A cryptographic '. - 'accelerator module will use hardware support to speed up some cryptographic '. - 'functions on systems which have the chip. Do not enable this option with '. - 'a Hifn cryptographic acceleration card, as this will take precedence and the '. - 'Hifn card will not be used. Acceleration should be automatic for IPsec when '. - 'using a cipher supported by the chip, such as AES-128. OpenVPN should be set '. - 'for AES-128-CBC and have cryptodev enabled for hardware acceleration. If there '. - 'is not a crypto chip in the system, this option will have no effect. To '. - 'unload the selected module, set this option to "none" and then reboot.'); +))->setHelp('A cryptographic accelerator module will use hardware support to speed up some cryptographic '. + 'functions on systems which have the chip. '. + 'Loading the BSD Crypto Device module will allow access to acceleration devices using drivers '. + 'built into the kernel, such as Hifn or ubsec chipsets. '. + 'If the firewall does not contain a crypto chip, this option will have no effect. '. + 'To unload the selected module, set this option to "none" and then reboot.'); $section->addInput(new Form_Select( 'thermal_hardware', |