diff options
author | Sathya Perla <sathyap@serverengines.com> | 2010-02-16 20:35:11 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-17 16:35:39 -0500 |
commit | 7a1e9b2059d147461cff3dfbabbfb43f296a1eef (patch) | |
tree | 96cede2e32bf278b86a06faab7c7940ee5d776b3 /drivers/net/benet/be.h | |
parent | a058a632747dd0f1799b12f4ecd54e43f5b5f10d (diff) |
be2net: don't rearm mcc cq when device is not open
When an MCC cmd is issued (via a netdev/ethtool op)
while the device is not open, the MCC CQ gets processed but the EQ
is not processed (as isr is not registered.) This can cause the EQ
to become full. So, while the device is not open, CQ must not be re-armed
to prevent EQ entries.
Signed-off-by: Sathya Perla <sathyap@serverengines.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/benet/be.h')
-rw-r--r-- | drivers/net/benet/be.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/benet/be.h b/drivers/net/benet/be.h index 5038c16bfe9b..2734a41a4627 100644 --- a/drivers/net/benet/be.h +++ b/drivers/net/benet/be.h | |||
@@ -151,6 +151,7 @@ struct be_eq_obj { | |||
151 | struct be_mcc_obj { | 151 | struct be_mcc_obj { |
152 | struct be_queue_info q; | 152 | struct be_queue_info q; |
153 | struct be_queue_info cq; | 153 | struct be_queue_info cq; |
154 | bool rearm_cq; | ||
154 | }; | 155 | }; |
155 | 156 | ||
156 | struct be_drvr_stats { | 157 | struct be_drvr_stats { |