~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/rdma/tid_rdma_defs.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) */
  2 /*
  3  * Copyright(c) 2018 Intel Corporation.
  4  *
  5  */
  6 
  7 #ifndef TID_RDMA_DEFS_H
  8 #define TID_RDMA_DEFS_H
  9 
 10 #include <rdma/ib_pack.h>
 11 
 12 struct tid_rdma_read_req {
 13         __le32 kdeth0;
 14         __le32 kdeth1;
 15         struct ib_reth reth;
 16         __be32 tid_flow_psn;
 17         __be32 tid_flow_qp;
 18         __be32 verbs_qp;
 19 };
 20 
 21 struct tid_rdma_read_resp {
 22         __le32 kdeth0;
 23         __le32 kdeth1;
 24         __be32 aeth;
 25         __be32 reserved[4];
 26         __be32 verbs_psn;
 27         __be32 verbs_qp;
 28 };
 29 
 30 struct tid_rdma_write_req {
 31         __le32 kdeth0;
 32         __le32 kdeth1;
 33         struct ib_reth reth;
 34         __be32 reserved[2];
 35         __be32 verbs_qp;
 36 };
 37 
 38 struct tid_rdma_write_resp {
 39         __le32 kdeth0;
 40         __le32 kdeth1;
 41         __be32 aeth;
 42         __be32 reserved[3];
 43         __be32 tid_flow_psn;
 44         __be32 tid_flow_qp;
 45         __be32 verbs_qp;
 46 };
 47 
 48 struct tid_rdma_write_data {
 49         __le32 kdeth0;
 50         __le32 kdeth1;
 51         __be32 reserved[6];
 52         __be32 verbs_qp;
 53 };
 54 
 55 struct tid_rdma_resync {
 56         __le32 kdeth0;
 57         __le32 kdeth1;
 58         __be32 reserved[6];
 59         __be32 verbs_qp;
 60 };
 61 
 62 struct tid_rdma_ack {
 63         __le32 kdeth0;
 64         __le32 kdeth1;
 65         __be32 aeth;
 66         __be32 reserved[2];
 67         __be32 tid_flow_psn;
 68         __be32 verbs_psn;
 69         __be32 tid_flow_qp;
 70         __be32 verbs_qp;
 71 };
 72 
 73 /*
 74  * TID RDMA Opcodes
 75  */
 76 #define IB_OPCODE_TID_RDMA 0xe0
 77 enum {
 78         IB_OPCODE_WRITE_REQ       = 0x0,
 79         IB_OPCODE_WRITE_RESP      = 0x1,
 80         IB_OPCODE_WRITE_DATA      = 0x2,
 81         IB_OPCODE_WRITE_DATA_LAST = 0x3,
 82         IB_OPCODE_READ_REQ        = 0x4,
 83         IB_OPCODE_READ_RESP       = 0x5,
 84         IB_OPCODE_RESYNC          = 0x6,
 85         IB_OPCODE_ACK             = 0x7,
 86 
 87         IB_OPCODE(TID_RDMA, WRITE_REQ),
 88         IB_OPCODE(TID_RDMA, WRITE_RESP),
 89         IB_OPCODE(TID_RDMA, WRITE_DATA),
 90         IB_OPCODE(TID_RDMA, WRITE_DATA_LAST),
 91         IB_OPCODE(TID_RDMA, READ_REQ),
 92         IB_OPCODE(TID_RDMA, READ_RESP),
 93         IB_OPCODE(TID_RDMA, RESYNC),
 94         IB_OPCODE(TID_RDMA, ACK),
 95 };
 96 
 97 #define TID_OP(x) IB_OPCODE_TID_RDMA_##x
 98 
 99 /*
100  * Define TID RDMA specific WR opcodes. The ib_wr_opcode
101  * enum already provides some reserved values for use by
102  * low level drivers. Two of those are used but renamed
103  * to be more descriptive.
104  */
105 #define IB_WR_TID_RDMA_WRITE IB_WR_RESERVED1
106 #define IB_WR_TID_RDMA_READ  IB_WR_RESERVED2
107 
108 #endif /* TID_RDMA_DEFS_H */
109 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php