summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-02-13 21:11:31 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-02-13 21:11:31 +0000
commitd2eb5def93cce30c940794659d200bdddc1afa94 (patch)
tree083134744d5572da8fdd27d19c5c0ebdd87c4647 /etc
parentf7ced886ec3c70db70930d436507d914ed468eec (diff)
downloadpfsense-d2eb5def93cce30c940794659d200bdddc1afa94.zip
pfsense-d2eb5def93cce30c940794659d200bdddc1afa94.tar.gz
* Do not run save logic twice (slows the page down)
* Add disable hardware checksum option which prevents the system from turning on hardware checksum offloading. This seems to be a growing problem on a lot of nics such as SK
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/pfsense-utils.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index 40e539b..bd813b7 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -198,6 +198,9 @@ function enable_hardware_offloading($interface) {
if (in_array($int_family, $supported_ints))
mwexec("/sbin/ifconfig {$interface} link0");
+ if($config['system']['disablechecksumoffloading'])
+ return;
+
if(stristr($options, "txcsum") == true)
mwexec("/sbin/ifconfig {$interface} txcsum 2>/dev/null");
if(stristr($options, "rxcsum") == true)
OpenPOWER on IntegriCloud