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
nexedi
linux
Commits
ba918ede
Commit
ba918ede
authored
May 27, 2004
by
Jeff Garzik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[netdrvr e1000] use generic ethtool_ops provided in net/core/ethtool.c
parent
d913e61d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
33 deletions
+4
-33
drivers/net/e1000/e1000_ethtool.c
drivers/net/e1000/e1000_ethtool.c
+4
-33
No files found.
drivers/net/e1000/e1000_ethtool.c
View file @
ba918ede
...
...
@@ -297,30 +297,7 @@ e1000_set_tx_csum(struct net_device *netdev, uint32_t data)
return
0
;
}
static
uint32_t
e1000_get_sg
(
struct
net_device
*
netdev
)
{
return
(
netdev
->
features
&
NETIF_F_SG
)
!=
0
;
}
static
int
e1000_set_sg
(
struct
net_device
*
netdev
,
uint32_t
data
)
{
if
(
data
)
netdev
->
features
|=
NETIF_F_SG
;
else
netdev
->
features
&=
~
NETIF_F_SG
;
return
0
;
}
#ifdef NETIF_F_TSO
static
uint32_t
e1000_get_tso
(
struct
net_device
*
netdev
)
{
return
(
netdev
->
features
&
NETIF_F_TSO
)
!=
0
;
}
static
int
e1000_set_tso
(
struct
net_device
*
netdev
,
uint32_t
data
)
{
...
...
@@ -1577,12 +1554,6 @@ e1000_nway_reset(struct net_device *netdev)
return
0
;
}
static
uint32_t
e1000_get_link
(
struct
net_device
*
netdev
)
{
return
netif_carrier_ok
(
netdev
);
}
static
int
e1000_get_stats_count
(
struct
net_device
*
netdev
)
{
...
...
@@ -1635,7 +1606,7 @@ struct ethtool_ops e1000_ethtool_ops = {
.
get_msglevel
=
e1000_get_msglevel
,
.
set_msglevel
=
e1000_set_msglevel
,
.
nway_reset
=
e1000_nway_reset
,
.
get_link
=
e
1000
_get_link
,
.
get_link
=
e
thtool_op
_get_link
,
.
get_eeprom_len
=
e1000_get_eeprom_len
,
.
get_eeprom
=
e1000_get_eeprom
,
.
set_eeprom
=
e1000_set_eeprom
,
...
...
@@ -1647,10 +1618,10 @@ struct ethtool_ops e1000_ethtool_ops = {
.
set_rx_csum
=
e1000_set_rx_csum
,
.
get_tx_csum
=
e1000_get_tx_csum
,
.
set_tx_csum
=
e1000_set_tx_csum
,
.
get_sg
=
e
1000
_get_sg
,
.
set_sg
=
e
1000
_set_sg
,
.
get_sg
=
e
thtool_op
_get_sg
,
.
set_sg
=
e
thtool_op
_set_sg
,
#ifdef NETIF_F_TSO
.
get_tso
=
e
1000
_get_tso
,
.
get_tso
=
e
thtool_op
_get_tso
,
.
set_tso
=
e1000_set_tso
,
#endif
.
self_test_count
=
e1000_diag_test_count
,
...
...
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