[SCSI] fcoe: Unable to select the exchangeID from offload pool for storage targets
authorKiran Patil <kiran.patil@intel.com>
Mon, 20 Jun 2011 23:59:15 +0000 (16:59 -0700)
committerJames Bottomley <JBottomley@Parallels.com>
Wed, 29 Jun 2011 21:29:24 +0000 (16:29 -0500)
commit1ff9918b625457ce20d450d00f9ed0a12ba191b7
tree221a8ce7f34b6b98bd4f29c7eeefdb115a2618c1
parent71f894915aa6680dbce2ff727fb9237c4f7ac373
[SCSI] fcoe: Unable to select the exchangeID from offload pool for storage targets

Problem: When initiator sends write command to target, target tries to
assign new sequence. It allocates new exchangeID (RX_ID)
always from non-offloaded pool (Non-offload EMA)

Fix: Enhanced fcoe_oem_match routine to look at F_CTL flags and if it
is exchange responder and command type is WRITEDATA, then function
returns TRUE instead of FALSE. This function is used to determine
which pool to use (offload pool of exchange is used only if this
function returns TRUE).

Technical Notes: N/A

Signed-off-by: Kiran Patil <kiran.patil@intel.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/fcoe/fcoe.c