summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-10-14 21:01:21 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-10-14 21:01:21 +0000
commit8d36fd1d32f56dc65f681c28c3622e7f4fade394 (patch)
tree3a52d5ab87bc6b174ef4b510345dcbdd236279bb /usr/local
parent6008210b087c9892fc5098fe6ceb34727ca68963 (diff)
downloadpfsense-8d36fd1d32f56dc65f681c28c3622e7f4fade394.zip
pfsense-8d36fd1d32f56dc65f681c28c3622e7f4fade394.tar.gz
Add polling enable/disable control in System Advanced
Suggested-by: CMB
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/system_advanced.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/usr/local/www/system_advanced.php b/usr/local/www/system_advanced.php
index 7c22c63..be89d44 100755
--- a/usr/local/www/system_advanced.php
+++ b/usr/local/www/system_advanced.php
@@ -55,6 +55,7 @@ $pconfig['preferoldsa_enable'] = isset($config['ipsec']['preferoldsa']);
$pconfig['enablesshd'] = $config['system']['enablesshd'];
$pconfig['sshport'] = $config['system']['ssh']['port'];
$pconfig['sharednet'] = $config['system']['sharednet'];
+$pconfig['polling_enable'] = isset($config['system']['polling']);
if ($_POST) {
@@ -112,6 +113,8 @@ if ($_POST) {
$oldsshport = $config['system']['ssh']['port'];
$config['system']['ssh']['port'] = $_POST['sshport'];
+ $config['system']['polling'] = $_POST['polling_enable'] ? true : false;
+
if($_POST['sharednet'] == "yes") {
$config['system']['sharednet'] = true;
system_disable_arp_wrong_if();
@@ -401,6 +404,19 @@ include("head.inc");
<tr>
<td colspan="2" valign="top" class="listtopic">Miscellaneous</td>
</tr>
+
+ <tr>
+ <td width="22%" valign="top" class="vncell">Device polling</td>
+ <td width="78%" class="vtable">
+ <input name="polling_enable" type="checkbox" id="polling_enable" value="yes" <?php if ($pconfig['polling_enable']) echo "checked"; ?>>
+ <strong>Use device polling</strong><br>
+ Device polling is a technique that lets the system periodically poll network devices for new
+ data instead of relying on interrupts. This can reduce CPU load and therefore increase
+ throughput, at the expense of a slightly higher forwarding delay (the devices are polled 1000 times
+ per second). Not all NICs support polling; see the m0n0wall homepage for a list of supported cards.
+ </td>
+ </tr>
+
<tr>
<td width="22%" valign="top" class="vncell">Console menu </td>
<td width="78%" class="vtable">
OpenPOWER on IntegriCloud