• Sagi Grimberg's avatar
    SCSI/libiscsi: Add check_protection callback for transports · 55e51eda
    Sagi Grimberg authored
    iSCSI needs to be at least aware that a task involves protection
    information.  In case it does, after the transaction completed libiscsi
    will ask the transport to check the protection status of the
    transaction.
    
    Unlike transport errors, DIF errors should not prevent successful
    completion of the transaction from the transport point of view, but
    should be escelated to scsi mid-layer when constructing the scsi
    result and sense data.
    
    check_protection routine will return the ascq corresponding to the DIF
    error that occured (or 0 if no error happened).
    
    return ascq:
    - 0x1: GUARD_CHECK_FAILED
    - 0x2: APPTAG_CHECK_FAILED
    - 0x3: REFTAG_CHECK_FAILED
    Signed-off-by: default avatarSagi Grimberg <sagig@mellanox.com>
    Signed-off-by: default avatarAlex Tabachnik <alext@mellanox.com>
    Signed-off-by: default avatarRoland Dreier <roland@purestorage.com>
    55e51eda
Name
Last commit
Last update
..
acpi Loading commit data...
asm-generic Loading commit data...
clocksource Loading commit data...
crypto Loading commit data...
drm Loading commit data...
dt-bindings Loading commit data...
keys Loading commit data...
kvm Loading commit data...
linux Loading commit data...
math-emu Loading commit data...
media Loading commit data...
memory Loading commit data...
misc Loading commit data...
net Loading commit data...
pcmcia Loading commit data...
ras Loading commit data...
rdma Loading commit data...
rxrpc Loading commit data...
scsi Loading commit data...
sound Loading commit data...
target Loading commit data...
trace Loading commit data...
uapi Loading commit data...
video Loading commit data...
xen Loading commit data...
Kbuild Loading commit data...