diff options
Diffstat (limited to 'etc/inc/pfsense-utils.inc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 14a2579..b951d0d 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -203,7 +203,7 @@ function enable_hardware_offloading($interface) { if(stristr($interface, "vlan")) return; - if($config['system']['disablechecksumoffloading']) { + if(isset($config['system']['disablechecksumoffloading'])) { if (isset($options['encaps']['txcsum'])) pfSense_interface_capabilities($interface, -IFCAP_TXCSUM); if (isset($options['encaps']['rxcsum'])) @@ -215,7 +215,7 @@ function enable_hardware_offloading($interface) { pfSense_interface_capabilities($interface, IFCAP_RXCSUM); } - if($config['system']['disablesegmentationoffloading']) { + if(isset($config['system']['disablesegmentationoffloading'])) { if (isset($options['encaps']['tso4'])) pfSense_interface_capabilities($interface, -IFCAP_TSO); if (isset($options['encaps']['tso6'])) @@ -227,7 +227,7 @@ function enable_hardware_offloading($interface) { pfSense_interface_capabilities($interface, IFCAP_TSO); } - if($config['system']['disablelargereceiveoffloading']) { + if(isset($config['system']['disablelargereceiveoffloading'])) { if (isset($options['encaps']['lro'])) pfSense_interface_capabilities($interface, -IFCAP_LRO); } else { |