diff options
author | Varun Prakash <varun@chelsio.com> | 2016-02-14 12:37:37 -0500 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2016-03-22 03:25:04 -0400 |
commit | 76c144bd8ebd5839e36d30c931586510ae0e736e (patch) | |
tree | 996bb207a38bd3c27f408f122f4d37cd41d7cf23 | |
parent | 40c466358fcc21b508b38e790ac39353048b112f (diff) |
cxgb4, cxgb4i: move struct cpl_rx_data_ddp definition
move struct cpl_rx_data_ddp definition to
common header file t4_msg.h.
Signed-off-by: Varun Prakash <varun@chelsio.com>
Acked-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/t4_msg.h | 15 | ||||
-rw-r--r-- | drivers/scsi/cxgbi/cxgb4i/cxgb4i.h | 12 |
2 files changed, 15 insertions, 12 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/t4_msg.h b/drivers/net/ethernet/chelsio/cxgb4/t4_msg.h index 8cfc6a8344d8..72792459ef89 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/t4_msg.h +++ b/drivers/net/ethernet/chelsio/cxgb4/t4_msg.h | |||
@@ -899,6 +899,21 @@ struct cpl_iscsi_hdr { | |||
899 | #define ISCSI_DDP_V(x) ((x) << ISCSI_DDP_S) | 899 | #define ISCSI_DDP_V(x) ((x) << ISCSI_DDP_S) |
900 | #define ISCSI_DDP_F ISCSI_DDP_V(1U) | 900 | #define ISCSI_DDP_F ISCSI_DDP_V(1U) |
901 | 901 | ||
902 | struct cpl_rx_data_ddp { | ||
903 | union opcode_tid ot; | ||
904 | __be16 urg; | ||
905 | __be16 len; | ||
906 | __be32 seq; | ||
907 | union { | ||
908 | __be32 nxt_seq; | ||
909 | __be32 ddp_report; | ||
910 | }; | ||
911 | __be32 ulp_crc; | ||
912 | __be32 ddpvld; | ||
913 | }; | ||
914 | |||
915 | #define cpl_rx_iscsi_ddp cpl_rx_data_ddp | ||
916 | |||
902 | struct cpl_rx_data { | 917 | struct cpl_rx_data { |
903 | union opcode_tid ot; | 918 | union opcode_tid ot; |
904 | __be16 rsvd; | 919 | __be16 rsvd; |
diff --git a/drivers/scsi/cxgbi/cxgb4i/cxgb4i.h b/drivers/scsi/cxgbi/cxgb4i/cxgb4i.h index e5f8f656b222..2fd9c76fc21c 100644 --- a/drivers/scsi/cxgbi/cxgb4i/cxgb4i.h +++ b/drivers/scsi/cxgbi/cxgb4i/cxgb4i.h | |||
@@ -25,16 +25,4 @@ | |||
25 | 25 | ||
26 | #define T5_ISS_VALID (1 << 18) | 26 | #define T5_ISS_VALID (1 << 18) |
27 | 27 | ||
28 | struct cpl_rx_data_ddp { | ||
29 | union opcode_tid ot; | ||
30 | __be16 urg; | ||
31 | __be16 len; | ||
32 | __be32 seq; | ||
33 | union { | ||
34 | __be32 nxt_seq; | ||
35 | __be32 ddp_report; | ||
36 | }; | ||
37 | __be32 ulp_crc; | ||
38 | __be32 ddpvld; | ||
39 | }; | ||
40 | #endif /* __CXGB4I_H__ */ | 28 | #endif /* __CXGB4I_H__ */ |