diff options
author | Michael Chan <mchan@broadcom.com> | 2005-11-04 17:53:48 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2005-11-06 03:00:03 +0100 |
commit | f4e418f7f3286f854883f9f7e3bbf7005340d2de (patch) | |
tree | 655a1c3c3ea012e0521b83728034b7a675ae8e5f /drivers/net/bnx2.h | |
parent | [PATCH] bnx2: update firmware handshake for 5708 (diff) | |
download | linux-f4e418f7f3286f854883f9f7e3bbf7005340d2de.tar.xz linux-f4e418f7f3286f854883f9f7e3bbf7005340d2de.zip |
[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>
Diffstat (limited to 'drivers/net/bnx2.h')
-rw-r--r-- | drivers/net/bnx2.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/bnx2.h b/drivers/net/bnx2.h index 012586e4ba0b..76bb5f1a250b 100644 --- a/drivers/net/bnx2.h +++ b/drivers/net/bnx2.h @@ -3914,6 +3914,9 @@ struct bnx2 { u16 tx_cons; int tx_ring_size; + u16 hw_tx_cons; + u16 hw_rx_cons; + #ifdef BCM_VLAN struct vlan_group *vlgrp; #endif |