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_cmds.h | |
parent | a058a632747dd0f1799b12f4ecd54e43f5b5f10d (diff) | |
download | kernel_samsung_smdk4412-7a1e9b2059d147461cff3dfbabbfb43f296a1eef.zip kernel_samsung_smdk4412-7a1e9b2059d147461cff3dfbabbfb43f296a1eef.tar.gz kernel_samsung_smdk4412-7a1e9b2059d147461cff3dfbabbfb43f296a1eef.tar.bz2 |
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 7297b5a..01501db 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); |