• Nicholas Bellinger's avatar
    iscsi/isert-target: Refactor ISCSI_OP_NOOP RX handling · 778de368
    Nicholas Bellinger authored
    This patch refactors ISCSI_OP_NOOP handling within iscsi-target in
    order to handle iscsi_nopout payloads in a transport specific manner.
    
    This includes splitting existing iscsit_handle_nop_out() into
    iscsit_setup_nop_out() and iscsit_process_nop_out() calls, and
    makes iscsit_handle_nop_out() be only used internally by traditional
    iscsi socket calls.
    
    Next update iser-target code to use new callers and add FIXME for
    the handling iscsi_nopout payloads.  Also fix reject response handling
    in iscsit_setup_nop_out() to use proper iscsit_add_reject_from_cmd().
    
    v2: Fix uninitialized iscsit_handle_nop_out() payload_length usage (Fengguang)
    v3: Remove left-over dead code in iscsit_setup_nop_out() (DanC)
    Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
    778de368
ib_isert.c 63 KB