mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Add configurable option to enable glxsb.
This commit is contained in:
parent
cdd3238d3b
commit
09f18f59dd
@ -1638,4 +1638,15 @@ function compare_hostname_to_dnscache($hostname) {
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* load_glxsb() - Load the glxsb crypto module if enabled in config.
|
||||
*/
|
||||
function load_glxsb() {
|
||||
global $config, $g;
|
||||
$is_loaded = `/sbin/kldstat | /usr/bin/grep -c glxsb`;
|
||||
if (isset($config['system']['glxsb_enable']) && ($is_loaded == 0)) {
|
||||
mwexec("/sbin/kldload glxsb");
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@ -155,6 +155,9 @@ echo "Setting up extended sysctls...";
|
||||
system_setup_sysctl();
|
||||
echo "done.\n";
|
||||
|
||||
/* enable glxsb if wanted */
|
||||
load_glxsb();
|
||||
|
||||
/* run any early shell commands specified in config.xml */
|
||||
system_do_shell_commands(1);
|
||||
|
||||
|
||||
@ -47,6 +47,7 @@ $pconfig['harddiskstandby'] = $config['system']['harddiskstandby'];
|
||||
$pconfig['lb_use_sticky'] = isset($config['system']['lb_use_sticky']);
|
||||
$pconfig['preferoldsa_enable'] = isset($config['ipsec']['preferoldsa']);
|
||||
$pconfig['powerd_enable'] = isset($config['system']['powerd_enable']);
|
||||
$pconfig['glxsb_enable'] = isset($config['system']['glxsb_enable']);
|
||||
|
||||
if ($_POST) {
|
||||
|
||||
@ -71,6 +72,7 @@ if ($_POST) {
|
||||
|
||||
$config['ipsec']['preferoldsa'] = $_POST['preferoldsa_enable'] ? true : false;
|
||||
$config['system']['powerd_enable'] = $_POST['powerd_enable'] ? true : false;
|
||||
$config['system']['glxsb_enable'] = $_POST['glxsb_enable'] ? true : false;
|
||||
|
||||
write_config();
|
||||
|
||||
@ -82,6 +84,7 @@ if ($_POST) {
|
||||
$savemsg = $retval;
|
||||
|
||||
activate_powerd();
|
||||
load_glxsb();
|
||||
}
|
||||
}
|
||||
|
||||
@ -170,6 +173,28 @@ include("head.inc");
|
||||
<tr>
|
||||
<td colspan="2" class="list" height="12"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" valign="top" class="listtopic">glxsb Crypto Acceleration</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell">glxsb</td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="glxsb_enable" type="checkbox" id="glxsb_enable" value="yes" <?php if ($pconfig['glxsb_enable']) echo "checked"; ?> />
|
||||
<strong>Use glxsb</strong><br/>
|
||||
<br />
|
||||
The AMD Geode LX Security Block will accelerate some cryptographic functions
|
||||
on systems which have the chip. Do not enable this option if you have 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 Rijndael (AES). OpenVPN should be set for AES-128-CBC.
|
||||
<br/><br/>
|
||||
If you do not have a glxsb chip in your system, this option will have no
|
||||
effect. To unload the module, uncheck this option and then reboot.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" class="list" height="12"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" valign="top" class="listtopic">IP Security</td>
|
||||
</tr>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user