Skip to content
  • Nicholas Bellinger's avatar
    iscsi-target: Enable MaxXmitDataSegmentLength operation in login path · 9977bb18
    Nicholas Bellinger authored
    
    
    This patch activates MaxXmitDataSegmentLength usage that performs the
    following sequence of events:
    
    - Once the incoming initiator's MAXRECVDATASEGMENTLENGTH key is detected
      within iscsi_check_acceptor_state(), save the requested MRDSL into
      conn->conn_ops->MaxRecvDataSegmentLength
    
    - Next change the outgoing target's MaxRecvDataSegmenthLength key=value
      based upon the local TPG's MaxXmitDataSegmentLength attribute value.
    
    - Change iscsi_set_connection_parameters() to skip the assignment of
      conn->conn_ops->MaxRecvDataSegmentLength, now setup within
      iscsi_check_acceptor_state()
    
    Also update iscsi_decode_text_input() -> iscsi_check_acceptor_state()
    code-path to accept struct iscsi_conn *.
    
    Cc: Mike Christie <michaelc@cs.wisc.edu>
    Cc: Andy Grover <agrover@redhat.com>
    Cc: Hannes Reinecke <hare@suse.de>
    Cc: Roland Dreier <roland@purestorage.com>
    Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
    9977bb18