diff options
author | Sathya Perla <sathyap@serverengines.com> | 2010-02-17 02:35:11 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-17 22:35:39 +0100 |
commit | 7a1e9b2059d147461cff3dfbabbfb43f296a1eef (patch) | |
tree | 96cede2e32bf278b86a06faab7c7940ee5d776b3 /drivers/net/benet/be_cmds.h | |
parent | be2net: a mini optimization in rx_compl_process() code (diff) | |
download | linux-7a1e9b2059d147461cff3dfbabbfb43f296a1eef.tar.xz linux-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_cmds.h')
-rw-r--r-- | drivers/net/benet/be_cmds.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/benet/be_cmds.h b/drivers/net/benet/be_cmds.h index 7297b5a47657..01501dbae00a 100644 --- a/drivers/net/benet/be_cmds.h +++ b/drivers/net/benet/be_cmds.h @@ -937,6 +937,8 @@ extern int be_cmd_enable_magic_wol(struct be_adapter *adapter, u8 *mac, struct be_dma_mem *nonemb_cmd); extern int be_cmd_fw_init(struct be_adapter *adapter); extern int be_cmd_fw_clean(struct be_adapter *adapter); +extern void be_async_mcc_enable(struct be_adapter *adapter); +extern void be_async_mcc_disable(struct be_adapter *adapter); extern int be_cmd_loopback_test(struct be_adapter *adapter, u32 port_num, u32 loopback_type, u32 pkt_size, u32 num_pkts, u64 pattern); |