[SCSI] fcoe, libfc: use single frame allocation API
authorVasu Dev <vasu.dev@intel.com>
Tue, 3 Nov 2009 19:47:55 +0000 (11:47 -0800)
committerJames Bottomley <James.Bottomley@suse.de>
Fri, 4 Dec 2009 18:01:09 +0000 (12:01 -0600)
commita7bbc7f40aa01eefef3d367349e1e6e87881a305
treefa03ef233949f2d1ccd37515e3bbb890451d3666
parent1875f27e291d05711f15a8a3d486abfeaf385931
[SCSI] fcoe, libfc: use single frame allocation API

Cleans up frame allocation APIs to have just single fc_frame_alloc API.

Removes _fc_frame_alloc, renames __fc_frame_alloc to _fc_frame_alloc.

Modifies fc_fcp_send_data for removed _fc_frame_alloc, fc_fcp_send_data
was the only user of removed _fc_frame_alloc.

Also Adds check in fc_frame_alloc to do mod by 4 for only non-zero
len value.

This patch is prep work to fix can_queue reducing in next patch.
Single fc_frame_alloc API helps in fixing can_queue reducing in
next patch.

Signed-off-by: Vasu Dev <vasu.dev@intel.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/libfc/fc_fcp.c
drivers/scsi/libfc/fc_frame.c
include/scsi/fc_frame.h