aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/bnx2fc
diff options
context:
space:
mode:
authorBhanu Prakash Gollapudi <bprakash@broadcom.com>2013-01-11 02:59:38 -0500
committerJames Bottomley <JBottomley@Parallels.com>2013-01-29 18:47:05 -0500
commit50b7186f64d525c1054d996f83e16c200f0b321c (patch)
treee875d44bfca0230460c9a7d208f70629a235cdfc /drivers/scsi/bnx2fc
parent33c7da0590d4e9e7420f8cf50722c4fe6932218f (diff)
[SCSI] bnx2fc: support software fcoe target
Software FCoE target always advertises RETRY bit even when there are no tape LUNs behind the target. This causes the driver to enable FW support for sequence level error recovery and perform REC/SRR. This patch arrests the behavior by not enabling SLER feature for this target. Signed-off-by: Bhanu Prakash Gollapudi <bprakash@broadcom.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/bnx2fc')
-rw-r--r--drivers/scsi/bnx2fc/bnx2fc_tgt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/scsi/bnx2fc/bnx2fc_tgt.c b/drivers/scsi/bnx2fc/bnx2fc_tgt.c
index b9d0d9cb17f9..eba2328f60e7 100644
--- a/drivers/scsi/bnx2fc/bnx2fc_tgt.c
+++ b/drivers/scsi/bnx2fc/bnx2fc_tgt.c
@@ -381,7 +381,9 @@ static int bnx2fc_init_tgt(struct bnx2fc_rport *tgt,
381 tgt->rq_cons_idx = 0; 381 tgt->rq_cons_idx = 0;
382 atomic_set(&tgt->num_active_ios, 0); 382 atomic_set(&tgt->num_active_ios, 0);
383 383
384 if (rdata->flags & FC_RP_FLAGS_RETRY) { 384 if (rdata->flags & FC_RP_FLAGS_RETRY &&
385 rdata->ids.roles & FC_RPORT_ROLE_FCP_TARGET &&
386 !(rdata->ids.roles & FC_RPORT_ROLE_FCP_INITIATOR)) {
385 tgt->dev_type = TYPE_TAPE; 387 tgt->dev_type = TYPE_TAPE;
386 tgt->io_timeout = 0; /* use default ULP timeout */ 388 tgt->io_timeout = 0; /* use default ULP timeout */
387 } else { 389 } else {