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
a801eb11
Commit
a801eb11
authored
Oct 22, 2016
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
interface offloading, add txcsum6, trxcsum6 for
https://github.com/opnsense/core/issues/1227
parent
e55feb1e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
interfaces.lib.inc
src/etc/inc/interfaces.lib.inc
+7
-0
No files found.
src/etc/inc/interfaces.lib.inc
View file @
a801eb11
...
...
@@ -245,6 +245,7 @@ function configure_interface_hardware($ifs)
if
(
!
stristr
(
$ifs
,
"_vlan"
)
&&
is_array
(
$intf_details
))
{
// get current settings
$csum_set
=
in_array
(
'rxcsum'
,
$intf_details
[
'options'
])
||
in_array
(
'txcsum'
,
$intf_details
[
'options'
]);
$csumv6_set
=
in_array
(
'rxcsum6'
,
$intf_details
[
'options'
])
||
in_array
(
'txcsum6'
,
$intf_details
[
'options'
]);
$tso_set
=
in_array
(
'tso4'
,
$intf_details
[
'options'
])
||
in_array
(
'tso6'
,
$intf_details
[
'options'
]);
$lro_set
=
in_array
(
'lro'
,
$intf_details
[
'options'
]);
...
...
@@ -254,6 +255,12 @@ function configure_interface_hardware($ifs)
}
elseif
(
!
isset
(
$config
[
'system'
][
'disablechecksumoffloading'
])
&&
!
$csum_set
)
{
legacy_interface_flags
(
$ifs
,
'txcsum rxcsum'
,
false
);
}
if
(
isset
(
$config
[
'system'
][
'disablechecksumoffloading'
])
&&
$csumv6_set
)
{
legacy_interface_flags
(
$ifs
,
'-txcsum6 -rxcsum6'
,
false
);
}
elseif
(
!
isset
(
$config
[
'system'
][
'disablechecksumoffloading'
])
&&
!
$csumv6_set
)
{
legacy_interface_flags
(
$ifs
,
'txcsum6 rxcsum6'
,
false
);
}
// TCP segmentation offloading
if
(
isset
(
$config
[
'system'
][
'disablesegmentationoffloading'
])
&&
$tso_set
)
{
legacy_interface_flags
(
$ifs
,
'-tso'
,
false
);
...
...
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