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
5ecde9ac
Commit
5ecde9ac
authored
Aug 23, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ETHTOOL]: Add ethtool_op_{set,get}_tso helpers.
parent
c709c6e3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
0 deletions
+19
-0
include/linux/ethtool.h
include/linux/ethtool.h
+2
-0
net/core/ethtool.c
net/core/ethtool.c
+15
-0
net/netsyms.c
net/netsyms.c
+2
-0
No files found.
include/linux/ethtool.h
View file @
5ecde9ac
...
...
@@ -257,6 +257,8 @@ u32 ethtool_op_get_link(struct net_device *dev);
u32
ethtool_op_get_tx_csum
(
struct
net_device
*
dev
);
u32
ethtool_op_get_sg
(
struct
net_device
*
dev
);
int
ethtool_op_set_sg
(
struct
net_device
*
dev
,
u32
data
);
u32
ethtool_op_get_tso
(
struct
net_device
*
dev
);
int
ethtool_op_set_tso
(
struct
net_device
*
dev
,
u32
data
);
/**
* ðtool_ops - Alter and report network device settings
...
...
net/core/ethtool.c
View file @
5ecde9ac
...
...
@@ -45,6 +45,21 @@ int ethtool_op_set_sg(struct net_device *dev, u32 data)
return
0
;
}
u32
ethtool_op_get_tso
(
struct
net_device
*
dev
)
{
return
(
dev
->
features
&
NETIF_F_TSO
)
!=
0
;
}
int
ethtool_op_set_tso
(
struct
net_device
*
dev
,
u32
data
)
{
if
(
data
)
dev
->
features
|=
NETIF_F_TSO
;
else
dev
->
features
&=
~
NETIF_F_TSO
;
return
0
;
}
/* Handlers for each ethtool command */
static
int
ethtool_get_settings
(
struct
net_device
*
dev
,
void
*
useraddr
)
...
...
net/netsyms.c
View file @
5ecde9ac
...
...
@@ -633,5 +633,7 @@ EXPORT_SYMBOL(ethtool_op_get_link);
EXPORT_SYMBOL
(
ethtool_op_get_tx_csum
);
EXPORT_SYMBOL
(
ethtool_op_get_sg
);
EXPORT_SYMBOL
(
ethtool_op_set_sg
);
EXPORT_SYMBOL
(
ethtool_op_get_tso
);
EXPORT_SYMBOL
(
ethtool_op_set_tso
);
#endif
/* CONFIG_NET */
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