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
42c5b9bd
Commit
42c5b9bd
authored
Oct 18, 2002
by
Jeb J. Cramer
Committed by
Jeff Garzik
Oct 18, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
e1000 2/10:
* Changed flow control defaults to minimize packet drops
parent
3cb9f9fd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
drivers/net/e1000/e1000.h
drivers/net/e1000/e1000.h
+9
-0
drivers/net/e1000/e1000_main.c
drivers/net/e1000/e1000_main.c
+3
-3
No files found.
drivers/net/e1000/e1000.h
View file @
42c5b9bd
...
@@ -95,6 +95,15 @@ struct e1000_adapter;
...
@@ -95,6 +95,15 @@ struct e1000_adapter;
#define E1000_RXBUFFER_8192 8192
#define E1000_RXBUFFER_8192 8192
#define E1000_RXBUFFER_16384 16384
#define E1000_RXBUFFER_16384 16384
/* Flow Control High-Watermark: 43464 bytes */
#define E1000_FC_HIGH_THRESH 0xA9C8
/* Flow Control Low-Watermark: 43456 bytes */
#define E1000_FC_LOW_THRESH 0xA9C0
/* Flow Control Pause Time: 858 usec */
#define E1000_FC_PAUSE_TIME 0x0680
/* How many Tx Descriptors do we need to call netif_wake_queue ? */
/* How many Tx Descriptors do we need to call netif_wake_queue ? */
#define E1000_TX_QUEUE_WAKE 16
#define E1000_TX_QUEUE_WAKE 16
/* How many Rx Buffers do we bundle into one write to the hardware ? */
/* How many Rx Buffers do we bundle into one write to the hardware ? */
...
...
drivers/net/e1000/e1000_main.c
View file @
42c5b9bd
...
@@ -591,9 +591,9 @@ e1000_sw_init(struct e1000_adapter *adapter)
...
@@ -591,9 +591,9 @@ e1000_sw_init(struct e1000_adapter *adapter)
/* flow control settings */
/* flow control settings */
hw
->
fc_high_water
=
FC_DEFAULT_HI
_THRESH
;
hw
->
fc_high_water
=
E1000_FC_HIGH
_THRESH
;
hw
->
fc_low_water
=
FC_DEFAULT_LO
_THRESH
;
hw
->
fc_low_water
=
E1000_FC_LOW
_THRESH
;
hw
->
fc_pause_time
=
FC_DEFAULT_TX_TIMER
;
hw
->
fc_pause_time
=
E1000_FC_PAUSE_TIME
;
hw
->
fc_send_xon
=
1
;
hw
->
fc_send_xon
=
1
;
/* Media type - copper or fiber */
/* Media type - copper or fiber */
...
...
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