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
d459392f
Commit
d459392f
authored
Aug 25, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TG3]: Protect get/set TSO support with proper ifdefs.
parent
3c34e847
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
drivers/net/tg3.c
drivers/net/tg3.c
+4
-0
No files found.
drivers/net/tg3.c
View file @
d459392f
...
@@ -6032,6 +6032,7 @@ static void tg3_set_msglevel(struct net_device *dev, u32 value)
...
@@ -6032,6 +6032,7 @@ static void tg3_set_msglevel(struct net_device *dev, u32 value)
tp
->
msg_enable
=
value
;
tp
->
msg_enable
=
value
;
}
}
#if TG3_TSO_SUPPORT != 0
static
int
tg3_set_tso
(
struct
net_device
*
dev
,
u32
value
)
static
int
tg3_set_tso
(
struct
net_device
*
dev
,
u32
value
)
{
{
struct
tg3
*
tp
=
dev
->
priv
;
struct
tg3
*
tp
=
dev
->
priv
;
...
@@ -6043,6 +6044,7 @@ static int tg3_set_tso(struct net_device *dev, u32 value)
...
@@ -6043,6 +6044,7 @@ static int tg3_set_tso(struct net_device *dev, u32 value)
}
}
return
ethtool_op_set_tso
(
dev
,
value
);
return
ethtool_op_set_tso
(
dev
,
value
);
}
}
#endif
static
int
tg3_nway_reset
(
struct
net_device
*
dev
)
static
int
tg3_nway_reset
(
struct
net_device
*
dev
)
{
{
...
@@ -6281,8 +6283,10 @@ static struct ethtool_ops tg3_ethtool_ops = {
...
@@ -6281,8 +6283,10 @@ static struct ethtool_ops tg3_ethtool_ops = {
.
set_tx_csum
=
tg3_set_tx_csum
,
.
set_tx_csum
=
tg3_set_tx_csum
,
.
get_sg
=
ethtool_op_get_sg
,
.
get_sg
=
ethtool_op_get_sg
,
.
set_sg
=
ethtool_op_set_sg
,
.
set_sg
=
ethtool_op_set_sg
,
#if TG3_TSO_SUPPORT != 0
.
get_tso
=
ethtool_op_get_tso
,
.
get_tso
=
ethtool_op_get_tso
,
.
set_tso
=
tg3_set_tso
,
.
set_tso
=
tg3_set_tso
,
#endif
};
};
/* Chips other than 5700/5701 use the NVRAM for fetching info. */
/* Chips other than 5700/5701 use the NVRAM for fetching info. */
...
...
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