Permalink
Commits on Aug 23, 2016
  1. Merge pull request #216 from plieven/for_upstream

    iser: remove unnecessary checks for NULL
    committed on GitHub Aug 23, 2016
Commits on Aug 22, 2016
  1. @plieven

    iser: remove unnecessary checks for NULL

    Signed-off-by: Peter Lieven <pl@kamp.de>
    plieven committed Aug 22, 2016
Commits on Aug 21, 2016
  1. Merge pull request #214 from plieven/static_drv

    abstract transport to static driver functions and opaque driver speci…
    committed on GitHub Aug 21, 2016
  2. Merge pull request #215 from jh86/master

    Update a URL in README, fix a typo there too
    committed on GitHub Aug 21, 2016
  3. @jh86

    fix a typo in README heading

    jh86 committed Aug 21, 2016
  4. @jh86
Commits on Aug 5, 2016
  1. Merge pull request #213 from ddiss/caw_unwritten2

    test Compare And Write against unwritten range
    committed on GitHub Aug 5, 2016
  2. @plieven

    abstract transport to static driver functions and opaque driver speci…

    …fic information.
    
    This splits a transport into static driver specific functions for the common
    iscsi commands. Optionally, a driver specific opaque memory is introduced
    which is currently only used by iSER transport.
    Last a lot of functions changed to static.
    
    Signed-off-by: Peter Lieven <pl@kamp.de>
    plieven committed Aug 5, 2016
Commits on Jul 25, 2016
  1. @ddiss

    test: COMPARE AND WRITE against unwritten range

    Simulate VMware ESXi behaviour in issuing COMPARE AND WRITE requests
    against unwritten ranges.
    
    Signed-off-by: David Disseldorp <ddiss@suse.de>
    ddiss committed Jul 21, 2016
Commits on Jul 21, 2016
  1. @ddiss

    test: don't segfault in TMF callback on reconnect

    Signed-off-by: David Disseldorp <ddiss@suse.de>
    ddiss committed Jun 6, 2016
Commits on Jul 12, 2016
  1. TESTS: cleanup and remove noise warnings for iscsi cmdsn tests

    The iscsi cmdsn tests are noisy and generate a lot of [FAILURE]
    warnings for things that are expected.
    Fix this by do the plumbing to allow using a EXPECT_STATUS_TIMEOUT
    for commands we expect will never be replied to and will thus time out.
    
    Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
    committed Jul 12, 2016
  2. Add back iscsi_queue_pdu

    We need a public symbol for iscsi_queue_pdu. This is now just a
    simple wrapper around iscsi->t->queue_pdu
    
    #212
    
    Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
    committed Jul 12, 2016
  3. Merge pull request #211 from plieven/tegile_test

    For Upstream
    committed on GitHub Jul 12, 2016
Commits on Jul 7, 2016
  1. @plieven

    iscsi-ls: strip portal group tag in url output

    we do not use it in libiscsi anyway, but e.g. Qemu does not support in in the URL.
    
    Signed-off-by: Peter Lieven <pl@kamp.de>
    plieven committed Jul 7, 2016
  2. @plieven

    socket: do not leak addrinfo in iscsi_connect_async

    Signed-off-by: Peter Lieven <pl@kamp.de>
    plieven committed Jul 7, 2016
  3. @plieven

    connect: do not leak transport struct on iscsi_reconnect_cb

    Signed-off-by: Peter Lieven <pl@kamp.de>
    plieven committed Jul 7, 2016
  4. @plieven

    init: do not leak transport struct on iscsi_destroy_context

    Signed-off-by: Peter Lieven <pl@kamp.de>
    plieven committed Jul 7, 2016
  5. @plieven

    pdu: dump PDU header on ILLEGAL REQUEST sense

    Signed-off-by: Peter Lieven <pl@kamp.de>
    plieven committed Jul 7, 2016
  6. @plieven

    scsi-lowlevel: add more pagecodes to scsi_inquiry_pagecode_to_str

    add reverse mappings for all members of: enum scsi_inquiry_pagecode
    
    Signed-off-by: Peter Lieven <pl@kamp.de>
    plieven committed Jul 7, 2016
  7. @plieven

    iscsi-inq: use right int types

    the block limits vpd has unsinged values. casting them to signed can return negative results.
    
    Signed-off-by: Peter Lieven <pl@kamp.de>
    plieven committed Jul 7, 2016
  8. @plieven

    iscsi-perf: add a logging parameter

    if specified the perf output will log the perf data once per second.
    
    Signed-off-by: Peter Lieven <pl@kamp.de>
    plieven committed Jul 7, 2016
Commits on Jun 7, 2016
  1. Merge pull request #209 from sitsofe/unused-symbol

    lib: Remove unused iscsi_queue_pdu symbol
    committed Jun 7, 2016
