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
482f6240
Commit
482f6240
authored
Nov 20, 2003
by
Herbert Xu
Committed by
Jeff Garzik
Nov 20, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[netdrvr tg3] fix BCM5705 pending-RX count (was 64, now 63)
parent
55b1a534
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
drivers/net/tg3.c
drivers/net/tg3.c
+3
-3
No files found.
drivers/net/tg3.c
View file @
482f6240
...
@@ -6071,8 +6071,8 @@ static int tg3_set_ringparam(struct net_device *dev, struct ethtool_ringparam *e
...
@@ -6071,8 +6071,8 @@ static int tg3_set_ringparam(struct net_device *dev, struct ethtool_ringparam *e
tp
->
rx_pending
=
ering
->
rx_pending
;
tp
->
rx_pending
=
ering
->
rx_pending
;
if
((
tp
->
tg3_flags2
&
TG3_FLG2_MAX_RXPEND_64
)
&&
if
((
tp
->
tg3_flags2
&
TG3_FLG2_MAX_RXPEND_64
)
&&
tp
->
rx_pending
>
6
4
)
tp
->
rx_pending
>
6
3
)
tp
->
rx_pending
=
6
4
;
tp
->
rx_pending
=
6
3
;
tp
->
rx_jumbo_pending
=
ering
->
rx_jumbo_pending
;
tp
->
rx_jumbo_pending
=
ering
->
rx_jumbo_pending
;
tp
->
tx_pending
=
ering
->
tx_pending
;
tp
->
tx_pending
=
ering
->
tx_pending
;
...
@@ -7676,7 +7676,7 @@ static int __devinit tg3_init_one(struct pci_dev *pdev,
...
@@ -7676,7 +7676,7 @@ static int __devinit tg3_init_one(struct pci_dev *pdev,
!
(
tp
->
tg3_flags2
&
TG3_FLG2_TSO_CAPABLE
)
&&
!
(
tp
->
tg3_flags2
&
TG3_FLG2_TSO_CAPABLE
)
&&
!
(
tr32
(
TG3PCI_PCISTATE
)
&
PCISTATE_BUS_SPEED_HIGH
))
{
!
(
tr32
(
TG3PCI_PCISTATE
)
&
PCISTATE_BUS_SPEED_HIGH
))
{
tp
->
tg3_flags2
|=
TG3_FLG2_MAX_RXPEND_64
;
tp
->
tg3_flags2
|=
TG3_FLG2_MAX_RXPEND_64
;
tp
->
rx_pending
=
6
4
;
tp
->
rx_pending
=
6
3
;
}
}
if
(
GET_ASIC_REV
(
tp
->
pci_chip_rev_id
)
==
ASIC_REV_5704
)
if
(
GET_ASIC_REV
(
tp
->
pci_chip_rev_id
)
==
ASIC_REV_5704
)
...
...
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