From d2eb5def93cce30c940794659d200bdddc1afa94 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 13 Feb 2007 21:11:31 +0000 Subject: * 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 --- etc/inc/pfsense-utils.inc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'etc') 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) -- cgit v1.1