Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
492c8b44
Commit
492c8b44
authored
Sep 27, 2017
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
X Adjust the patch to new ethtool ksettings API
Similarly to e.g.
d17970d7
.
parent
d98c38ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
drivers/net/ethernet/realtek/r8169.c
drivers/net/ethernet/realtek/r8169.c
+3
-3
No files found.
drivers/net/ethernet/realtek/r8169.c
View file @
492c8b44
...
...
@@ -2381,15 +2381,15 @@ static struct rtl_coalesce_scale {
static
struct
rtl_coalesce_scale
*
rtl_coalesce_scale
(
struct
net_device
*
dev
)
{
struct
ethtool_
cmd
ecmd
;
struct
ethtool_
link_ksettings
ecmd
;
int
rc
,
i
;
rc
=
rtl8169_get_settings
(
dev
,
&
ecmd
);
rc
=
rtl8169_get_
link_k
settings
(
dev
,
&
ecmd
);
if
(
rc
<
0
)
return
ERR_PTR
(
rc
);
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
rtl_coalesce_info
);
i
++
)
{
if
(
e
thtool_cmd_speed
(
&
ecmd
)
==
rtl_coalesce_info
[
i
].
speed
)
if
(
e
cmd
.
base
.
speed
==
rtl_coalesce_info
[
i
].
speed
)
return
rtl_coalesce_info
+
i
;
}
...
...
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