]> pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[SCSI] cxgb3i: Outgoing pdus need to observe skb's MAX_SKB_FRAGS
authorKaren Xie <kxie@chelsio.com>
Sat, 14 Feb 2009 05:38:54 +0000 (21:38 -0800)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Sun, 22 Feb 2009 02:29:37 +0000 (20:29 -0600)
commitf62d0896e67195d4407ef81c6f77a92f72a63e88
tree3b305f041b9ae2c569bce4ac410e8e655b72d7fd
parent949847d195d2bb86f61c289a57edb9207c4a3bbf
[SCSI] cxgb3i: Outgoing pdus need to observe skb's MAX_SKB_FRAGS

Need to make sure the outgoing pdu can fit into a single skb.  When
calulating the max. outgoing pdu payload size, take into consideration
of
- data can be held in the skb's fragment list, assume 512 bytes per
  fragment, and
- data can be held in the headroom.

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_ddp.c
drivers/scsi/cxgb3i/cxgb3i_ddp.h
drivers/scsi/cxgb3i/cxgb3i_iscsi.c
drivers/scsi/cxgb3i/cxgb3i_offload.h
drivers/scsi/cxgb3i/cxgb3i_pdu.c
drivers/scsi/cxgb3i/cxgb3i_pdu.h