be2net: don't rearm mcc cq when device is not open
authorSathya Perla <sathyap@serverengines.com>
Wed, 17 Feb 2010 01:35:11 +0000 (01:35 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Feb 2010 21:35:39 +0000 (13:35 -0800)
commit7a1e9b2059d147461cff3dfbabbfb43f296a1eef
tree96cede2e32bf278b86a06faab7c7940ee5d776b3
parenta058a632747dd0f1799b12f4ecd54e43f5b5f10d
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>
drivers/net/benet/be.h
drivers/net/benet/be_cmds.c
drivers/net/benet/be_cmds.h
drivers/net/benet/be_main.c