]> Pileus Git - ~andy/linux/blobdiff - drivers/scsi/bnx2fc/bnx2fc_tgt.c
[SCSI] bnx2fc: Enable REC & CONF support for the session
[~andy/linux] / drivers / scsi / bnx2fc / bnx2fc_tgt.c
index 263c2678ff6295432cfb7aac0541ee3d0039ec93..7eff269d4c41edf72396ad90aa6d2076b35835bc 100644 (file)
@@ -353,6 +353,14 @@ static int bnx2fc_init_tgt(struct bnx2fc_rport *tgt,
        tgt->rq_cons_idx = 0;
        atomic_set(&tgt->num_active_ios, 0);
 
+       if (rdata->flags & FC_RP_FLAGS_RETRY) {
+               tgt->dev_type = TYPE_TAPE;
+               tgt->io_timeout = 0; /* use default ULP timeout */
+       } else {
+               tgt->dev_type = TYPE_DISK;
+               tgt->io_timeout = BNX2FC_IO_TIMEOUT;
+       }
+
        /* initialize sq doorbell */
        sq_db->header.header = B577XX_DOORBELL_HDR_DB_TYPE;
        sq_db->header.header |= B577XX_FCOE_CONNECTION_TYPE <<