cxgb4: Don't sleep when mbox cmd is issued from interrupt context
authorHariprasad Shenai <hariprasad@chelsio.com>
Tue, 3 May 2016 13:28:01 +0000 (18:58 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 May 2016 17:59:27 +0000 (13:59 -0400)
commit5a20f5cfd7276862a8d21d75f83359840ed6e662
tree63d59bee09210a892f01d9d74e75483a669070e0
parentecc9120e054b08024b096d8a3a96f81df5fc906c
cxgb4: Don't sleep when mbox cmd is issued from interrupt context

When link goes down, from the interrupt handler DCB priority for the
Tx queues needs to be unset. We issue mbox command to unset the Tx queue
priority with negative timeout. In t4_wr_mbox_meat_timeout() do not sleep
when negative timeout is passed, since it is called from interrupt context.

Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c