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
bca78c06
Commit
bca78c06
authored
May 24, 2004
by
Arthur Kepner
Committed by
David S. Miller
May 24, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TG3]: Make sure RX/TX flow control settings actually get set.
parent
70e96af2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
drivers/net/tg3.c
drivers/net/tg3.c
+10
-0
No files found.
drivers/net/tg3.c
View file @
bca78c06
...
...
@@ -1104,6 +1104,8 @@ static void tg3_link_report(struct tg3 *tp)
static
void
tg3_setup_flow_control
(
struct
tg3
*
tp
,
u32
local_adv
,
u32
remote_adv
)
{
u32
new_tg3_flags
=
0
;
u32
old_rx_mode
=
tp
->
rx_mode
;
u32
old_tx_mode
=
tp
->
tx_mode
;
if
(
local_adv
&
ADVERTISE_PAUSE_CAP
)
{
if
(
local_adv
&
ADVERTISE_PAUSE_ASYM
)
{
...
...
@@ -1134,10 +1136,18 @@ static void tg3_setup_flow_control(struct tg3 *tp, u32 local_adv, u32 remote_adv
else
tp
->
rx_mode
&=
~
RX_MODE_FLOW_CTRL_ENABLE
;
if
(
old_rx_mode
!=
tp
->
rx_mode
)
{
tw32_f
(
MAC_RX_MODE
,
tp
->
rx_mode
);
}
if
(
new_tg3_flags
&
TG3_FLAG_TX_PAUSE
)
tp
->
tx_mode
|=
TX_MODE_FLOW_CTRL_ENABLE
;
else
tp
->
tx_mode
&=
~
TX_MODE_FLOW_CTRL_ENABLE
;
if
(
old_tx_mode
!=
tp
->
tx_mode
)
{
tw32_f
(
MAC_TX_MODE
,
tp
->
tx_mode
);
}
}
static
void
tg3_aux_stat_to_speed_duplex
(
struct
tg3
*
tp
,
u32
val
,
u16
*
speed
,
u8
*
duplex
)
...
...
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