diff options
author | Sathya Perla <sathyap@serverengines.com> | 2010-02-17 01:35:11 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-17 13:35:39 -0800 |
commit | 7a1e9b2059d147461cff3dfbabbfb43f296a1eef (patch) | |
tree | 96cede2e32bf278b86a06faab7c7940ee5d776b3 /drivers/net/benet/be.h | |
parent | a058a632747dd0f1799b12f4ecd54e43f5b5f10d (diff) | |
download | lwn-7a1e9b2059d147461cff3dfbabbfb43f296a1eef.tar.gz lwn-7a1e9b2059d147461cff3dfbabbfb43f296a1eef.zip |
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 { struct be_mcc_obj { struct be_queue_info q; struct be_queue_info cq; + bool rearm_cq; }; struct be_drvr_stats { |