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
6ea164b7
Commit
6ea164b7
authored
Feb 01, 2003
by
David S. Miller
Committed by
David S. Miller
Feb 01, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TG3]: Prevent dropped frames when flow-control is enabled.
parent
115df75c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
drivers/net/tg3.c
drivers/net/tg3.c
+6
-0
drivers/net/tg3.h
drivers/net/tg3.h
+1
-0
No files found.
drivers/net/tg3.c
View file @
6ea164b7
...
@@ -4271,6 +4271,12 @@ static int tg3_reset_hw(struct tg3 *tp)
...
@@ -4271,6 +4271,12 @@ static int tg3_reset_hw(struct tg3 *tp)
if
(
tp
->
pci_chip_rev_id
==
CHIPREV_ID_5703_A1
)
if
(
tp
->
pci_chip_rev_id
==
CHIPREV_ID_5703_A1
)
tw32
(
MAC_SERDES_CFG
,
0x616000
);
tw32
(
MAC_SERDES_CFG
,
0x616000
);
/* Prevent chip from dropping frames when flow control
* is enabled.
*/
tw32
(
MAC_LOW_WMARK_MAX_RX_FRAME
,
2
);
tr32
(
MAC_LOW_WMARK_MAX_RX_FRAME
);
err
=
tg3_setup_phy
(
tp
);
err
=
tg3_setup_phy
(
tp
);
if
(
err
)
if
(
err
)
return
err
;
return
err
;
...
...
drivers/net/tg3.h
View file @
6ea164b7
...
@@ -456,6 +456,7 @@
...
@@ -456,6 +456,7 @@
#define RCV_RULE_DISABLE_MASK 0x7fffffff
#define RCV_RULE_DISABLE_MASK 0x7fffffff
#define MAC_RCV_RULE_CFG 0x00000500
#define MAC_RCV_RULE_CFG 0x00000500
#define RCV_RULE_CFG_DEFAULT_CLASS 0x00000008
#define RCV_RULE_CFG_DEFAULT_CLASS 0x00000008
#define MAC_LOW_WMARK_MAX_RX_FRAME 0x00000504
/* 0x504 --> 0x590 unused */
/* 0x504 --> 0x590 unused */
#define MAC_SERDES_CFG 0x00000590
#define MAC_SERDES_CFG 0x00000590
#define MAC_SERDES_STAT 0x00000594
#define MAC_SERDES_STAT 0x00000594
...
...
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