[SCSI] cxgb3i: transmit work-request fixes
authorKaren Xie <kxie@chelsio.com>
Sat, 14 Feb 2009 05:38:44 +0000 (21:38 -0800)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Sun, 22 Feb 2009 02:29:36 +0000 (20:29 -0600)
commit1648b11ea7cec5b95e5a71364ac1f40bfef702d0
treec74da6563e4e125edcb828e78114a858518ca2c7
parentb73a77494292b930642fbf87de3e3196593f7593
[SCSI] cxgb3i: transmit work-request fixes

- resize the work-request credit array to be based on skb's MAX_SKB_FRAGS.
- split the skb cb into tx and rx portion
- increase the default transmit window to 128K.
- stop queueing up the outgoing pdus if transmit window is full.

Signed-off-by: Karen Xie <kxie@chelsio.com>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/cxgb3i/cxgb3i_offload.c
drivers/scsi/cxgb3i/cxgb3i_offload.h