Skip to content
Snippets Groups Projects
Commit cd024c8b authored by David S. Miller's avatar David S. Miller
Browse files

[TG3]: Fix missing memory barriers and SD_STATUS_UPDATED bit clearing.


There must be a rmb() between reading the status block tag
and calling tg3_has_work().  This was missing in tg3_mis()
and tg3_interrupt_tagged().  tg3_poll() got it right.

Also, SD_STATUS_UPDATED must be cleared in the status block
right before we call tg3_has_work().  Only tg3_poll() got this
wrong.

Based upon patches and commentary from Grant Grundler and
Michael Chan.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c54d7e03
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment