diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-02-13 21:11:31 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-02-13 21:11:31 +0000 |
commit | d2eb5def93cce30c940794659d200bdddc1afa94 (patch) | |
tree | 083134744d5572da8fdd27d19c5c0ebdd87c4647 /etc/inc | |
parent | f7ced886ec3c70db70930d436507d914ed468eec (diff) | |
download | pfsense-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/inc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 3 |
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) |