summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/inc/pfsense-utils.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index bc43378..4dc25fa 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -124,6 +124,9 @@ function enable_hardware_offloading($interface) {
if(isset($config['system']['do_not_use_nic_microcode']))
return;
if($g['booting']) {
+ /* translate wan, lan, opt -> real interface if needed */
+ $int = filter_translate_type_to_real_interface($interface);
+ if($int <> "") $interface = $int;
/* activate polling for interface if it supports it
* man polling on a freebsd box for the following list
*/
@@ -134,9 +137,6 @@ function enable_hardware_offloading($interface) {
mwexec("/sbin/ifconfig {$interface} polling");
}
}
- /* translate wan, lan, opt -> real interface if needed */
- $int = filter_translate_type_to_real_interface($interface);
- if($int <> "") $interface = $int;
$options = strtolower(`/sbin/ifconfig {$interface} | grep options`);
$supported_ints = array('fxp');
foreach($supported_ints as $int) {
OpenPOWER on IntegriCloud