Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
ec5d6b12
Commit
ec5d6b12
authored
Feb 15, 2016
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(legacy) zap setup_microcode
parent
c2a5f03c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
56 deletions
+0
-56
pfsense-utils.inc
src/etc/inc/pfsense-utils.inc
+0
-50
rc.bootup
src/etc/rc.bootup
+0
-5
system_advanced_network.php
src/www/system_advanced_network.php
+0
-1
No files found.
src/etc/inc/pfsense-utils.inc
View file @
ec5d6b12
...
...
@@ -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
...
...
src/etc/rc.bootup
View file @
ec5d6b12
...
...
@@ -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
();
...
...
src/www/system_advanced_network.php
View file @
ec5d6b12
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment