]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[PATCH] bnx2: refine bnx2_poll
authorMichael Chan <mchan@broadcom.com>
Fri, 4 Nov 2005 16:53:48 +0000 (08:53 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Sun, 6 Nov 2005 02:00:03 +0000 (21:00 -0500)
commitf4e418f7f3286f854883f9f7e3bbf7005340d2de
tree655a1c3c3ea012e0521b83728034b7a675ae8e5f
parente3648b3d8de3b37fae7acbb57db1e001a19cd3b7
[PATCH] bnx2: refine bnx2_poll

Refine bnx2_poll() logic to write back the most up-to-date status tag
when all work has been processed. This eliminates some occasional
extra interrupts when a older status tag is written even though all
work has been processed.

The idea is to read the status tag just before exiting bnx2_poll() and
then check again for any new work. If no new work is pending, the
status tag written back will not generate any extra interrupt. This
logic is similar to the changes David Miller did to tg3_poll().

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/bnx2.c
drivers/net/bnx2.h