18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright (c) 2016 Mellanox Technologies Ltd. All rights reserved.
48c2ecf20Sopenharmony_ci * Copyright (c) 2015 System Fabric Works, Inc. All rights reserved.
58c2ecf20Sopenharmony_ci */
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ci#include <rdma/ib_pack.h>
88c2ecf20Sopenharmony_ci#include "rxe_opcode.h"
98c2ecf20Sopenharmony_ci#include "rxe_hdr.h"
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci/* useful information about work request opcodes and pkt opcodes in
128c2ecf20Sopenharmony_ci * table form
138c2ecf20Sopenharmony_ci */
148c2ecf20Sopenharmony_cistruct rxe_wr_opcode_info rxe_wr_opcode_info[] = {
158c2ecf20Sopenharmony_ci	[IB_WR_RDMA_WRITE]				= {
168c2ecf20Sopenharmony_ci		.name	= "IB_WR_RDMA_WRITE",
178c2ecf20Sopenharmony_ci		.mask	= {
188c2ecf20Sopenharmony_ci			[IB_QPT_RC]	= WR_INLINE_MASK | WR_WRITE_MASK,
198c2ecf20Sopenharmony_ci			[IB_QPT_UC]	= WR_INLINE_MASK | WR_WRITE_MASK,
208c2ecf20Sopenharmony_ci		},
218c2ecf20Sopenharmony_ci	},
228c2ecf20Sopenharmony_ci	[IB_WR_RDMA_WRITE_WITH_IMM]			= {
238c2ecf20Sopenharmony_ci		.name	= "IB_WR_RDMA_WRITE_WITH_IMM",
248c2ecf20Sopenharmony_ci		.mask	= {
258c2ecf20Sopenharmony_ci			[IB_QPT_RC]	= WR_INLINE_MASK | WR_WRITE_MASK,
268c2ecf20Sopenharmony_ci			[IB_QPT_UC]	= WR_INLINE_MASK | WR_WRITE_MASK,
278c2ecf20Sopenharmony_ci		},
288c2ecf20Sopenharmony_ci	},
298c2ecf20Sopenharmony_ci	[IB_WR_SEND]					= {
308c2ecf20Sopenharmony_ci		.name	= "IB_WR_SEND",
318c2ecf20Sopenharmony_ci		.mask	= {
328c2ecf20Sopenharmony_ci			[IB_QPT_SMI]	= WR_INLINE_MASK | WR_SEND_MASK,
338c2ecf20Sopenharmony_ci			[IB_QPT_GSI]	= WR_INLINE_MASK | WR_SEND_MASK,
348c2ecf20Sopenharmony_ci			[IB_QPT_RC]	= WR_INLINE_MASK | WR_SEND_MASK,
358c2ecf20Sopenharmony_ci			[IB_QPT_UC]	= WR_INLINE_MASK | WR_SEND_MASK,
368c2ecf20Sopenharmony_ci			[IB_QPT_UD]	= WR_INLINE_MASK | WR_SEND_MASK,
378c2ecf20Sopenharmony_ci		},
388c2ecf20Sopenharmony_ci	},
398c2ecf20Sopenharmony_ci	[IB_WR_SEND_WITH_IMM]				= {
408c2ecf20Sopenharmony_ci		.name	= "IB_WR_SEND_WITH_IMM",
418c2ecf20Sopenharmony_ci		.mask	= {
428c2ecf20Sopenharmony_ci			[IB_QPT_SMI]	= WR_INLINE_MASK | WR_SEND_MASK,
438c2ecf20Sopenharmony_ci			[IB_QPT_GSI]	= WR_INLINE_MASK | WR_SEND_MASK,
448c2ecf20Sopenharmony_ci			[IB_QPT_RC]	= WR_INLINE_MASK | WR_SEND_MASK,
458c2ecf20Sopenharmony_ci			[IB_QPT_UC]	= WR_INLINE_MASK | WR_SEND_MASK,
468c2ecf20Sopenharmony_ci			[IB_QPT_UD]	= WR_INLINE_MASK | WR_SEND_MASK,
478c2ecf20Sopenharmony_ci		},
488c2ecf20Sopenharmony_ci	},
498c2ecf20Sopenharmony_ci	[IB_WR_RDMA_READ]				= {
508c2ecf20Sopenharmony_ci		.name	= "IB_WR_RDMA_READ",
518c2ecf20Sopenharmony_ci		.mask	= {
528c2ecf20Sopenharmony_ci			[IB_QPT_RC]	= WR_READ_MASK,
538c2ecf20Sopenharmony_ci		},
548c2ecf20Sopenharmony_ci	},
558c2ecf20Sopenharmony_ci	[IB_WR_ATOMIC_CMP_AND_SWP]			= {
568c2ecf20Sopenharmony_ci		.name	= "IB_WR_ATOMIC_CMP_AND_SWP",
578c2ecf20Sopenharmony_ci		.mask	= {
588c2ecf20Sopenharmony_ci			[IB_QPT_RC]	= WR_ATOMIC_MASK,
598c2ecf20Sopenharmony_ci		},
608c2ecf20Sopenharmony_ci	},
618c2ecf20Sopenharmony_ci	[IB_WR_ATOMIC_FETCH_AND_ADD]			= {
628c2ecf20Sopenharmony_ci		.name	= "IB_WR_ATOMIC_FETCH_AND_ADD",
638c2ecf20Sopenharmony_ci		.mask	= {
648c2ecf20Sopenharmony_ci			[IB_QPT_RC]	= WR_ATOMIC_MASK,
658c2ecf20Sopenharmony_ci		},
668c2ecf20Sopenharmony_ci	},
678c2ecf20Sopenharmony_ci	[IB_WR_LSO]					= {
688c2ecf20Sopenharmony_ci		.name	= "IB_WR_LSO",
698c2ecf20Sopenharmony_ci		.mask	= {
708c2ecf20Sopenharmony_ci			/* not supported */
718c2ecf20Sopenharmony_ci		},
728c2ecf20Sopenharmony_ci	},
738c2ecf20Sopenharmony_ci	[IB_WR_SEND_WITH_INV]				= {
748c2ecf20Sopenharmony_ci		.name	= "IB_WR_SEND_WITH_INV",
758c2ecf20Sopenharmony_ci		.mask	= {
768c2ecf20Sopenharmony_ci			[IB_QPT_RC]	= WR_INLINE_MASK | WR_SEND_MASK,
778c2ecf20Sopenharmony_ci			[IB_QPT_UC]	= WR_INLINE_MASK | WR_SEND_MASK,
788c2ecf20Sopenharmony_ci			[IB_QPT_UD]	= WR_INLINE_MASK | WR_SEND_MASK,
798c2ecf20Sopenharmony_ci		},
808c2ecf20Sopenharmony_ci	},
818c2ecf20Sopenharmony_ci	[IB_WR_RDMA_READ_WITH_INV]			= {
828c2ecf20Sopenharmony_ci		.name	= "IB_WR_RDMA_READ_WITH_INV",
838c2ecf20Sopenharmony_ci		.mask	= {
848c2ecf20Sopenharmony_ci			[IB_QPT_RC]	= WR_READ_MASK,
858c2ecf20Sopenharmony_ci		},
868c2ecf20Sopenharmony_ci	},
878c2ecf20Sopenharmony_ci	[IB_WR_LOCAL_INV]				= {
888c2ecf20Sopenharmony_ci		.name	= "IB_WR_LOCAL_INV",
898c2ecf20Sopenharmony_ci		.mask	= {
908c2ecf20Sopenharmony_ci			[IB_QPT_RC]	= WR_REG_MASK,
918c2ecf20Sopenharmony_ci		},
928c2ecf20Sopenharmony_ci	},
938c2ecf20Sopenharmony_ci	[IB_WR_REG_MR]					= {
948c2ecf20Sopenharmony_ci		.name	= "IB_WR_REG_MR",
958c2ecf20Sopenharmony_ci		.mask	= {
968c2ecf20Sopenharmony_ci			[IB_QPT_RC]	= WR_REG_MASK,
978c2ecf20Sopenharmony_ci		},
988c2ecf20Sopenharmony_ci	},
998c2ecf20Sopenharmony_ci};
1008c2ecf20Sopenharmony_ci
1018c2ecf20Sopenharmony_cistruct rxe_opcode_info rxe_opcode[RXE_NUM_OPCODE] = {
1028c2ecf20Sopenharmony_ci	[IB_OPCODE_RC_SEND_FIRST]			= {
1038c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_RC_SEND_FIRST",
1048c2ecf20Sopenharmony_ci		.mask	= RXE_PAYLOAD_MASK | RXE_REQ_MASK | RXE_RWR_MASK
1058c2ecf20Sopenharmony_ci				| RXE_SEND_MASK | RXE_START_MASK,
1068c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES,
1078c2ecf20Sopenharmony_ci		.offset = {
1088c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
1098c2ecf20Sopenharmony_ci			[RXE_PAYLOAD]	= RXE_BTH_BYTES,
1108c2ecf20Sopenharmony_ci		}
1118c2ecf20Sopenharmony_ci	},
1128c2ecf20Sopenharmony_ci	[IB_OPCODE_RC_SEND_MIDDLE]		= {
1138c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_RC_SEND_MIDDLE",
1148c2ecf20Sopenharmony_ci		.mask	= RXE_PAYLOAD_MASK | RXE_REQ_MASK | RXE_SEND_MASK
1158c2ecf20Sopenharmony_ci				| RXE_MIDDLE_MASK,
1168c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES,
1178c2ecf20Sopenharmony_ci		.offset = {
1188c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
1198c2ecf20Sopenharmony_ci			[RXE_PAYLOAD]	= RXE_BTH_BYTES,
1208c2ecf20Sopenharmony_ci		}
1218c2ecf20Sopenharmony_ci	},
1228c2ecf20Sopenharmony_ci	[IB_OPCODE_RC_SEND_LAST]			= {
1238c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_RC_SEND_LAST",
1248c2ecf20Sopenharmony_ci		.mask	= RXE_PAYLOAD_MASK | RXE_REQ_MASK | RXE_COMP_MASK
1258c2ecf20Sopenharmony_ci				| RXE_SEND_MASK | RXE_END_MASK,
1268c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES,
1278c2ecf20Sopenharmony_ci		.offset = {
1288c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
1298c2ecf20Sopenharmony_ci			[RXE_PAYLOAD]	= RXE_BTH_BYTES,
1308c2ecf20Sopenharmony_ci		}
1318c2ecf20Sopenharmony_ci	},
1328c2ecf20Sopenharmony_ci	[IB_OPCODE_RC_SEND_LAST_WITH_IMMEDIATE]		= {
1338c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_RC_SEND_LAST_WITH_IMMEDIATE",
1348c2ecf20Sopenharmony_ci		.mask	= RXE_IMMDT_MASK | RXE_PAYLOAD_MASK | RXE_REQ_MASK
1358c2ecf20Sopenharmony_ci				| RXE_COMP_MASK | RXE_SEND_MASK | RXE_END_MASK,
1368c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES + RXE_IMMDT_BYTES,
1378c2ecf20Sopenharmony_ci		.offset = {
1388c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
1398c2ecf20Sopenharmony_ci			[RXE_IMMDT]	= RXE_BTH_BYTES,
1408c2ecf20Sopenharmony_ci			[RXE_PAYLOAD]	= RXE_BTH_BYTES
1418c2ecf20Sopenharmony_ci						+ RXE_IMMDT_BYTES,
1428c2ecf20Sopenharmony_ci		}
1438c2ecf20Sopenharmony_ci	},
1448c2ecf20Sopenharmony_ci	[IB_OPCODE_RC_SEND_ONLY]			= {
1458c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_RC_SEND_ONLY",
1468c2ecf20Sopenharmony_ci		.mask	= RXE_PAYLOAD_MASK | RXE_REQ_MASK | RXE_COMP_MASK
1478c2ecf20Sopenharmony_ci				| RXE_RWR_MASK | RXE_SEND_MASK
1488c2ecf20Sopenharmony_ci				| RXE_START_MASK | RXE_END_MASK,
1498c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES,
1508c2ecf20Sopenharmony_ci		.offset = {
1518c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
1528c2ecf20Sopenharmony_ci			[RXE_PAYLOAD]	= RXE_BTH_BYTES,
1538c2ecf20Sopenharmony_ci		}
1548c2ecf20Sopenharmony_ci	},
1558c2ecf20Sopenharmony_ci	[IB_OPCODE_RC_SEND_ONLY_WITH_IMMEDIATE]		= {
1568c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_RC_SEND_ONLY_WITH_IMMEDIATE",
1578c2ecf20Sopenharmony_ci		.mask	= RXE_IMMDT_MASK | RXE_PAYLOAD_MASK | RXE_REQ_MASK
1588c2ecf20Sopenharmony_ci				| RXE_COMP_MASK | RXE_RWR_MASK | RXE_SEND_MASK
1598c2ecf20Sopenharmony_ci				| RXE_START_MASK | RXE_END_MASK,
1608c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES + RXE_IMMDT_BYTES,
1618c2ecf20Sopenharmony_ci		.offset = {
1628c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
1638c2ecf20Sopenharmony_ci			[RXE_IMMDT]	= RXE_BTH_BYTES,
1648c2ecf20Sopenharmony_ci			[RXE_PAYLOAD]	= RXE_BTH_BYTES
1658c2ecf20Sopenharmony_ci						+ RXE_IMMDT_BYTES,
1668c2ecf20Sopenharmony_ci		}
1678c2ecf20Sopenharmony_ci	},
1688c2ecf20Sopenharmony_ci	[IB_OPCODE_RC_RDMA_WRITE_FIRST]		= {
1698c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_RC_RDMA_WRITE_FIRST",
1708c2ecf20Sopenharmony_ci		.mask	= RXE_RETH_MASK | RXE_PAYLOAD_MASK | RXE_REQ_MASK
1718c2ecf20Sopenharmony_ci				| RXE_WRITE_MASK | RXE_START_MASK,
1728c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES + RXE_RETH_BYTES,
1738c2ecf20Sopenharmony_ci		.offset = {
1748c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
1758c2ecf20Sopenharmony_ci			[RXE_RETH]	= RXE_BTH_BYTES,
1768c2ecf20Sopenharmony_ci			[RXE_PAYLOAD]	= RXE_BTH_BYTES
1778c2ecf20Sopenharmony_ci						+ RXE_RETH_BYTES,
1788c2ecf20Sopenharmony_ci		}
1798c2ecf20Sopenharmony_ci	},
1808c2ecf20Sopenharmony_ci	[IB_OPCODE_RC_RDMA_WRITE_MIDDLE]		= {
1818c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_RC_RDMA_WRITE_MIDDLE",
1828c2ecf20Sopenharmony_ci		.mask	= RXE_PAYLOAD_MASK | RXE_REQ_MASK | RXE_WRITE_MASK
1838c2ecf20Sopenharmony_ci				| RXE_MIDDLE_MASK,
1848c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES,
1858c2ecf20Sopenharmony_ci		.offset = {
1868c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
1878c2ecf20Sopenharmony_ci			[RXE_PAYLOAD]	= RXE_BTH_BYTES,
1888c2ecf20Sopenharmony_ci		}
1898c2ecf20Sopenharmony_ci	},
1908c2ecf20Sopenharmony_ci	[IB_OPCODE_RC_RDMA_WRITE_LAST]			= {
1918c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_RC_RDMA_WRITE_LAST",
1928c2ecf20Sopenharmony_ci		.mask	= RXE_PAYLOAD_MASK | RXE_REQ_MASK | RXE_WRITE_MASK
1938c2ecf20Sopenharmony_ci				| RXE_END_MASK,
1948c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES,
1958c2ecf20Sopenharmony_ci		.offset = {
1968c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
1978c2ecf20Sopenharmony_ci			[RXE_PAYLOAD]	= RXE_BTH_BYTES,
1988c2ecf20Sopenharmony_ci		}
1998c2ecf20Sopenharmony_ci	},
2008c2ecf20Sopenharmony_ci	[IB_OPCODE_RC_RDMA_WRITE_LAST_WITH_IMMEDIATE]		= {
2018c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_RC_RDMA_WRITE_LAST_WITH_IMMEDIATE",
2028c2ecf20Sopenharmony_ci		.mask	= RXE_IMMDT_MASK | RXE_PAYLOAD_MASK | RXE_REQ_MASK
2038c2ecf20Sopenharmony_ci				| RXE_WRITE_MASK | RXE_COMP_MASK | RXE_RWR_MASK
2048c2ecf20Sopenharmony_ci				| RXE_END_MASK,
2058c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES + RXE_IMMDT_BYTES,
2068c2ecf20Sopenharmony_ci		.offset = {
2078c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
2088c2ecf20Sopenharmony_ci			[RXE_IMMDT]	= RXE_BTH_BYTES,
2098c2ecf20Sopenharmony_ci			[RXE_PAYLOAD]	= RXE_BTH_BYTES
2108c2ecf20Sopenharmony_ci						+ RXE_IMMDT_BYTES,
2118c2ecf20Sopenharmony_ci		}
2128c2ecf20Sopenharmony_ci	},
2138c2ecf20Sopenharmony_ci	[IB_OPCODE_RC_RDMA_WRITE_ONLY]			= {
2148c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_RC_RDMA_WRITE_ONLY",
2158c2ecf20Sopenharmony_ci		.mask	= RXE_RETH_MASK | RXE_PAYLOAD_MASK | RXE_REQ_MASK
2168c2ecf20Sopenharmony_ci				| RXE_WRITE_MASK | RXE_START_MASK
2178c2ecf20Sopenharmony_ci				| RXE_END_MASK,
2188c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES + RXE_RETH_BYTES,
2198c2ecf20Sopenharmony_ci		.offset = {
2208c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
2218c2ecf20Sopenharmony_ci			[RXE_RETH]	= RXE_BTH_BYTES,
2228c2ecf20Sopenharmony_ci			[RXE_PAYLOAD]	= RXE_BTH_BYTES
2238c2ecf20Sopenharmony_ci						+ RXE_RETH_BYTES,
2248c2ecf20Sopenharmony_ci		}
2258c2ecf20Sopenharmony_ci	},
2268c2ecf20Sopenharmony_ci	[IB_OPCODE_RC_RDMA_WRITE_ONLY_WITH_IMMEDIATE]		= {
2278c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_RC_RDMA_WRITE_ONLY_WITH_IMMEDIATE",
2288c2ecf20Sopenharmony_ci		.mask	= RXE_RETH_MASK | RXE_IMMDT_MASK | RXE_PAYLOAD_MASK
2298c2ecf20Sopenharmony_ci				| RXE_REQ_MASK | RXE_WRITE_MASK
2308c2ecf20Sopenharmony_ci				| RXE_COMP_MASK | RXE_RWR_MASK
2318c2ecf20Sopenharmony_ci				| RXE_START_MASK | RXE_END_MASK,
2328c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES + RXE_IMMDT_BYTES + RXE_RETH_BYTES,
2338c2ecf20Sopenharmony_ci		.offset = {
2348c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
2358c2ecf20Sopenharmony_ci			[RXE_RETH]	= RXE_BTH_BYTES,
2368c2ecf20Sopenharmony_ci			[RXE_IMMDT]	= RXE_BTH_BYTES
2378c2ecf20Sopenharmony_ci						+ RXE_RETH_BYTES,
2388c2ecf20Sopenharmony_ci			[RXE_PAYLOAD]	= RXE_BTH_BYTES
2398c2ecf20Sopenharmony_ci						+ RXE_RETH_BYTES
2408c2ecf20Sopenharmony_ci						+ RXE_IMMDT_BYTES,
2418c2ecf20Sopenharmony_ci		}
2428c2ecf20Sopenharmony_ci	},
2438c2ecf20Sopenharmony_ci	[IB_OPCODE_RC_RDMA_READ_REQUEST]			= {
2448c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_RC_RDMA_READ_REQUEST",
2458c2ecf20Sopenharmony_ci		.mask	= RXE_RETH_MASK | RXE_REQ_MASK | RXE_READ_MASK
2468c2ecf20Sopenharmony_ci				| RXE_START_MASK | RXE_END_MASK,
2478c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES + RXE_RETH_BYTES,
2488c2ecf20Sopenharmony_ci		.offset = {
2498c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
2508c2ecf20Sopenharmony_ci			[RXE_RETH]	= RXE_BTH_BYTES,
2518c2ecf20Sopenharmony_ci			[RXE_PAYLOAD]	= RXE_BTH_BYTES
2528c2ecf20Sopenharmony_ci						+ RXE_RETH_BYTES,
2538c2ecf20Sopenharmony_ci		}
2548c2ecf20Sopenharmony_ci	},
2558c2ecf20Sopenharmony_ci	[IB_OPCODE_RC_RDMA_READ_RESPONSE_FIRST]		= {
2568c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_RC_RDMA_READ_RESPONSE_FIRST",
2578c2ecf20Sopenharmony_ci		.mask	= RXE_AETH_MASK | RXE_PAYLOAD_MASK | RXE_ACK_MASK
2588c2ecf20Sopenharmony_ci				| RXE_START_MASK,
2598c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES + RXE_AETH_BYTES,
2608c2ecf20Sopenharmony_ci		.offset = {
2618c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
2628c2ecf20Sopenharmony_ci			[RXE_AETH]	= RXE_BTH_BYTES,
2638c2ecf20Sopenharmony_ci			[RXE_PAYLOAD]	= RXE_BTH_BYTES
2648c2ecf20Sopenharmony_ci						+ RXE_AETH_BYTES,
2658c2ecf20Sopenharmony_ci		}
2668c2ecf20Sopenharmony_ci	},
2678c2ecf20Sopenharmony_ci	[IB_OPCODE_RC_RDMA_READ_RESPONSE_MIDDLE]		= {
2688c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_RC_RDMA_READ_RESPONSE_MIDDLE",
2698c2ecf20Sopenharmony_ci		.mask	= RXE_PAYLOAD_MASK | RXE_ACK_MASK | RXE_MIDDLE_MASK,
2708c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES,
2718c2ecf20Sopenharmony_ci		.offset = {
2728c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
2738c2ecf20Sopenharmony_ci			[RXE_PAYLOAD]	= RXE_BTH_BYTES,
2748c2ecf20Sopenharmony_ci		}
2758c2ecf20Sopenharmony_ci	},
2768c2ecf20Sopenharmony_ci	[IB_OPCODE_RC_RDMA_READ_RESPONSE_LAST]		= {
2778c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_RC_RDMA_READ_RESPONSE_LAST",
2788c2ecf20Sopenharmony_ci		.mask	= RXE_AETH_MASK | RXE_PAYLOAD_MASK | RXE_ACK_MASK
2798c2ecf20Sopenharmony_ci				| RXE_END_MASK,
2808c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES + RXE_AETH_BYTES,
2818c2ecf20Sopenharmony_ci		.offset = {
2828c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
2838c2ecf20Sopenharmony_ci			[RXE_AETH]	= RXE_BTH_BYTES,
2848c2ecf20Sopenharmony_ci			[RXE_PAYLOAD]	= RXE_BTH_BYTES
2858c2ecf20Sopenharmony_ci						+ RXE_AETH_BYTES,
2868c2ecf20Sopenharmony_ci		}
2878c2ecf20Sopenharmony_ci	},
2888c2ecf20Sopenharmony_ci	[IB_OPCODE_RC_RDMA_READ_RESPONSE_ONLY]		= {
2898c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_RC_RDMA_READ_RESPONSE_ONLY",
2908c2ecf20Sopenharmony_ci		.mask	= RXE_AETH_MASK | RXE_PAYLOAD_MASK | RXE_ACK_MASK
2918c2ecf20Sopenharmony_ci				| RXE_START_MASK | RXE_END_MASK,
2928c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES + RXE_AETH_BYTES,
2938c2ecf20Sopenharmony_ci		.offset = {
2948c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
2958c2ecf20Sopenharmony_ci			[RXE_AETH]	= RXE_BTH_BYTES,
2968c2ecf20Sopenharmony_ci			[RXE_PAYLOAD]	= RXE_BTH_BYTES
2978c2ecf20Sopenharmony_ci						+ RXE_AETH_BYTES,
2988c2ecf20Sopenharmony_ci		}
2998c2ecf20Sopenharmony_ci	},
3008c2ecf20Sopenharmony_ci	[IB_OPCODE_RC_ACKNOWLEDGE]			= {
3018c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_RC_ACKNOWLEDGE",
3028c2ecf20Sopenharmony_ci		.mask	= RXE_AETH_MASK | RXE_ACK_MASK | RXE_START_MASK
3038c2ecf20Sopenharmony_ci				| RXE_END_MASK,
3048c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES + RXE_AETH_BYTES,
3058c2ecf20Sopenharmony_ci		.offset = {
3068c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
3078c2ecf20Sopenharmony_ci			[RXE_AETH]	= RXE_BTH_BYTES,
3088c2ecf20Sopenharmony_ci			[RXE_PAYLOAD]	= RXE_BTH_BYTES
3098c2ecf20Sopenharmony_ci						+ RXE_AETH_BYTES,
3108c2ecf20Sopenharmony_ci		}
3118c2ecf20Sopenharmony_ci	},
3128c2ecf20Sopenharmony_ci	[IB_OPCODE_RC_ATOMIC_ACKNOWLEDGE]			= {
3138c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_RC_ATOMIC_ACKNOWLEDGE",
3148c2ecf20Sopenharmony_ci		.mask	= RXE_AETH_MASK | RXE_ATMACK_MASK | RXE_ACK_MASK
3158c2ecf20Sopenharmony_ci				| RXE_START_MASK | RXE_END_MASK,
3168c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES + RXE_ATMACK_BYTES + RXE_AETH_BYTES,
3178c2ecf20Sopenharmony_ci		.offset = {
3188c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
3198c2ecf20Sopenharmony_ci			[RXE_AETH]	= RXE_BTH_BYTES,
3208c2ecf20Sopenharmony_ci			[RXE_ATMACK]	= RXE_BTH_BYTES
3218c2ecf20Sopenharmony_ci						+ RXE_AETH_BYTES,
3228c2ecf20Sopenharmony_ci			[RXE_PAYLOAD]	= RXE_BTH_BYTES
3238c2ecf20Sopenharmony_ci					+ RXE_ATMACK_BYTES + RXE_AETH_BYTES,
3248c2ecf20Sopenharmony_ci		}
3258c2ecf20Sopenharmony_ci	},
3268c2ecf20Sopenharmony_ci	[IB_OPCODE_RC_COMPARE_SWAP]			= {
3278c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_RC_COMPARE_SWAP",
3288c2ecf20Sopenharmony_ci		.mask	= RXE_ATMETH_MASK | RXE_REQ_MASK | RXE_ATOMIC_MASK
3298c2ecf20Sopenharmony_ci				| RXE_START_MASK | RXE_END_MASK,
3308c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES + RXE_ATMETH_BYTES,
3318c2ecf20Sopenharmony_ci		.offset = {
3328c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
3338c2ecf20Sopenharmony_ci			[RXE_ATMETH]	= RXE_BTH_BYTES,
3348c2ecf20Sopenharmony_ci			[RXE_PAYLOAD]	= RXE_BTH_BYTES
3358c2ecf20Sopenharmony_ci						+ RXE_ATMETH_BYTES,
3368c2ecf20Sopenharmony_ci		}
3378c2ecf20Sopenharmony_ci	},
3388c2ecf20Sopenharmony_ci	[IB_OPCODE_RC_FETCH_ADD]			= {
3398c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_RC_FETCH_ADD",
3408c2ecf20Sopenharmony_ci		.mask	= RXE_ATMETH_MASK | RXE_REQ_MASK | RXE_ATOMIC_MASK
3418c2ecf20Sopenharmony_ci				| RXE_START_MASK | RXE_END_MASK,
3428c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES + RXE_ATMETH_BYTES,
3438c2ecf20Sopenharmony_ci		.offset = {
3448c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
3458c2ecf20Sopenharmony_ci			[RXE_ATMETH]	= RXE_BTH_BYTES,
3468c2ecf20Sopenharmony_ci			[RXE_PAYLOAD]	= RXE_BTH_BYTES
3478c2ecf20Sopenharmony_ci						+ RXE_ATMETH_BYTES,
3488c2ecf20Sopenharmony_ci		}
3498c2ecf20Sopenharmony_ci	},
3508c2ecf20Sopenharmony_ci	[IB_OPCODE_RC_SEND_LAST_WITH_INVALIDATE]		= {
3518c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_RC_SEND_LAST_WITH_INVALIDATE",
3528c2ecf20Sopenharmony_ci		.mask	= RXE_IETH_MASK | RXE_PAYLOAD_MASK | RXE_REQ_MASK
3538c2ecf20Sopenharmony_ci				| RXE_COMP_MASK | RXE_SEND_MASK | RXE_END_MASK,
3548c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES + RXE_IETH_BYTES,
3558c2ecf20Sopenharmony_ci		.offset = {
3568c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
3578c2ecf20Sopenharmony_ci			[RXE_IETH]	= RXE_BTH_BYTES,
3588c2ecf20Sopenharmony_ci			[RXE_PAYLOAD]	= RXE_BTH_BYTES
3598c2ecf20Sopenharmony_ci						+ RXE_IETH_BYTES,
3608c2ecf20Sopenharmony_ci		}
3618c2ecf20Sopenharmony_ci	},
3628c2ecf20Sopenharmony_ci	[IB_OPCODE_RC_SEND_ONLY_WITH_INVALIDATE]		= {
3638c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_RC_SEND_ONLY_INV",
3648c2ecf20Sopenharmony_ci		.mask	= RXE_IETH_MASK | RXE_PAYLOAD_MASK | RXE_REQ_MASK
3658c2ecf20Sopenharmony_ci				| RXE_COMP_MASK | RXE_RWR_MASK | RXE_SEND_MASK
3668c2ecf20Sopenharmony_ci				| RXE_END_MASK  | RXE_START_MASK,
3678c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES + RXE_IETH_BYTES,
3688c2ecf20Sopenharmony_ci		.offset = {
3698c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
3708c2ecf20Sopenharmony_ci			[RXE_IETH]	= RXE_BTH_BYTES,
3718c2ecf20Sopenharmony_ci			[RXE_PAYLOAD]	= RXE_BTH_BYTES
3728c2ecf20Sopenharmony_ci						+ RXE_IETH_BYTES,
3738c2ecf20Sopenharmony_ci		}
3748c2ecf20Sopenharmony_ci	},
3758c2ecf20Sopenharmony_ci
3768c2ecf20Sopenharmony_ci	/* UC */
3778c2ecf20Sopenharmony_ci	[IB_OPCODE_UC_SEND_FIRST]			= {
3788c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_UC_SEND_FIRST",
3798c2ecf20Sopenharmony_ci		.mask	= RXE_PAYLOAD_MASK | RXE_REQ_MASK | RXE_RWR_MASK
3808c2ecf20Sopenharmony_ci				| RXE_SEND_MASK | RXE_START_MASK,
3818c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES,
3828c2ecf20Sopenharmony_ci		.offset = {
3838c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
3848c2ecf20Sopenharmony_ci			[RXE_PAYLOAD]	= RXE_BTH_BYTES,
3858c2ecf20Sopenharmony_ci		}
3868c2ecf20Sopenharmony_ci	},
3878c2ecf20Sopenharmony_ci	[IB_OPCODE_UC_SEND_MIDDLE]		= {
3888c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_UC_SEND_MIDDLE",
3898c2ecf20Sopenharmony_ci		.mask	= RXE_PAYLOAD_MASK | RXE_REQ_MASK | RXE_SEND_MASK
3908c2ecf20Sopenharmony_ci				| RXE_MIDDLE_MASK,
3918c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES,
3928c2ecf20Sopenharmony_ci		.offset = {
3938c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
3948c2ecf20Sopenharmony_ci			[RXE_PAYLOAD]	= RXE_BTH_BYTES,
3958c2ecf20Sopenharmony_ci		}
3968c2ecf20Sopenharmony_ci	},
3978c2ecf20Sopenharmony_ci	[IB_OPCODE_UC_SEND_LAST]			= {
3988c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_UC_SEND_LAST",
3998c2ecf20Sopenharmony_ci		.mask	= RXE_PAYLOAD_MASK | RXE_REQ_MASK | RXE_COMP_MASK
4008c2ecf20Sopenharmony_ci				| RXE_SEND_MASK | RXE_END_MASK,
4018c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES,
4028c2ecf20Sopenharmony_ci		.offset = {
4038c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
4048c2ecf20Sopenharmony_ci			[RXE_PAYLOAD]	= RXE_BTH_BYTES,
4058c2ecf20Sopenharmony_ci		}
4068c2ecf20Sopenharmony_ci	},
4078c2ecf20Sopenharmony_ci	[IB_OPCODE_UC_SEND_LAST_WITH_IMMEDIATE]		= {
4088c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_UC_SEND_LAST_WITH_IMMEDIATE",
4098c2ecf20Sopenharmony_ci		.mask	= RXE_IMMDT_MASK | RXE_PAYLOAD_MASK | RXE_REQ_MASK
4108c2ecf20Sopenharmony_ci				| RXE_COMP_MASK | RXE_SEND_MASK | RXE_END_MASK,
4118c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES + RXE_IMMDT_BYTES,
4128c2ecf20Sopenharmony_ci		.offset = {
4138c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
4148c2ecf20Sopenharmony_ci			[RXE_IMMDT]	= RXE_BTH_BYTES,
4158c2ecf20Sopenharmony_ci			[RXE_PAYLOAD]	= RXE_BTH_BYTES
4168c2ecf20Sopenharmony_ci						+ RXE_IMMDT_BYTES,
4178c2ecf20Sopenharmony_ci		}
4188c2ecf20Sopenharmony_ci	},
4198c2ecf20Sopenharmony_ci	[IB_OPCODE_UC_SEND_ONLY]			= {
4208c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_UC_SEND_ONLY",
4218c2ecf20Sopenharmony_ci		.mask	= RXE_PAYLOAD_MASK | RXE_REQ_MASK | RXE_COMP_MASK
4228c2ecf20Sopenharmony_ci				| RXE_RWR_MASK | RXE_SEND_MASK
4238c2ecf20Sopenharmony_ci				| RXE_START_MASK | RXE_END_MASK,
4248c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES,
4258c2ecf20Sopenharmony_ci		.offset = {
4268c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
4278c2ecf20Sopenharmony_ci			[RXE_PAYLOAD]	= RXE_BTH_BYTES,
4288c2ecf20Sopenharmony_ci		}
4298c2ecf20Sopenharmony_ci	},
4308c2ecf20Sopenharmony_ci	[IB_OPCODE_UC_SEND_ONLY_WITH_IMMEDIATE]		= {
4318c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_UC_SEND_ONLY_WITH_IMMEDIATE",
4328c2ecf20Sopenharmony_ci		.mask	= RXE_IMMDT_MASK | RXE_PAYLOAD_MASK | RXE_REQ_MASK
4338c2ecf20Sopenharmony_ci				| RXE_COMP_MASK | RXE_RWR_MASK | RXE_SEND_MASK
4348c2ecf20Sopenharmony_ci				| RXE_START_MASK | RXE_END_MASK,
4358c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES + RXE_IMMDT_BYTES,
4368c2ecf20Sopenharmony_ci		.offset = {
4378c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
4388c2ecf20Sopenharmony_ci			[RXE_IMMDT]	= RXE_BTH_BYTES,
4398c2ecf20Sopenharmony_ci			[RXE_PAYLOAD]	= RXE_BTH_BYTES
4408c2ecf20Sopenharmony_ci						+ RXE_IMMDT_BYTES,
4418c2ecf20Sopenharmony_ci		}
4428c2ecf20Sopenharmony_ci	},
4438c2ecf20Sopenharmony_ci	[IB_OPCODE_UC_RDMA_WRITE_FIRST]		= {
4448c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_UC_RDMA_WRITE_FIRST",
4458c2ecf20Sopenharmony_ci		.mask	= RXE_RETH_MASK | RXE_PAYLOAD_MASK | RXE_REQ_MASK
4468c2ecf20Sopenharmony_ci				| RXE_WRITE_MASK | RXE_START_MASK,
4478c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES + RXE_RETH_BYTES,
4488c2ecf20Sopenharmony_ci		.offset = {
4498c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
4508c2ecf20Sopenharmony_ci			[RXE_RETH]	= RXE_BTH_BYTES,
4518c2ecf20Sopenharmony_ci			[RXE_PAYLOAD]	= RXE_BTH_BYTES
4528c2ecf20Sopenharmony_ci						+ RXE_RETH_BYTES,
4538c2ecf20Sopenharmony_ci		}
4548c2ecf20Sopenharmony_ci	},
4558c2ecf20Sopenharmony_ci	[IB_OPCODE_UC_RDMA_WRITE_MIDDLE]		= {
4568c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_UC_RDMA_WRITE_MIDDLE",
4578c2ecf20Sopenharmony_ci		.mask	= RXE_PAYLOAD_MASK | RXE_REQ_MASK | RXE_WRITE_MASK
4588c2ecf20Sopenharmony_ci				| RXE_MIDDLE_MASK,
4598c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES,
4608c2ecf20Sopenharmony_ci		.offset = {
4618c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
4628c2ecf20Sopenharmony_ci			[RXE_PAYLOAD]	= RXE_BTH_BYTES,
4638c2ecf20Sopenharmony_ci		}
4648c2ecf20Sopenharmony_ci	},
4658c2ecf20Sopenharmony_ci	[IB_OPCODE_UC_RDMA_WRITE_LAST]			= {
4668c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_UC_RDMA_WRITE_LAST",
4678c2ecf20Sopenharmony_ci		.mask	= RXE_PAYLOAD_MASK | RXE_REQ_MASK | RXE_WRITE_MASK
4688c2ecf20Sopenharmony_ci				| RXE_END_MASK,
4698c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES,
4708c2ecf20Sopenharmony_ci		.offset = {
4718c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
4728c2ecf20Sopenharmony_ci			[RXE_PAYLOAD]	= RXE_BTH_BYTES,
4738c2ecf20Sopenharmony_ci		}
4748c2ecf20Sopenharmony_ci	},
4758c2ecf20Sopenharmony_ci	[IB_OPCODE_UC_RDMA_WRITE_LAST_WITH_IMMEDIATE]		= {
4768c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_UC_RDMA_WRITE_LAST_WITH_IMMEDIATE",
4778c2ecf20Sopenharmony_ci		.mask	= RXE_IMMDT_MASK | RXE_PAYLOAD_MASK | RXE_REQ_MASK
4788c2ecf20Sopenharmony_ci				| RXE_WRITE_MASK | RXE_COMP_MASK | RXE_RWR_MASK
4798c2ecf20Sopenharmony_ci				| RXE_END_MASK,
4808c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES + RXE_IMMDT_BYTES,
4818c2ecf20Sopenharmony_ci		.offset = {
4828c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
4838c2ecf20Sopenharmony_ci			[RXE_IMMDT]	= RXE_BTH_BYTES,
4848c2ecf20Sopenharmony_ci			[RXE_PAYLOAD]	= RXE_BTH_BYTES
4858c2ecf20Sopenharmony_ci						+ RXE_IMMDT_BYTES,
4868c2ecf20Sopenharmony_ci		}
4878c2ecf20Sopenharmony_ci	},
4888c2ecf20Sopenharmony_ci	[IB_OPCODE_UC_RDMA_WRITE_ONLY]			= {
4898c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_UC_RDMA_WRITE_ONLY",
4908c2ecf20Sopenharmony_ci		.mask	= RXE_RETH_MASK | RXE_PAYLOAD_MASK | RXE_REQ_MASK
4918c2ecf20Sopenharmony_ci				| RXE_WRITE_MASK | RXE_START_MASK
4928c2ecf20Sopenharmony_ci				| RXE_END_MASK,
4938c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES + RXE_RETH_BYTES,
4948c2ecf20Sopenharmony_ci		.offset = {
4958c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
4968c2ecf20Sopenharmony_ci			[RXE_RETH]	= RXE_BTH_BYTES,
4978c2ecf20Sopenharmony_ci			[RXE_PAYLOAD]	= RXE_BTH_BYTES
4988c2ecf20Sopenharmony_ci						+ RXE_RETH_BYTES,
4998c2ecf20Sopenharmony_ci		}
5008c2ecf20Sopenharmony_ci	},
5018c2ecf20Sopenharmony_ci	[IB_OPCODE_UC_RDMA_WRITE_ONLY_WITH_IMMEDIATE]		= {
5028c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_UC_RDMA_WRITE_ONLY_WITH_IMMEDIATE",
5038c2ecf20Sopenharmony_ci		.mask	= RXE_RETH_MASK | RXE_IMMDT_MASK | RXE_PAYLOAD_MASK
5048c2ecf20Sopenharmony_ci				| RXE_REQ_MASK | RXE_WRITE_MASK
5058c2ecf20Sopenharmony_ci				| RXE_COMP_MASK | RXE_RWR_MASK
5068c2ecf20Sopenharmony_ci				| RXE_START_MASK | RXE_END_MASK,
5078c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES + RXE_IMMDT_BYTES + RXE_RETH_BYTES,
5088c2ecf20Sopenharmony_ci		.offset = {
5098c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
5108c2ecf20Sopenharmony_ci			[RXE_RETH]	= RXE_BTH_BYTES,
5118c2ecf20Sopenharmony_ci			[RXE_IMMDT]	= RXE_BTH_BYTES
5128c2ecf20Sopenharmony_ci						+ RXE_RETH_BYTES,
5138c2ecf20Sopenharmony_ci			[RXE_PAYLOAD]	= RXE_BTH_BYTES
5148c2ecf20Sopenharmony_ci						+ RXE_RETH_BYTES
5158c2ecf20Sopenharmony_ci						+ RXE_IMMDT_BYTES,
5168c2ecf20Sopenharmony_ci		}
5178c2ecf20Sopenharmony_ci	},
5188c2ecf20Sopenharmony_ci
5198c2ecf20Sopenharmony_ci	/* RD */
5208c2ecf20Sopenharmony_ci	[IB_OPCODE_RD_SEND_FIRST]			= {
5218c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_RD_SEND_FIRST",
5228c2ecf20Sopenharmony_ci		.mask	= RXE_RDETH_MASK | RXE_DETH_MASK | RXE_PAYLOAD_MASK
5238c2ecf20Sopenharmony_ci				| RXE_REQ_MASK | RXE_RWR_MASK | RXE_SEND_MASK
5248c2ecf20Sopenharmony_ci				| RXE_START_MASK,
5258c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES + RXE_DETH_BYTES + RXE_RDETH_BYTES,
5268c2ecf20Sopenharmony_ci		.offset = {
5278c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
5288c2ecf20Sopenharmony_ci			[RXE_RDETH]	= RXE_BTH_BYTES,
5298c2ecf20Sopenharmony_ci			[RXE_DETH]	= RXE_BTH_BYTES
5308c2ecf20Sopenharmony_ci						+ RXE_RDETH_BYTES,
5318c2ecf20Sopenharmony_ci			[RXE_PAYLOAD]	= RXE_BTH_BYTES
5328c2ecf20Sopenharmony_ci						+ RXE_RDETH_BYTES
5338c2ecf20Sopenharmony_ci						+ RXE_DETH_BYTES,
5348c2ecf20Sopenharmony_ci		}
5358c2ecf20Sopenharmony_ci	},
5368c2ecf20Sopenharmony_ci	[IB_OPCODE_RD_SEND_MIDDLE]		= {
5378c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_RD_SEND_MIDDLE",
5388c2ecf20Sopenharmony_ci		.mask	= RXE_RDETH_MASK | RXE_DETH_MASK | RXE_PAYLOAD_MASK
5398c2ecf20Sopenharmony_ci				| RXE_REQ_MASK | RXE_SEND_MASK
5408c2ecf20Sopenharmony_ci				| RXE_MIDDLE_MASK,
5418c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES + RXE_DETH_BYTES + RXE_RDETH_BYTES,
5428c2ecf20Sopenharmony_ci		.offset = {
5438c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
5448c2ecf20Sopenharmony_ci			[RXE_RDETH]	= RXE_BTH_BYTES,
5458c2ecf20Sopenharmony_ci			[RXE_DETH]	= RXE_BTH_BYTES
5468c2ecf20Sopenharmony_ci						+ RXE_RDETH_BYTES,
5478c2ecf20Sopenharmony_ci			[RXE_PAYLOAD]	= RXE_BTH_BYTES
5488c2ecf20Sopenharmony_ci						+ RXE_RDETH_BYTES
5498c2ecf20Sopenharmony_ci						+ RXE_DETH_BYTES,
5508c2ecf20Sopenharmony_ci		}
5518c2ecf20Sopenharmony_ci	},
5528c2ecf20Sopenharmony_ci	[IB_OPCODE_RD_SEND_LAST]			= {
5538c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_RD_SEND_LAST",
5548c2ecf20Sopenharmony_ci		.mask	= RXE_RDETH_MASK | RXE_DETH_MASK | RXE_PAYLOAD_MASK
5558c2ecf20Sopenharmony_ci				| RXE_REQ_MASK | RXE_COMP_MASK | RXE_SEND_MASK
5568c2ecf20Sopenharmony_ci				| RXE_END_MASK,
5578c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES + RXE_DETH_BYTES + RXE_RDETH_BYTES,
5588c2ecf20Sopenharmony_ci		.offset = {
5598c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
5608c2ecf20Sopenharmony_ci			[RXE_RDETH]	= RXE_BTH_BYTES,
5618c2ecf20Sopenharmony_ci			[RXE_DETH]	= RXE_BTH_BYTES
5628c2ecf20Sopenharmony_ci						+ RXE_RDETH_BYTES,
5638c2ecf20Sopenharmony_ci			[RXE_PAYLOAD]	= RXE_BTH_BYTES
5648c2ecf20Sopenharmony_ci						+ RXE_RDETH_BYTES
5658c2ecf20Sopenharmony_ci						+ RXE_DETH_BYTES,
5668c2ecf20Sopenharmony_ci		}
5678c2ecf20Sopenharmony_ci	},
5688c2ecf20Sopenharmony_ci	[IB_OPCODE_RD_SEND_LAST_WITH_IMMEDIATE]		= {
5698c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_RD_SEND_LAST_WITH_IMMEDIATE",
5708c2ecf20Sopenharmony_ci		.mask	= RXE_RDETH_MASK | RXE_DETH_MASK | RXE_IMMDT_MASK
5718c2ecf20Sopenharmony_ci				| RXE_PAYLOAD_MASK | RXE_REQ_MASK
5728c2ecf20Sopenharmony_ci				| RXE_COMP_MASK | RXE_SEND_MASK
5738c2ecf20Sopenharmony_ci				| RXE_END_MASK,
5748c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES + RXE_IMMDT_BYTES + RXE_DETH_BYTES
5758c2ecf20Sopenharmony_ci				+ RXE_RDETH_BYTES,
5768c2ecf20Sopenharmony_ci		.offset = {
5778c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
5788c2ecf20Sopenharmony_ci			[RXE_RDETH]	= RXE_BTH_BYTES,
5798c2ecf20Sopenharmony_ci			[RXE_DETH]	= RXE_BTH_BYTES
5808c2ecf20Sopenharmony_ci						+ RXE_RDETH_BYTES,
5818c2ecf20Sopenharmony_ci			[RXE_IMMDT]	= RXE_BTH_BYTES
5828c2ecf20Sopenharmony_ci						+ RXE_RDETH_BYTES
5838c2ecf20Sopenharmony_ci						+ RXE_DETH_BYTES,
5848c2ecf20Sopenharmony_ci			[RXE_PAYLOAD]	= RXE_BTH_BYTES
5858c2ecf20Sopenharmony_ci						+ RXE_RDETH_BYTES
5868c2ecf20Sopenharmony_ci						+ RXE_DETH_BYTES
5878c2ecf20Sopenharmony_ci						+ RXE_IMMDT_BYTES,
5888c2ecf20Sopenharmony_ci		}
5898c2ecf20Sopenharmony_ci	},
5908c2ecf20Sopenharmony_ci	[IB_OPCODE_RD_SEND_ONLY]			= {
5918c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_RD_SEND_ONLY",
5928c2ecf20Sopenharmony_ci		.mask	= RXE_RDETH_MASK | RXE_DETH_MASK | RXE_PAYLOAD_MASK
5938c2ecf20Sopenharmony_ci				| RXE_REQ_MASK | RXE_COMP_MASK | RXE_RWR_MASK
5948c2ecf20Sopenharmony_ci				| RXE_SEND_MASK | RXE_START_MASK | RXE_END_MASK,
5958c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES + RXE_DETH_BYTES + RXE_RDETH_BYTES,
5968c2ecf20Sopenharmony_ci		.offset = {
5978c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
5988c2ecf20Sopenharmony_ci			[RXE_RDETH]	= RXE_BTH_BYTES,
5998c2ecf20Sopenharmony_ci			[RXE_DETH]	= RXE_BTH_BYTES
6008c2ecf20Sopenharmony_ci						+ RXE_RDETH_BYTES,
6018c2ecf20Sopenharmony_ci			[RXE_PAYLOAD]	= RXE_BTH_BYTES
6028c2ecf20Sopenharmony_ci						+ RXE_RDETH_BYTES
6038c2ecf20Sopenharmony_ci						+ RXE_DETH_BYTES,
6048c2ecf20Sopenharmony_ci		}
6058c2ecf20Sopenharmony_ci	},
6068c2ecf20Sopenharmony_ci	[IB_OPCODE_RD_SEND_ONLY_WITH_IMMEDIATE]		= {
6078c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_RD_SEND_ONLY_WITH_IMMEDIATE",
6088c2ecf20Sopenharmony_ci		.mask	= RXE_RDETH_MASK | RXE_DETH_MASK | RXE_IMMDT_MASK
6098c2ecf20Sopenharmony_ci				| RXE_PAYLOAD_MASK | RXE_REQ_MASK
6108c2ecf20Sopenharmony_ci				| RXE_COMP_MASK | RXE_RWR_MASK | RXE_SEND_MASK
6118c2ecf20Sopenharmony_ci				| RXE_START_MASK | RXE_END_MASK,
6128c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES + RXE_IMMDT_BYTES + RXE_DETH_BYTES
6138c2ecf20Sopenharmony_ci				+ RXE_RDETH_BYTES,
6148c2ecf20Sopenharmony_ci		.offset = {
6158c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
6168c2ecf20Sopenharmony_ci			[RXE_RDETH]	= RXE_BTH_BYTES,
6178c2ecf20Sopenharmony_ci			[RXE_DETH]	= RXE_BTH_BYTES
6188c2ecf20Sopenharmony_ci						+ RXE_RDETH_BYTES,
6198c2ecf20Sopenharmony_ci			[RXE_IMMDT]	= RXE_BTH_BYTES
6208c2ecf20Sopenharmony_ci						+ RXE_RDETH_BYTES
6218c2ecf20Sopenharmony_ci						+ RXE_DETH_BYTES,
6228c2ecf20Sopenharmony_ci			[RXE_PAYLOAD]	= RXE_BTH_BYTES
6238c2ecf20Sopenharmony_ci						+ RXE_RDETH_BYTES
6248c2ecf20Sopenharmony_ci						+ RXE_DETH_BYTES
6258c2ecf20Sopenharmony_ci						+ RXE_IMMDT_BYTES,
6268c2ecf20Sopenharmony_ci		}
6278c2ecf20Sopenharmony_ci	},
6288c2ecf20Sopenharmony_ci	[IB_OPCODE_RD_RDMA_WRITE_FIRST]		= {
6298c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_RD_RDMA_WRITE_FIRST",
6308c2ecf20Sopenharmony_ci		.mask	= RXE_RDETH_MASK | RXE_DETH_MASK | RXE_RETH_MASK
6318c2ecf20Sopenharmony_ci				| RXE_PAYLOAD_MASK | RXE_REQ_MASK
6328c2ecf20Sopenharmony_ci				| RXE_WRITE_MASK | RXE_START_MASK,
6338c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES + RXE_RETH_BYTES + RXE_DETH_BYTES
6348c2ecf20Sopenharmony_ci				+ RXE_RDETH_BYTES,
6358c2ecf20Sopenharmony_ci		.offset = {
6368c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
6378c2ecf20Sopenharmony_ci			[RXE_RDETH]	= RXE_BTH_BYTES,
6388c2ecf20Sopenharmony_ci			[RXE_DETH]	= RXE_BTH_BYTES
6398c2ecf20Sopenharmony_ci						+ RXE_RDETH_BYTES,
6408c2ecf20Sopenharmony_ci			[RXE_RETH]	= RXE_BTH_BYTES
6418c2ecf20Sopenharmony_ci						+ RXE_RDETH_BYTES
6428c2ecf20Sopenharmony_ci						+ RXE_DETH_BYTES,
6438c2ecf20Sopenharmony_ci			[RXE_PAYLOAD]	= RXE_BTH_BYTES
6448c2ecf20Sopenharmony_ci						+ RXE_RDETH_BYTES
6458c2ecf20Sopenharmony_ci						+ RXE_DETH_BYTES
6468c2ecf20Sopenharmony_ci						+ RXE_RETH_BYTES,
6478c2ecf20Sopenharmony_ci		}
6488c2ecf20Sopenharmony_ci	},
6498c2ecf20Sopenharmony_ci	[IB_OPCODE_RD_RDMA_WRITE_MIDDLE]		= {
6508c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_RD_RDMA_WRITE_MIDDLE",
6518c2ecf20Sopenharmony_ci		.mask	= RXE_RDETH_MASK | RXE_DETH_MASK | RXE_PAYLOAD_MASK
6528c2ecf20Sopenharmony_ci				| RXE_REQ_MASK | RXE_WRITE_MASK
6538c2ecf20Sopenharmony_ci				| RXE_MIDDLE_MASK,
6548c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES + RXE_DETH_BYTES + RXE_RDETH_BYTES,
6558c2ecf20Sopenharmony_ci		.offset = {
6568c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
6578c2ecf20Sopenharmony_ci			[RXE_RDETH]	= RXE_BTH_BYTES,
6588c2ecf20Sopenharmony_ci			[RXE_DETH]	= RXE_BTH_BYTES
6598c2ecf20Sopenharmony_ci						+ RXE_RDETH_BYTES,
6608c2ecf20Sopenharmony_ci			[RXE_PAYLOAD]	= RXE_BTH_BYTES
6618c2ecf20Sopenharmony_ci						+ RXE_RDETH_BYTES
6628c2ecf20Sopenharmony_ci						+ RXE_DETH_BYTES,
6638c2ecf20Sopenharmony_ci		}
6648c2ecf20Sopenharmony_ci	},
6658c2ecf20Sopenharmony_ci	[IB_OPCODE_RD_RDMA_WRITE_LAST]			= {
6668c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_RD_RDMA_WRITE_LAST",
6678c2ecf20Sopenharmony_ci		.mask	= RXE_RDETH_MASK | RXE_DETH_MASK | RXE_PAYLOAD_MASK
6688c2ecf20Sopenharmony_ci				| RXE_REQ_MASK | RXE_WRITE_MASK
6698c2ecf20Sopenharmony_ci				| RXE_END_MASK,
6708c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES + RXE_DETH_BYTES + RXE_RDETH_BYTES,
6718c2ecf20Sopenharmony_ci		.offset = {
6728c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
6738c2ecf20Sopenharmony_ci			[RXE_RDETH]	= RXE_BTH_BYTES,
6748c2ecf20Sopenharmony_ci			[RXE_DETH]	= RXE_BTH_BYTES
6758c2ecf20Sopenharmony_ci						+ RXE_RDETH_BYTES,
6768c2ecf20Sopenharmony_ci			[RXE_PAYLOAD]	= RXE_BTH_BYTES
6778c2ecf20Sopenharmony_ci						+ RXE_RDETH_BYTES
6788c2ecf20Sopenharmony_ci						+ RXE_DETH_BYTES,
6798c2ecf20Sopenharmony_ci		}
6808c2ecf20Sopenharmony_ci	},
6818c2ecf20Sopenharmony_ci	[IB_OPCODE_RD_RDMA_WRITE_LAST_WITH_IMMEDIATE]		= {
6828c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_RD_RDMA_WRITE_LAST_WITH_IMMEDIATE",
6838c2ecf20Sopenharmony_ci		.mask	= RXE_RDETH_MASK | RXE_DETH_MASK | RXE_IMMDT_MASK
6848c2ecf20Sopenharmony_ci				| RXE_PAYLOAD_MASK | RXE_REQ_MASK
6858c2ecf20Sopenharmony_ci				| RXE_WRITE_MASK | RXE_COMP_MASK | RXE_RWR_MASK
6868c2ecf20Sopenharmony_ci				| RXE_END_MASK,
6878c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES + RXE_IMMDT_BYTES + RXE_DETH_BYTES
6888c2ecf20Sopenharmony_ci				+ RXE_RDETH_BYTES,
6898c2ecf20Sopenharmony_ci		.offset = {
6908c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
6918c2ecf20Sopenharmony_ci			[RXE_RDETH]	= RXE_BTH_BYTES,
6928c2ecf20Sopenharmony_ci			[RXE_DETH]	= RXE_BTH_BYTES
6938c2ecf20Sopenharmony_ci						+ RXE_RDETH_BYTES,
6948c2ecf20Sopenharmony_ci			[RXE_IMMDT]	= RXE_BTH_BYTES
6958c2ecf20Sopenharmony_ci						+ RXE_RDETH_BYTES
6968c2ecf20Sopenharmony_ci						+ RXE_DETH_BYTES,
6978c2ecf20Sopenharmony_ci			[RXE_PAYLOAD]	= RXE_BTH_BYTES
6988c2ecf20Sopenharmony_ci						+ RXE_RDETH_BYTES
6998c2ecf20Sopenharmony_ci						+ RXE_DETH_BYTES
7008c2ecf20Sopenharmony_ci						+ RXE_IMMDT_BYTES,
7018c2ecf20Sopenharmony_ci		}
7028c2ecf20Sopenharmony_ci	},
7038c2ecf20Sopenharmony_ci	[IB_OPCODE_RD_RDMA_WRITE_ONLY]			= {
7048c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_RD_RDMA_WRITE_ONLY",
7058c2ecf20Sopenharmony_ci		.mask	= RXE_RDETH_MASK | RXE_DETH_MASK | RXE_RETH_MASK
7068c2ecf20Sopenharmony_ci				| RXE_PAYLOAD_MASK | RXE_REQ_MASK
7078c2ecf20Sopenharmony_ci				| RXE_WRITE_MASK | RXE_START_MASK
7088c2ecf20Sopenharmony_ci				| RXE_END_MASK,
7098c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES + RXE_RETH_BYTES + RXE_DETH_BYTES
7108c2ecf20Sopenharmony_ci				+ RXE_RDETH_BYTES,
7118c2ecf20Sopenharmony_ci		.offset = {
7128c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
7138c2ecf20Sopenharmony_ci			[RXE_RDETH]	= RXE_BTH_BYTES,
7148c2ecf20Sopenharmony_ci			[RXE_DETH]	= RXE_BTH_BYTES
7158c2ecf20Sopenharmony_ci						+ RXE_RDETH_BYTES,
7168c2ecf20Sopenharmony_ci			[RXE_RETH]	= RXE_BTH_BYTES
7178c2ecf20Sopenharmony_ci						+ RXE_RDETH_BYTES
7188c2ecf20Sopenharmony_ci						+ RXE_DETH_BYTES,
7198c2ecf20Sopenharmony_ci			[RXE_PAYLOAD]	= RXE_BTH_BYTES
7208c2ecf20Sopenharmony_ci						+ RXE_RDETH_BYTES
7218c2ecf20Sopenharmony_ci						+ RXE_DETH_BYTES
7228c2ecf20Sopenharmony_ci						+ RXE_RETH_BYTES,
7238c2ecf20Sopenharmony_ci		}
7248c2ecf20Sopenharmony_ci	},
7258c2ecf20Sopenharmony_ci	[IB_OPCODE_RD_RDMA_WRITE_ONLY_WITH_IMMEDIATE]		= {
7268c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_RD_RDMA_WRITE_ONLY_WITH_IMMEDIATE",
7278c2ecf20Sopenharmony_ci		.mask	= RXE_RDETH_MASK | RXE_DETH_MASK | RXE_RETH_MASK
7288c2ecf20Sopenharmony_ci				| RXE_IMMDT_MASK | RXE_PAYLOAD_MASK
7298c2ecf20Sopenharmony_ci				| RXE_REQ_MASK | RXE_WRITE_MASK
7308c2ecf20Sopenharmony_ci				| RXE_COMP_MASK | RXE_RWR_MASK
7318c2ecf20Sopenharmony_ci				| RXE_START_MASK | RXE_END_MASK,
7328c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES + RXE_IMMDT_BYTES + RXE_RETH_BYTES
7338c2ecf20Sopenharmony_ci				+ RXE_DETH_BYTES + RXE_RDETH_BYTES,
7348c2ecf20Sopenharmony_ci		.offset = {
7358c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
7368c2ecf20Sopenharmony_ci			[RXE_RDETH]	= RXE_BTH_BYTES,
7378c2ecf20Sopenharmony_ci			[RXE_DETH]	= RXE_BTH_BYTES
7388c2ecf20Sopenharmony_ci						+ RXE_RDETH_BYTES,
7398c2ecf20Sopenharmony_ci			[RXE_RETH]	= RXE_BTH_BYTES
7408c2ecf20Sopenharmony_ci						+ RXE_RDETH_BYTES
7418c2ecf20Sopenharmony_ci						+ RXE_DETH_BYTES,
7428c2ecf20Sopenharmony_ci			[RXE_IMMDT]	= RXE_BTH_BYTES
7438c2ecf20Sopenharmony_ci						+ RXE_RDETH_BYTES
7448c2ecf20Sopenharmony_ci						+ RXE_DETH_BYTES
7458c2ecf20Sopenharmony_ci						+ RXE_RETH_BYTES,
7468c2ecf20Sopenharmony_ci			[RXE_PAYLOAD]	= RXE_BTH_BYTES
7478c2ecf20Sopenharmony_ci						+ RXE_RDETH_BYTES
7488c2ecf20Sopenharmony_ci						+ RXE_DETH_BYTES
7498c2ecf20Sopenharmony_ci						+ RXE_RETH_BYTES
7508c2ecf20Sopenharmony_ci						+ RXE_IMMDT_BYTES,
7518c2ecf20Sopenharmony_ci		}
7528c2ecf20Sopenharmony_ci	},
7538c2ecf20Sopenharmony_ci	[IB_OPCODE_RD_RDMA_READ_REQUEST]			= {
7548c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_RD_RDMA_READ_REQUEST",
7558c2ecf20Sopenharmony_ci		.mask	= RXE_RDETH_MASK | RXE_DETH_MASK | RXE_RETH_MASK
7568c2ecf20Sopenharmony_ci				| RXE_REQ_MASK | RXE_READ_MASK
7578c2ecf20Sopenharmony_ci				| RXE_START_MASK | RXE_END_MASK,
7588c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES + RXE_RETH_BYTES + RXE_DETH_BYTES
7598c2ecf20Sopenharmony_ci				+ RXE_RDETH_BYTES,
7608c2ecf20Sopenharmony_ci		.offset = {
7618c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
7628c2ecf20Sopenharmony_ci			[RXE_RDETH]	= RXE_BTH_BYTES,
7638c2ecf20Sopenharmony_ci			[RXE_DETH]	= RXE_BTH_BYTES
7648c2ecf20Sopenharmony_ci						+ RXE_RDETH_BYTES,
7658c2ecf20Sopenharmony_ci			[RXE_RETH]	= RXE_BTH_BYTES
7668c2ecf20Sopenharmony_ci						+ RXE_RDETH_BYTES
7678c2ecf20Sopenharmony_ci						+ RXE_DETH_BYTES,
7688c2ecf20Sopenharmony_ci			[RXE_PAYLOAD]	= RXE_BTH_BYTES
7698c2ecf20Sopenharmony_ci						+ RXE_RETH_BYTES
7708c2ecf20Sopenharmony_ci						+ RXE_DETH_BYTES
7718c2ecf20Sopenharmony_ci						+ RXE_RDETH_BYTES,
7728c2ecf20Sopenharmony_ci		}
7738c2ecf20Sopenharmony_ci	},
7748c2ecf20Sopenharmony_ci	[IB_OPCODE_RD_RDMA_READ_RESPONSE_FIRST]		= {
7758c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_RD_RDMA_READ_RESPONSE_FIRST",
7768c2ecf20Sopenharmony_ci		.mask	= RXE_RDETH_MASK | RXE_AETH_MASK
7778c2ecf20Sopenharmony_ci				| RXE_PAYLOAD_MASK | RXE_ACK_MASK
7788c2ecf20Sopenharmony_ci				| RXE_START_MASK,
7798c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES + RXE_AETH_BYTES + RXE_RDETH_BYTES,
7808c2ecf20Sopenharmony_ci		.offset = {
7818c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
7828c2ecf20Sopenharmony_ci			[RXE_RDETH]	= RXE_BTH_BYTES,
7838c2ecf20Sopenharmony_ci			[RXE_AETH]	= RXE_BTH_BYTES
7848c2ecf20Sopenharmony_ci						+ RXE_RDETH_BYTES,
7858c2ecf20Sopenharmony_ci			[RXE_PAYLOAD]	= RXE_BTH_BYTES
7868c2ecf20Sopenharmony_ci						+ RXE_RDETH_BYTES
7878c2ecf20Sopenharmony_ci						+ RXE_AETH_BYTES,
7888c2ecf20Sopenharmony_ci		}
7898c2ecf20Sopenharmony_ci	},
7908c2ecf20Sopenharmony_ci	[IB_OPCODE_RD_RDMA_READ_RESPONSE_MIDDLE]		= {
7918c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_RD_RDMA_READ_RESPONSE_MIDDLE",
7928c2ecf20Sopenharmony_ci		.mask	= RXE_RDETH_MASK | RXE_PAYLOAD_MASK | RXE_ACK_MASK
7938c2ecf20Sopenharmony_ci				| RXE_MIDDLE_MASK,
7948c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES + RXE_RDETH_BYTES,
7958c2ecf20Sopenharmony_ci		.offset = {
7968c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
7978c2ecf20Sopenharmony_ci			[RXE_RDETH]	= RXE_BTH_BYTES,
7988c2ecf20Sopenharmony_ci			[RXE_PAYLOAD]	= RXE_BTH_BYTES
7998c2ecf20Sopenharmony_ci						+ RXE_RDETH_BYTES,
8008c2ecf20Sopenharmony_ci		}
8018c2ecf20Sopenharmony_ci	},
8028c2ecf20Sopenharmony_ci	[IB_OPCODE_RD_RDMA_READ_RESPONSE_LAST]		= {
8038c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_RD_RDMA_READ_RESPONSE_LAST",
8048c2ecf20Sopenharmony_ci		.mask	= RXE_RDETH_MASK | RXE_AETH_MASK | RXE_PAYLOAD_MASK
8058c2ecf20Sopenharmony_ci				| RXE_ACK_MASK | RXE_END_MASK,
8068c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES + RXE_AETH_BYTES + RXE_RDETH_BYTES,
8078c2ecf20Sopenharmony_ci		.offset = {
8088c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
8098c2ecf20Sopenharmony_ci			[RXE_RDETH]	= RXE_BTH_BYTES,
8108c2ecf20Sopenharmony_ci			[RXE_AETH]	= RXE_BTH_BYTES
8118c2ecf20Sopenharmony_ci						+ RXE_RDETH_BYTES,
8128c2ecf20Sopenharmony_ci			[RXE_PAYLOAD]	= RXE_BTH_BYTES
8138c2ecf20Sopenharmony_ci						+ RXE_RDETH_BYTES
8148c2ecf20Sopenharmony_ci						+ RXE_AETH_BYTES,
8158c2ecf20Sopenharmony_ci		}
8168c2ecf20Sopenharmony_ci	},
8178c2ecf20Sopenharmony_ci	[IB_OPCODE_RD_RDMA_READ_RESPONSE_ONLY]		= {
8188c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_RD_RDMA_READ_RESPONSE_ONLY",
8198c2ecf20Sopenharmony_ci		.mask	= RXE_RDETH_MASK | RXE_AETH_MASK | RXE_PAYLOAD_MASK
8208c2ecf20Sopenharmony_ci				| RXE_ACK_MASK | RXE_START_MASK | RXE_END_MASK,
8218c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES + RXE_AETH_BYTES + RXE_RDETH_BYTES,
8228c2ecf20Sopenharmony_ci		.offset = {
8238c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
8248c2ecf20Sopenharmony_ci			[RXE_RDETH]	= RXE_BTH_BYTES,
8258c2ecf20Sopenharmony_ci			[RXE_AETH]	= RXE_BTH_BYTES
8268c2ecf20Sopenharmony_ci						+ RXE_RDETH_BYTES,
8278c2ecf20Sopenharmony_ci			[RXE_PAYLOAD]	= RXE_BTH_BYTES
8288c2ecf20Sopenharmony_ci						+ RXE_RDETH_BYTES
8298c2ecf20Sopenharmony_ci						+ RXE_AETH_BYTES,
8308c2ecf20Sopenharmony_ci		}
8318c2ecf20Sopenharmony_ci	},
8328c2ecf20Sopenharmony_ci	[IB_OPCODE_RD_ACKNOWLEDGE]			= {
8338c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_RD_ACKNOWLEDGE",
8348c2ecf20Sopenharmony_ci		.mask	= RXE_RDETH_MASK | RXE_AETH_MASK | RXE_ACK_MASK
8358c2ecf20Sopenharmony_ci				| RXE_START_MASK | RXE_END_MASK,
8368c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES + RXE_AETH_BYTES + RXE_RDETH_BYTES,
8378c2ecf20Sopenharmony_ci		.offset = {
8388c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
8398c2ecf20Sopenharmony_ci			[RXE_RDETH]	= RXE_BTH_BYTES,
8408c2ecf20Sopenharmony_ci			[RXE_AETH]	= RXE_BTH_BYTES
8418c2ecf20Sopenharmony_ci						+ RXE_RDETH_BYTES,
8428c2ecf20Sopenharmony_ci		}
8438c2ecf20Sopenharmony_ci	},
8448c2ecf20Sopenharmony_ci	[IB_OPCODE_RD_ATOMIC_ACKNOWLEDGE]			= {
8458c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_RD_ATOMIC_ACKNOWLEDGE",
8468c2ecf20Sopenharmony_ci		.mask	= RXE_RDETH_MASK | RXE_AETH_MASK | RXE_ATMACK_MASK
8478c2ecf20Sopenharmony_ci				| RXE_ACK_MASK | RXE_START_MASK | RXE_END_MASK,
8488c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES + RXE_ATMACK_BYTES + RXE_AETH_BYTES
8498c2ecf20Sopenharmony_ci				+ RXE_RDETH_BYTES,
8508c2ecf20Sopenharmony_ci		.offset = {
8518c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
8528c2ecf20Sopenharmony_ci			[RXE_RDETH]	= RXE_BTH_BYTES,
8538c2ecf20Sopenharmony_ci			[RXE_AETH]	= RXE_BTH_BYTES
8548c2ecf20Sopenharmony_ci						+ RXE_RDETH_BYTES,
8558c2ecf20Sopenharmony_ci			[RXE_ATMACK]	= RXE_BTH_BYTES
8568c2ecf20Sopenharmony_ci						+ RXE_RDETH_BYTES
8578c2ecf20Sopenharmony_ci						+ RXE_AETH_BYTES,
8588c2ecf20Sopenharmony_ci		}
8598c2ecf20Sopenharmony_ci	},
8608c2ecf20Sopenharmony_ci	[IB_OPCODE_RD_COMPARE_SWAP]			= {
8618c2ecf20Sopenharmony_ci		.name	= "RD_COMPARE_SWAP",
8628c2ecf20Sopenharmony_ci		.mask	= RXE_RDETH_MASK | RXE_DETH_MASK | RXE_ATMETH_MASK
8638c2ecf20Sopenharmony_ci				| RXE_REQ_MASK | RXE_ATOMIC_MASK
8648c2ecf20Sopenharmony_ci				| RXE_START_MASK | RXE_END_MASK,
8658c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES + RXE_ATMETH_BYTES + RXE_DETH_BYTES
8668c2ecf20Sopenharmony_ci				+ RXE_RDETH_BYTES,
8678c2ecf20Sopenharmony_ci		.offset = {
8688c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
8698c2ecf20Sopenharmony_ci			[RXE_RDETH]	= RXE_BTH_BYTES,
8708c2ecf20Sopenharmony_ci			[RXE_DETH]	= RXE_BTH_BYTES
8718c2ecf20Sopenharmony_ci						+ RXE_RDETH_BYTES,
8728c2ecf20Sopenharmony_ci			[RXE_ATMETH]	= RXE_BTH_BYTES
8738c2ecf20Sopenharmony_ci						+ RXE_RDETH_BYTES
8748c2ecf20Sopenharmony_ci						+ RXE_DETH_BYTES,
8758c2ecf20Sopenharmony_ci			[RXE_PAYLOAD]	= RXE_BTH_BYTES +
8768c2ecf20Sopenharmony_ci						+ RXE_ATMETH_BYTES
8778c2ecf20Sopenharmony_ci						+ RXE_DETH_BYTES +
8788c2ecf20Sopenharmony_ci						+ RXE_RDETH_BYTES,
8798c2ecf20Sopenharmony_ci		}
8808c2ecf20Sopenharmony_ci	},
8818c2ecf20Sopenharmony_ci	[IB_OPCODE_RD_FETCH_ADD]			= {
8828c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_RD_FETCH_ADD",
8838c2ecf20Sopenharmony_ci		.mask	= RXE_RDETH_MASK | RXE_DETH_MASK | RXE_ATMETH_MASK
8848c2ecf20Sopenharmony_ci				| RXE_REQ_MASK | RXE_ATOMIC_MASK
8858c2ecf20Sopenharmony_ci				| RXE_START_MASK | RXE_END_MASK,
8868c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES + RXE_ATMETH_BYTES + RXE_DETH_BYTES
8878c2ecf20Sopenharmony_ci				+ RXE_RDETH_BYTES,
8888c2ecf20Sopenharmony_ci		.offset = {
8898c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
8908c2ecf20Sopenharmony_ci			[RXE_RDETH]	= RXE_BTH_BYTES,
8918c2ecf20Sopenharmony_ci			[RXE_DETH]	= RXE_BTH_BYTES
8928c2ecf20Sopenharmony_ci						+ RXE_RDETH_BYTES,
8938c2ecf20Sopenharmony_ci			[RXE_ATMETH]	= RXE_BTH_BYTES
8948c2ecf20Sopenharmony_ci						+ RXE_RDETH_BYTES
8958c2ecf20Sopenharmony_ci						+ RXE_DETH_BYTES,
8968c2ecf20Sopenharmony_ci			[RXE_PAYLOAD]	= RXE_BTH_BYTES +
8978c2ecf20Sopenharmony_ci						+ RXE_ATMETH_BYTES
8988c2ecf20Sopenharmony_ci						+ RXE_DETH_BYTES +
8998c2ecf20Sopenharmony_ci						+ RXE_RDETH_BYTES,
9008c2ecf20Sopenharmony_ci		}
9018c2ecf20Sopenharmony_ci	},
9028c2ecf20Sopenharmony_ci
9038c2ecf20Sopenharmony_ci	/* UD */
9048c2ecf20Sopenharmony_ci	[IB_OPCODE_UD_SEND_ONLY]			= {
9058c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_UD_SEND_ONLY",
9068c2ecf20Sopenharmony_ci		.mask	= RXE_DETH_MASK | RXE_PAYLOAD_MASK | RXE_REQ_MASK
9078c2ecf20Sopenharmony_ci				| RXE_COMP_MASK | RXE_RWR_MASK | RXE_SEND_MASK
9088c2ecf20Sopenharmony_ci				| RXE_START_MASK | RXE_END_MASK,
9098c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES + RXE_DETH_BYTES,
9108c2ecf20Sopenharmony_ci		.offset = {
9118c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
9128c2ecf20Sopenharmony_ci			[RXE_DETH]	= RXE_BTH_BYTES,
9138c2ecf20Sopenharmony_ci			[RXE_PAYLOAD]	= RXE_BTH_BYTES
9148c2ecf20Sopenharmony_ci						+ RXE_DETH_BYTES,
9158c2ecf20Sopenharmony_ci		}
9168c2ecf20Sopenharmony_ci	},
9178c2ecf20Sopenharmony_ci	[IB_OPCODE_UD_SEND_ONLY_WITH_IMMEDIATE]		= {
9188c2ecf20Sopenharmony_ci		.name	= "IB_OPCODE_UD_SEND_ONLY_WITH_IMMEDIATE",
9198c2ecf20Sopenharmony_ci		.mask	= RXE_DETH_MASK | RXE_IMMDT_MASK | RXE_PAYLOAD_MASK
9208c2ecf20Sopenharmony_ci				| RXE_REQ_MASK | RXE_COMP_MASK | RXE_RWR_MASK
9218c2ecf20Sopenharmony_ci				| RXE_SEND_MASK | RXE_START_MASK | RXE_END_MASK,
9228c2ecf20Sopenharmony_ci		.length = RXE_BTH_BYTES + RXE_IMMDT_BYTES + RXE_DETH_BYTES,
9238c2ecf20Sopenharmony_ci		.offset = {
9248c2ecf20Sopenharmony_ci			[RXE_BTH]	= 0,
9258c2ecf20Sopenharmony_ci			[RXE_DETH]	= RXE_BTH_BYTES,
9268c2ecf20Sopenharmony_ci			[RXE_IMMDT]	= RXE_BTH_BYTES
9278c2ecf20Sopenharmony_ci						+ RXE_DETH_BYTES,
9288c2ecf20Sopenharmony_ci			[RXE_PAYLOAD]	= RXE_BTH_BYTES
9298c2ecf20Sopenharmony_ci						+ RXE_DETH_BYTES
9308c2ecf20Sopenharmony_ci						+ RXE_IMMDT_BYTES,
9318c2ecf20Sopenharmony_ci		}
9328c2ecf20Sopenharmony_ci	},
9338c2ecf20Sopenharmony_ci
9348c2ecf20Sopenharmony_ci};
935