• Nicholas Bellinger's avatar
    iscsi-target: Refactor ISCSI_OP_TEXT_RSP TX handling · 889c8a68
    Nicholas Bellinger authored
    This patch refactoring existing iscsit_send_text_rsp() in order
    to handle iscsi_text_rsp payloads in a transport specific manner.
    
    This includes the addition of iscsit_build_text_rsp() to build
    the response payload and initialize ISCSI_OP_TEXT_RSP.
    
    v2: Make iscsit_build_text_rsp() determine extra padding bytes, and
        drop legacy padding calculation for traditional iSCSI text
        responses within iscsit_send_text_rsp()
    Reported-by: default avatarOr Gerlitz <ogerlitz@mellanox.com>
    Cc: Or Gerlitz <ogerlitz@mellanox.com>
    Cc: Mike Christie <michaelc@cs.wisc.edu>
    Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
    889c8a68
iscsi_target.c 127 KB