cxgb4 : Disable recursive mailbox commands when enabling vi
authorAnish Bhatt <anish@chelsio.com>
Tue, 5 Aug 2014 23:05:23 +0000 (16:05 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Aug 2014 23:48:59 +0000 (16:48 -0700)
commit30f00847953e3aa3f710d62ffd37b42042807900
treef158748e4c7e7d2e1c999b66152157c53b84a4ee
parent1bb5a356c3ea6e633908e0ebd6695b13debc3d86
cxgb4 : Disable recursive mailbox commands when enabling vi

Enabling a Virtual Interface can result in an interrupt during the processing
 of the VI Enable command and, in some paths, result in an attempt to issue
another command in the interrupt context, eventually crashing the system. Thus,
 we disable interrupts during the course of the VI Enable command and ensure
enable doesn't sleep.

Signed-off-by: Anish Bhatt <anish@chelsio.com>
Signed-off-by: Casey Leedom <leedom@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c