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
57d435d4
Commit
57d435d4
authored
Sep 01, 2003
by
Jeff Garzik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NET] move ethtool_op_set_tx_csum from 8139cp drvr to net/core/ethtool.c,
where it belongs.
parent
139e83e5
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
11 deletions
+12
-11
drivers/net/8139cp.c
drivers/net/8139cp.c
+0
-11
include/linux/ethtool.h
include/linux/ethtool.h
+1
-0
net/core/ethtool.c
net/core/ethtool.c
+10
-0
net/netsyms.c
net/netsyms.c
+1
-0
No files found.
drivers/net/8139cp.c
View file @
57d435d4
...
@@ -1405,17 +1405,6 @@ static int cp_set_rx_csum(struct net_device *dev, u32 data)
...
@@ -1405,17 +1405,6 @@ static int cp_set_rx_csum(struct net_device *dev, u32 data)
return
0
;
return
0
;
}
}
/* move this to net/core/ethtool.c */
static
int
ethtool_op_set_tx_csum
(
struct
net_device
*
dev
,
u32
data
)
{
if
(
data
)
dev
->
features
|=
NETIF_F_IP_CSUM
;
else
dev
->
features
&=
~
NETIF_F_IP_CSUM
;
return
0
;
}
static
void
cp_get_regs
(
struct
net_device
*
dev
,
struct
ethtool_regs
*
regs
,
static
void
cp_get_regs
(
struct
net_device
*
dev
,
struct
ethtool_regs
*
regs
,
void
*
p
)
void
*
p
)
{
{
...
...
include/linux/ethtool.h
View file @
57d435d4
...
@@ -255,6 +255,7 @@ struct net_device;
...
@@ -255,6 +255,7 @@ struct net_device;
/* Some generic methods drivers may use in their ethtool_ops */
/* Some generic methods drivers may use in their ethtool_ops */
u32
ethtool_op_get_link
(
struct
net_device
*
dev
);
u32
ethtool_op_get_link
(
struct
net_device
*
dev
);
u32
ethtool_op_get_tx_csum
(
struct
net_device
*
dev
);
u32
ethtool_op_get_tx_csum
(
struct
net_device
*
dev
);
int
ethtool_op_set_tx_csum
(
struct
net_device
*
dev
,
u32
data
);
u32
ethtool_op_get_sg
(
struct
net_device
*
dev
);
u32
ethtool_op_get_sg
(
struct
net_device
*
dev
);
int
ethtool_op_set_sg
(
struct
net_device
*
dev
,
u32
data
);
int
ethtool_op_set_sg
(
struct
net_device
*
dev
,
u32
data
);
u32
ethtool_op_get_tso
(
struct
net_device
*
dev
);
u32
ethtool_op_get_tso
(
struct
net_device
*
dev
);
...
...
net/core/ethtool.c
View file @
57d435d4
...
@@ -31,6 +31,16 @@ u32 ethtool_op_get_tx_csum(struct net_device *dev)
...
@@ -31,6 +31,16 @@ u32 ethtool_op_get_tx_csum(struct net_device *dev)
return
(
dev
->
features
&
NETIF_F_IP_CSUM
)
!=
0
;
return
(
dev
->
features
&
NETIF_F_IP_CSUM
)
!=
0
;
}
}
int
ethtool_op_set_tx_csum
(
struct
net_device
*
dev
,
u32
data
)
{
if
(
data
)
dev
->
features
|=
NETIF_F_IP_CSUM
;
else
dev
->
features
&=
~
NETIF_F_IP_CSUM
;
return
0
;
}
u32
ethtool_op_get_sg
(
struct
net_device
*
dev
)
u32
ethtool_op_get_sg
(
struct
net_device
*
dev
)
{
{
return
(
dev
->
features
&
NETIF_F_SG
)
!=
0
;
return
(
dev
->
features
&
NETIF_F_SG
)
!=
0
;
...
...
net/netsyms.c
View file @
57d435d4
...
@@ -631,6 +631,7 @@ EXPORT_SYMBOL(linkwatch_fire_event);
...
@@ -631,6 +631,7 @@ EXPORT_SYMBOL(linkwatch_fire_event);
/* ethtool.c */
/* ethtool.c */
EXPORT_SYMBOL
(
ethtool_op_get_link
);
EXPORT_SYMBOL
(
ethtool_op_get_link
);
EXPORT_SYMBOL
(
ethtool_op_get_tx_csum
);
EXPORT_SYMBOL
(
ethtool_op_get_tx_csum
);
EXPORT_SYMBOL
(
ethtool_op_set_tx_csum
);
EXPORT_SYMBOL
(
ethtool_op_get_sg
);
EXPORT_SYMBOL
(
ethtool_op_get_sg
);
EXPORT_SYMBOL
(
ethtool_op_set_sg
);
EXPORT_SYMBOL
(
ethtool_op_set_sg
);
EXPORT_SYMBOL
(
ethtool_op_get_tso
);
EXPORT_SYMBOL
(
ethtool_op_get_tso
);
...
...
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