Commits on Jun 4, 2016
  1. @sitsofe

    lib: Remove unused iscsi_queue_pdu symbol

    Remove iscsi_queue_pdu from the list of symbols otherwise clang on OSX
    fails to compile with the following error:
    
    Undefined symbols for architecture x86_64:
      "_iscsi_queue_pdu", referenced from:
         -exported_symbol[s_list] command line option
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    sitsofe committed Jun 4, 2016
  2. Add a feature macro for ISER and bump api version

    Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
    committed Jun 4, 2016
  3. @shterman

    Libiscsi: iSER implementation

    This commit includes all iSER implementation in libscsi
    library and utilities.
    
    Also, adding iser option in url.
    
    Change-Id: I55ca8a9d4db802e72eb991061260dbb0bd0ef9ba
    Signed-off-by: Roy Shterman <roysh@mellanox.com>
    shterman committed with May 27, 2016
  4. Add configure checks for iSER support

    Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
    committed May 27, 2016
  5. @shterman

    Libiscsi: Adding abstraction to async functions

    future iSER implementation will include different implementations
    for all socket relative function. in iSER we get event only when
    there is new entry in completion queue opposed to TCP that we get event
    when we can write to the socket.
    
    1. iscsi_get_fd -
    	TCP - returns socket fd.
    	ISER - returns completion queue channel fd.
    2. iscsi_service -
    	TCP -   processing the event type got from the socket
    		and handles it.
    	ISER -  rearming the event mechanism in the completion queue
    		and polling all available completion queue entries for
    		process.
    3. iscsi_which_events -
    	TCP -   returns which type of event the library is waiting for
    		(Read, Write or both).
    	ISER -  in iSER we are waiting only for POLLIN event, hence this
    		function always returns POLLIN.
    
    Signed-off-by: Roy Shterman <roysh@mellanox.com>
    shterman committed with May 27, 2016
  6. @shterman

    Libiscsi: Introducing new functions for zero-copy write operations

    iscsi-command:  Adding new functions for all write operations (WRITE10,
                    WRITE12, WRITE16, WRITEOR, etc') for cases where the user wants
                    to pass his own io vectors (prevent memcpy).
    
                    new functions are called iscsi_write*_iov_task and looks
                    very similar to the iscsi_write*_task, only they get
    		scsi_iovec pointer and number of scsi_iovec as
    		parameters.
    
    Change-Id: I719552b4cbda4f937975b5df7e77b4844e48cd16
    Signed-off-by: Roy Shterman <roysh@mellanox.com>
    shterman committed with May 27, 2016
  7. We need the new read functions in libiscsi.def too

    Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
    committed Jun 4, 2016
  8. @shterman

    Libiscsi: Introducing new functions for zero-copy read operations

    iscsi-command:  Adding new functions for all write operations (READ6,
                    READ10, READ12, READ16, etc') for cases where the
    		user wants to pass his own io vectors (prevent memcpy).
    
                    new functions are called iscsi_read*_iov_task and looks
                    very similar to the iscsi_read*_task, only they get
                    scsi_iovec pointer and number of scsi_iovec as
                    parameters.
    
    Change-Id: Ice6bdb9227d72b20f495927f17d6757c124e4c84
    Signed-off-by: Roy Shterman <roysh@mellanox.com>
    shterman committed with May 27, 2016
  9. @shterman

    Libiscsi: Adding free_pdu function to transport abstraction

    Signed-off-by: Roy Shterman <roysh@mellanox.com>
    shterman committed with May 27, 2016
  10. @shterman

    Libiscsi: Adding disconnect function to transport abstraction

    all library: change disconnect to iscsi->t->disconnect
    
    1. In TCP we need only to put -1 in fd and we don't
    have more transport resources. In future iSER we will need to
    clean resources and destroy the rdma connection.
    
    Signed-off-by: Roy Shterman <roysh@mellanox.com>
    shterman committed with May 27, 2016
  11. @shterman

    Libiscsi: Changing header iscsi_in_pdu

    socket: need to malloc hdr
    
    include/iscsi-private: changing iscsi_in_pdu hdr to char*
    		       instead of static array for more convinient iser
    		       pdu creation.
    
    To use iscsi_in_pdu in iSER without making a copy of it
    we need to change hdr to pointer from static array,
    Because of that, iscsi_tcp flow need to do szmalloc (small zero malloc)
    hdr when creating new iscsi_in_pdu. iscsi_in_pdu is being malloced
    once per each received pdu. This change is reducing iscsi_in_pdu struct
    size but adding extra allocation of the same size we reduced
    from the struct.
    
    Signed-off-by: Roy Shterman <roysh@mellanox.com>
    shterman committed with May 27, 2016
  12. @shterman

    Libiscsi: Adding new_pdu function to transport abstraction

    Signed-off-by: Roy Shterman <roysh@mellanox.com>
    shterman committed with May 27, 2016
  13. @shterman

    Libiscsi: Adding queue pdu function to transport abstraction

    include/iscsi-private: adding queue_pdu in transport function pointers
                           struct
    include/iscsi: declaration of tcp_queue_pdu function
    
    socket: adding queue_pdu function to transport initialization
    
    all_library: changing iscsi_queue_pdu into iscsi->t->queue_pdu
    
    Signed-off-by: Roy Shterman <roysh@mellanox.com>
    shterman committed with May 27, 2016