summaryrefslogtreecommitdiff
path: root/include/target
diff options
context:
space:
mode:
authorSagi Grimberg <sagig@mellanox.com>2015-06-29 13:08:19 +0300
committerNicholas Bellinger <nab@linux-iscsi.org>2015-07-06 14:31:50 -0700
commitfe052a1810ec4687ee7d606290561af504047707 (patch)
tree0669fad48c35005a433925dd33967286699aa6c5 /include/target
parent1c4c7159ed2468f3ac4ce5a7f08d79663d381a93 (diff)
target: Use struct t10_pi_tuple
Its not a good idea to keep target specific definition of the same t10-pi tuple. (Fix v4.2-rc1 patch fuzz - nab) Signed-off-by: Sagi Grimberg <sagig@mellanox.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'include/target')
-rw-r--r--include/target/target_core_base.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/include/target/target_core_base.h b/include/target/target_core_base.h
index 17ae2d6a4891..a6816444d81b 100644
--- a/include/target/target_core_base.h
+++ b/include/target/target_core_base.h
@@ -6,6 +6,7 @@
#include <linux/dma-mapping.h>
#include <linux/blkdev.h>
#include <linux/percpu_ida.h>
+#include <linux/t10-pi.h>
#include <net/sock.h>
#include <net/tcp.h>
@@ -426,12 +427,6 @@ enum target_core_dif_check {
TARGET_DIF_CHECK_REFTAG = 0x1 << 2,
};
-struct se_dif_v1_tuple {
- __be16 guard_tag;
- __be16 app_tag;
- __be32 ref_tag;
-};
-
/* for sam_task_attr */
#define TCM_SIMPLE_TAG 0x20
#define TCM_HEAD_TAG 0x21