cxgb4i: fix credit check for tx_data_wr
authorKaren Xie <kxie@chelsio.com>
Fri, 12 Dec 2014 03:13:32 +0000 (19:13 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Dec 2014 16:22:29 +0000 (11:22 -0500)
commit7857c62a35041a21a66ccab551601c942b748330
tree4adda8cfcdc8fd61f1577f0993fbd552fc22c5b4
parent84944d8cf5d16c281e9389d90de20b9ceb96765e
cxgb4i: fix credit check for tx_data_wr

make sure any tx credit related checking is done before adding the wr header.

Signed-off-by: Karen Xie <kxie@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/scsi/cxgbi/cxgb4i/cxgb4i.c