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
20a15907
Commit
20a15907
authored
Oct 16, 2002
by
Steven Parker
Committed by
Tim Hockin
Oct 16, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drivers/net/eepro100.c: only set priv->last_rx_time if we did work
parent
e4f95c88
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
drivers/net/eepro100.c
drivers/net/eepro100.c
+5
-1
No files found.
drivers/net/eepro100.c
View file @
20a15907
...
...
@@ -1759,6 +1759,7 @@ speedo_rx(struct net_device *dev)
int
entry
=
sp
->
cur_rx
%
RX_RING_SIZE
;
int
rx_work_limit
=
sp
->
dirty_rx
+
RX_RING_SIZE
-
sp
->
cur_rx
;
int
alloc_ok
=
1
;
int
npkts
=
0
;
if
(
netif_msg_intr
(
sp
))
printk
(
KERN_DEBUG
" In speedo_rx().
\n
"
);
...
...
@@ -1825,6 +1826,7 @@ speedo_rx(struct net_device *dev)
memcpy
(
skb_put
(
skb
,
pkt_len
),
sp
->
rx_skbuff
[
entry
]
->
tail
,
pkt_len
);
#endif
npkts
++
;
}
else
{
/* Pass up the already-filled skbuff. */
skb
=
sp
->
rx_skbuff
[
entry
];
...
...
@@ -1835,6 +1837,7 @@ speedo_rx(struct net_device *dev)
}
sp
->
rx_skbuff
[
entry
]
=
NULL
;
skb_put
(
skb
,
pkt_len
);
npkts
++
;
sp
->
rx_ringp
[
entry
]
=
NULL
;
pci_unmap_single
(
sp
->
pdev
,
sp
->
rx_ring_dma
[
entry
],
PKT_BUF_SZ
+
sizeof
(
struct
RxFD
),
PCI_DMA_FROMDEVICE
);
...
...
@@ -1856,6 +1859,7 @@ speedo_rx(struct net_device *dev)
/* Try hard to refill the recently taken buffers. */
speedo_refill_rx_buffers
(
dev
,
1
);
if
(
npkts
)
sp
->
last_rx_time
=
jiffies
;
return
0
;
...
...
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