]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit30da6a4374f4e1e186f8720d4e790f0cde911e5f
tree96cede2e32bf278b86a06faab7c7940ee5d776b3
parent059e1733c00d3add006b3399e6faa009cee3bd30
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