target/sbc: Add sbc_dif_generate software emulation
commit66a3d5bc47d2973820816226e957db9e85285455
authorNicholas Bellinger <nab@linux-iscsi.org>
Wed, 2 Apr 2014 21:19:09 +0000 (2 14:19 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 7 Apr 2014 08:48:56 +0000 (7 01:48 -0700)
tree9af631288b3701492f458d879516a4cda7e658cb
parent2d3359832513ac62a8bd6d2bffbb2c5bdd29aad3
target/sbc: Add sbc_dif_generate software emulation

This patch adds WRITE_INSERT emulation within target-core
using TYPE1 / TYPE3 PI modes in sbc_dif_generate() code.

This is useful in order for existing legacy fabrics that do not
support protection offloads to interact with backend devices that
currently have T10 PI enabled.

v2 changes:
   - Rename to sbc_dif_generate() (Sagi)

Cc: Martin K. Petersen <martin.petersen@oracle.com>
Cc: Sagi Grimberg <sagig@mellanox.com>
Cc: Or Gerlitz <ogerlitz@mellanox.com>
Cc: Quinn Tran <quinn.tran@qlogic.com>
Cc: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_sbc.c
include/target/target_core_backend.h