Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci-2.6.23
Commits
f7383c22
Commit
f7383c22
authored
May 18, 2005
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TG3]: In tg3_poll(), resample status_tag after doing work.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
59e6b434
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
drivers/net/tg3.c
drivers/net/tg3.c
+5
-7
No files found.
drivers/net/tg3.c
View file @
f7383c22
...
...
@@ -2869,9 +2869,6 @@ static int tg3_poll(struct net_device *netdev, int *budget)
spin_lock_irqsave
(
&
tp
->
lock
,
flags
);
if
(
tp
->
tg3_flags
&
TG3_FLAG_TAGGED_STATUS
)
tp
->
last_tag
=
sblk
->
status_tag
;
/* handle link change and other phy events */
if
(
!
(
tp
->
tg3_flags
&
(
TG3_FLAG_USE_LINKCHG_REG
|
...
...
@@ -2896,7 +2893,6 @@ static int tg3_poll(struct net_device *netdev, int *budget)
* All RX "locking" is done by ensuring outside
* code synchronizes with dev->poll()
*/
done
=
1
;
if
(
sblk
->
idx
[
0
].
rx_producer
!=
tp
->
rx_rcb_ptr
)
{
int
orig_budget
=
*
budget
;
int
work_done
;
...
...
@@ -2908,12 +2904,14 @@ static int tg3_poll(struct net_device *netdev, int *budget)
*
budget
-=
work_done
;
netdev
->
quota
-=
work_done
;
if
(
work_done
>=
orig_budget
)
done
=
0
;
}
if
(
tp
->
tg3_flags
&
TG3_FLAG_TAGGED_STATUS
)
tp
->
last_tag
=
sblk
->
status_tag
;
rmb
();
/* if no more work, tell net stack and NIC we're done */
done
=
!
tg3_has_work
(
tp
);
if
(
done
)
{
spin_lock_irqsave
(
&
tp
->
lock
,
flags
);
__netif_rx_complete
(
netdev
);
...
...
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