Re: [RFC 3/5] IB/iser: use ib_client API to wrap ib_device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




I think it would be a good idea to do the same for iser.
If you don't have time, keep it as is, I'll try to find some time
to get it incrementally.

I will take a look, but I am not sure that I can come up quickly
with something.  Seems not a trivial change which can bring
another global lists with locks and stuff, but probably I am
mistaken.

That would be great Roman! I'm willing to assist as needed.

And Sagi, could you please share with me any script to setup iser
target and initiator?  Frankly speaking I've never did that.
On the next iteration with this series would be nice if I could
test my iser patches :)

You can use targetcli and restore the below configuration json file
(should be located at /etc/target/):
--
storage rd_mcp disk 1 {
    nullio yes
    size 250.0GB
    wwn e6d80f64-e891-4d31-a599-fe613a917fac
    attribute {
        block_size 512
        emulate_3pc yes
        emulate_caw yes
        emulate_dpo yes
        emulate_fua_read yes
        emulate_fua_write yes
        emulate_model_alias no
        emulate_rest_reord no
        emulate_tas yes
        emulate_tpu no
        emulate_tpws no
        emulate_ua_intlck_ctrl no
        emulate_write_cache no
        enforce_pr_isids yes
        fabric_max_sectors 8192
        force_pr_aptpl 0
        is_nonrot yes
        max_unmap_block_desc_count 0
        max_unmap_lba_count 0
        max_write_same_len 0
        optimal_sectors 4294967288
        pi_prot_format 0
        pi_prot_type 0
        pi_prot_verify 0
        queue_depth 128
        unmap_granularity 0
        unmap_granularity_alignment 0
        unmap_zeroes_data 0
    }
}
fabric iscsi {
    discovery_auth {
        enable no
        mutual_password ""
        mutual_userid ""
        password ""
        userid ""
    }
target iqn.2003-01.org.linux-iscsi.server.x8664:sn.4b9940d1ab3a tpgt 1 {
        enable yes
        attribute {
            authentication no
            cache_dynamic_acls yes
            default_cmdsn_depth 64
            default_erl 0
            demo_mode_discovery yes
            demo_mode_write_protect no
            fabric_prot_type 0
            generate_node_acls yes
            login_keys_workaround 1
            login_timeout 15
            netif_timeout 2
            prod_mode_write_protect no
            t10_pi 0
            tpg_enabled_sendtargets 1
        }
        auth {
            password ""
            password_mutual ""
            userid ""
            userid_mutual ""
        }
        parameter {
            AuthMethod "CHAP,None"
            DataDigest "CRC32C,None"
            DataPDUInOrder yes
            DataSequenceInOrder yes
            DefaultTime2Retain 20
            DefaultTime2Wait 2
            ErrorRecoveryLevel no
            FirstBurstLength 65536
            HeaderDigest "CRC32C,None"
            IFMarkInt Reject
            IFMarker no
            ImmediateData yes
            InitialR2T yes
            MaxBurstLength 262144
            MaxConnections 1
            MaxOutstandingR2T 1
            MaxRecvDataSegmentLength 8192
            MaxXmitDataSegmentLength 262144
            OFMarkInt Reject
            OFMarker no
            TargetAlias "LIO Target"
        }
        lun 0 backend rd_mcp:1
        acl iqn.1993-08.org.debian:01:ffb5e98aaa8 {
            attribute {
                dataout_timeout 3
                dataout_timeout_retries 5
                default_erl 0
                nopin_response_timeout 30
                nopin_timeout 15
                random_datain_pdu_offsets no
                random_datain_seq_offsets no
                random_r2t_offsets no
            }
            auth {
                password ""
                password_mutual ""
                userid ""
                userid_mutual ""
            }
            mapped_lun 0 {
                target_lun 0
                write_protect no
            }
        }
        portal 10.0.0.1:3260
    }
}
--
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux