diff --git a/src/etc/inc/pfsense-utils.inc b/src/etc/inc/pfsense-utils.inc index 810aff429..7def51c81 100644 --- a/src/etc/inc/pfsense-utils.inc +++ b/src/etc/inc/pfsense-utils.inc @@ -71,37 +71,6 @@ function get_dns_servers() { return array_unique($dns_servers); } -/****f* legacy/enable_hardware_offloading - * NAME - * enable_hardware_offloading - Enable a NIC's supported hardware features. - * INPUTS - * $interface - string containing the physical interface to work on. - * RESULT - * null - * NOTES - * This function only supports the fxp driver's loadable microcode. - ******/ -function enable_hardware_offloading($interface) -{ - global $config; - - if (isset($config['system']['do_not_use_nic_microcode'])) { - return; - } - - /* translate wan, lan, opt -> real interface if needed */ - $int = get_real_interface($interface); - if (empty($int)) { - return; - } - $int_family = preg_split('/[0-9]+/', $int); - $supported_ints = array('fxp'); - if (in_array($int_family, $supported_ints)) { - if (does_interface_exist($int)) { - legacy_interface_flags($int, 'link0'); - } - } -} /****f* legacy/setup_polling * NAME @@ -124,25 +93,6 @@ function setup_polling() } } -/****f* legacy/setup_microcode - * NAME - * enumerates all interfaces and calls enable_hardware_offloading which - * enables a NIC's supported hardware features. - * INPUTS - * - * RESULT - * null - * NOTES - * This function only supports the fxp driver's loadable microcode. - ******/ -function setup_microcode() { - /* if list */ - $ifs = legacy_interface_listget(); - - foreach($ifs as $if) { - enable_hardware_offloading($if); - } -} /* * get_carp_interface_status($carpinterface): returns the status of a carp ip diff --git a/src/etc/rc.bootup b/src/etc/rc.bootup index cfba0696d..39faca620 100755 --- a/src/etc/rc.bootup +++ b/src/etc/rc.bootup @@ -231,11 +231,6 @@ echo "Setting up polling defaults..."; setup_polling(); echo "done.\n"; -/* setup interface microcode which improves tcp/ip speed */ -echo "Setting up interfaces microcode..."; -setup_microcode(); -echo "done.\n"; - /* set up interfaces */ mute_kernel_msgs(); interfaces_configure(); diff --git a/src/www/system_advanced_network.php b/src/www/system_advanced_network.php index 16b63ab3e..5e5e605ac 100644 --- a/src/www/system_advanced_network.php +++ b/src/www/system_advanced_network.php @@ -124,7 +124,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { "net.link.ether.inet.log_arp_movements" => "1" )); } - setup_microcode(); write_config(); $savemsg = get_std_save_message();