]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita54c190e18e9641d96db552339bd9f30f11176f2
treef158748e4c7e7d2e1c999b66152157c53b84a4ee
parent4ff16495066ca446ad40c84e0f9f91aa0dd05920
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