]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3d290d3fe834e50960e79306084c39d98c9ac198
tree63d59bee09210a892f01d9d74e75483a669070e0
parenta08f71a59620850824fc8d22aa91bcb348be8df0
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