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
f8e73f8f
Commit
f8e73f8f
authored
Sep 28, 2002
by
Jeff Garzik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sundance net drvr: fix DFE-580TX packet drop issue, further reset_tx fixes
(contributed by Edward Peng @ D-Link)
parent
7dd822b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
drivers/net/sundance.c
drivers/net/sundance.c
+10
-2
No files found.
drivers/net/sundance.c
View file @
f8e73f8f
...
...
@@ -860,6 +860,8 @@ static int netdev_open(struct net_device *dev)
/* Set the chip to poll every N*320nsec. */
writeb
(
100
,
ioaddr
+
RxDMAPollPeriod
);
writeb
(
127
,
ioaddr
+
TxDMAPollPeriod
);
/* Fix DFE-580TX packet drop issue */
writeb
(
0x01
,
ioaddr
+
DebugCtrl1
);
netif_start_queue
(
dev
);
writew
(
StatsEnable
|
RxEnable
|
TxEnable
,
ioaddr
+
MACCtrl1
);
...
...
@@ -967,7 +969,8 @@ static void tx_timeout(struct net_device *dev)
dev
->
trans_start
=
jiffies
;
np
->
stats
.
tx_errors
++
;
netif_wake_queue
(
dev
);
if
(
!
netif_queue_stopped
(
dev
))
netif_wake_queue
(
dev
);
}
...
...
@@ -1116,6 +1119,7 @@ static void intr_handler(int irq, void *dev_instance, struct pt_regs *rgs)
struct
netdev_private
*
np
;
long
ioaddr
;
int
boguscnt
=
max_interrupt_work
;
int
hw_frame_id
;
ioaddr
=
dev
->
base_addr
;
np
=
dev
->
priv
;
...
...
@@ -1174,10 +1178,14 @@ static void intr_handler(int irq, void *dev_instance, struct pt_regs *rgs)
}
}
spin_lock
(
&
np
->
lock
);
hw_frame_id
=
readb
(
ioaddr
+
TxFrameId
);
for
(;
np
->
cur_tx
-
np
->
dirty_tx
>
0
;
np
->
dirty_tx
++
)
{
int
entry
=
np
->
dirty_tx
%
TX_RING_SIZE
;
struct
sk_buff
*
skb
;
if
(
!
(
np
->
tx_ring
[
entry
].
status
&
0x00010000
))
int
sw_frame_id
;
sw_frame_id
=
(
np
->
tx_ring
[
entry
].
status
>>
2
)
&
0xff
;
if
(
sw_frame_id
==
hw_frame_id
)
break
;
skb
=
np
->
tx_skbuff
[
entry
];
/* Free the original skb. */
...
...
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