3. 数据结构
以下是数据结构及其简要描述
- __FILE
- dpa_stats_capabilities
- dpa_stats_perf_cumul_list
- dpa_stats_perf_event_list
- dpa_stats_perf_event_sample
- dpa_stats_process_info
- dpa_stats_process_list
- dpa_stats_thread_cumul_info
- dpa_stats_thread_info
- dpa_stats_thread_list
- flexio_affinity
- flexio_app_attr
- flexio_cmdq_attr
- flexio_cq_attr
- flexio_dev_cqe64
- flexio_dev_eqe
- flexio_dev_mini_cqe64
- flexio_dev_sqe_seg
- flexio_dev_wqe_atomic_seg
- flexio_dev_wqe_ctrl_seg
- flexio_dev_wqe_eth_seg
- flexio_dev_wqe_inline_data_seg
- flexio_dev_wqe_inline_send_data_seg
- flexio_dev_wqe_mem_ptr_send_data_seg
- flexio_dev_wqe_rcv_data_seg
- flexio_dev_wqe_rdma_seg
- flexio_dev_wqe_shared_receive_seg
- flexio_dev_wqe_transpose_seg
- flexio_event_handler_attr
- flexio_heap_mem_info
- flexio_mkey_attr
- flexio_msg_stream_attr_t
- flexio_outbox_attr
- flexio_process_attr
- flexio_qmem
- flexio_qp_attr
- flexio_qp_attr_opt_param_mask
- flexio_wq_attr
- flexio_wq_rq_attr
- flexio_wq_sq_attr
- spinlock_s
[ DPAToolsSDK ]
描述单个进程结构的字段。
公共变量
- uint8_t dpa_supported
- uint32_t performance_sample_type
- uint8_t process_performance_counters
变量
- uint8_t dpa_stats_capabilities::dpa_supported [继承]
如果支持 DPA 功能,则为 1
- uint32_t dpa_stats_capabilities::performance_sample_type [继承]
指示支持哪些类型的性能计数器的位能力
- uint8_t dpa_stats_capabilities::process_performance_counters [继承]
如果支持性能计数器,则为 1
[ DPAToolsSDK ]
描述累积信息列表的字段。
公共变量
- dpa_stats_thread_cumul_info * samples
- uint32_t samples_num
变量
- dpa_stats_thread_cumul_info * dpa_stats_perf_cumul_list::samples [继承]
线程累积信息样本数组,大小为 samples_num
- uint32_t dpa_stats_perf_cumul_list::samples_num [继承]
samples 数组的大小
[ DPAToolsSDK ]
描述性能事件跟踪器列表的字段。
公共变量
- dpa_stats_perf_event_sample * samples
- uint32_t samples_num
变量
- dpa_stats_perf_event_sample * dpa_stats_perf_event_list::samples [继承]
性能事件样本数组,大小为 samples_num
- uint32_t dpa_stats_perf_event_list::samples_num [继承]
samples 数组的大小
[ DPAToolsSDK ]
描述单个性能事件跟踪器结构的字段。
公共变量
- uint64_t cycles
- uint32_t dpa_process_id
- uint32_t dpa_thread_id
- uint16_t eu_id
- uint32_t instructions
- uint16_t sample_id_in_eu
- uint64_t time
- enumdpa_stats_event_sample_type type
变量
- uint64_t dpa_stats_perf_event_sample::cycles [继承]
执行单元总周期数的标记
- uint32_t dpa_stats_perf_event_sample::dpa_process_id [继承]
全局 DPA 进程 ID
- uint32_t dpa_stats_perf_event_sample::dpa_thread_id [继承]
全局 DPA 线程 ID
- uint16_t dpa_stats_perf_event_sample::eu_id [继承]
EU ID
- uint32_t dpa_stats_perf_event_sample::instructions [继承]
此 DPA EU 的指令总数的标记
- uint16_t dpa_stats_perf_event_sample::sample_id_in_eu [继承]
每个执行单元的运行样本 ID。单个 sample_id 分配给计划内和计划外样本
- uint64_t dpa_stats_perf_event_sample::time [继承]
时间戳,单位为微秒
- enumdpa_stats_event_sample_typedpa_stats_perf_event_sample::type [继承]
事件样本的类型
[ DPAToolsSDK ]
描述单个进程结构的字段。
公共变量
- uint32_t dpa_process_id
- uint32_t num_of_threads
- char process_name[DPA_STATS_PROCESS_NAME_SIZE+1]
变量
- uint32_t dpa_stats_process_info::dpa_process_id [继承]
全局 DPA 进程 ID
- uint32_t dpa_stats_process_info::num_of_threads [继承]
进程中的线程数
- char dpa_stats_process_info::process_name[DPA_STATS_PROCESS_NAME_SIZE+1] [继承]
进程的名称
[ DPAToolsSDK ]
描述进程列表的字段。
公共变量
- uint32_t process_num
- dpa_stats_process_info * processes
变量
- uint32_t dpa_stats_process_list::process_num [继承]
进程信息数组的大小
- dpa_stats_process_info * dpa_stats_process_list::processes [继承]
进程信息数组,大小为 process_num
[ DPAToolsSDK ]
描述单个累积信息结构的字段。
公共变量
- uint64_t cycles
- uint32_t dpa_process_id
- uint32_t dpa_thread_id
- uint64_t instructions
- uint64_t num_executions
- uint64_t time
变量
- uint64_t dpa_stats_thread_cumul_info::cycles [继承]
线程使用的执行单元总周期数
- uint32_t dpa_stats_thread_cumul_info::dpa_process_id [继承]
全局 DPA 进程 ID
- uint32_t dpa_stats_thread_cumul_info::dpa_thread_id [继承]
全局 DPA 线程 ID
- uint64_t dpa_stats_thread_cumul_info::instructions [继承]
线程执行的指令总数
- uint64_t dpa_stats_thread_cumul_info::num_executions [继承]
线程调用总数
- uint64_t dpa_stats_thread_cumul_info::time [继承]
线程处于活动状态的总时间(以时钟周期为单位)
[ DPAToolsSDK ]
描述单个线程结构的字段。
公共变量
- uint32_t dpa_process_id
- uint32_t dpa_thread_id
- char thread_name[DPA_STATS_THREAD_NAME_SIZE+1]
变量
- uint32_t dpa_stats_thread_info::dpa_process_id [继承]
全局 DPA 进程 ID
- uint32_t dpa_stats_thread_info::dpa_thread_id [继承]
全局 DPA 线程 ID
- char dpa_stats_thread_info::thread_name[DPA_STATS_THREAD_NAME_SIZE+1] [继承]
线程的名称
[ DPAToolsSDK ]
描述线程列表的字段。
公共变量
- dpa_stats_thread_info * threads
- uint32_t threads_num
变量
- dpa_stats_thread_info * dpa_stats_thread_list::threads [继承]
线程信息数组,大小为 threads_num
- uint32_t dpa_stats_thread_list::threads_num [继承]
线程信息数组的大小
[ Flex IO SDK host ]
描述 Flex IO 线程亲和性信息。
公共变量
- uint32_t id
- enumflexio_affinity_type type
变量
- uint32_t flexio_affinity::id [继承]
所选资源的 ID(EU / DPA EU 组)。如果亲和性类型设置为 none,则保留。
- enumflexio_affinity_typeflexio_affinity::type [继承]
用于 Flex IO 线程的亲和性类型(none、strict 或 group)。
[ Flex IO SDK host ]
描述用于创建 Flex IO 应用程序的进程属性。
公共变量
- size_t app_bsize
- const char * app_name
- void * app_ptr
- uint64_t dpa_api_version
- uint64_t * flexio_dev_versions
- size_t flexio_dev_versions_len_size
- size_t sig_bsize
- void * sig_ptr
变量
- size_t flexio_app_attr::app_bsize [继承]
DPA 应用程序大小(字节)。
- const char * flexio_app_attr::app_name [继承]
DPA 应用程序名称。
- void * flexio_app_attr::app_ptr [继承]
指向保存 DPA 应用程序的缓冲区的指针。
- uint64_t flexio_app_attr::dpa_api_version [继承]
RTOS 版本。
- uint64_t * flexio_app_attr::flexio_dev_versions [继承]
flexio_dev_versions 数组。
- size_t flexio_app_attr::flexio_dev_versions_len_size [继承]
flexio_dev_versions 数组的长度。
- size_t flexio_app_attr::sig_bsize [继承]
DPA 应用程序签名缓冲区大小(字节)。sig_bsize == 0 表示没有签名。
- void * flexio_app_attr::sig_ptr [继承]
指向保存应用程序签名的缓冲区的指针。
[ Flex IO SDK host ]
描述用于创建 Flex IO 命令队列(异步 RPC)的进程属性。
公共变量
- int batch_size
- enumflexio_cmdq_state state
- int workers
变量
- int flexio_cmdq_attr::batch_size [继承]
每次调用线程要执行完成的任务数。
- enumflexio_cmdq_stateflexio_cmdq_attr::state [继承]
命令队列初始状态。
- int flexio_cmdq_attr::workers [继承]
可用工作线程数,每个工作线程在单次调用中最多可以处理 batch_size 个任务。
[ Flex IO SDK host ]
描述用于创建 Flex IO CQ 的属性。
公共变量
- uint8_t always_armed
- bool cc
- flexio_uintptr_t cq_dbr_daddr
- uint16_t cq_max_count
- uint16_t cq_period
- enumflexio_cq_period_mode cq_period_mode
- struct flexio_qmem cq_ring_qmem
- enum flexio_cqe_comp_format cqe_comp_format
- enumflexio_cqe_comp_type cqe_comp_type
- uint8_t element_type
- uint32_t emulated_eqn
- uint8_t log_cq_depth
- bool no_arm
- uint8_t overrun_ignore
- flexio_thread * thread
- void * uar_base_addr
- uint32_t uar_id
变量
- uint8_t flexio_cq_attr::always_armed [继承]
始终为创建的 CQ 激活的指示
- bool flexio_cq_attr::cc [继承]
为创建的 CQ 启用折叠 CQE 的指示。
- flexio_uintptr_tflexio_cq_attr::cq_dbr_daddr [继承]
为创建的 CQ 提供的 DBR 内存地址。
- uint16_t flexio_cq_attr::cq_max_count [继承]
CQE 调解最大计数(创建事件之前的 CQE 数量)。
- uint16_t flexio_cq_attr::cq_period [继承]
CQE 调解周期(创建事件之前的微秒数)。
- enumflexio_cq_period_modeflexio_cq_attr::cq_period_mode [inherited]
CQE 调速周期模式(按 CQE 或按事件)。
- struct flexio_qmemflexio_cq_attr::cq_ring_qmem [inherited]
为创建的 CQ 提供的环形内存信息。
- enum flexio_cqe_comp_format flexio_cq_attr::cqe_comp_format [inherited]
CQE 压缩迷你 CQE 格式。
- enumflexio_cqe_comp_typeflexio_cq_attr::cqe_comp_type [inherited]
用于 CQ 的 CQE 压缩类型。
- uint8_t flexio_cq_attr::element_type [inherited]
附加到创建的 CQ 的元素的类型(线程、EQ、无、模拟 EQ)。
- uint32_t flexio_cq_attr::emulated_eqn [inherited]
要附加到创建的 CQ 的模拟 EQ 编号
- uint8_t flexio_cq_attr::log_cq_depth [inherited]
为创建的 CQ 记录的条目数。
- bool flexio_cq_attr::no_arm [inherited]
指示在创建时不激活 CQ。
- uint8_t flexio_cq_attr::overrun_ignore [inherited]
指示忽略为创建的 CQ 发生的溢出。
- flexio_thread * flexio_cq_attr::thread [inherited]
要附加到创建的 CQ 的线程对象(仅对元素类型线程有效)。
- void * flexio_cq_attr::uar_base_addr [inherited]
CQ UAR 基地址,仅与 devx UAR 相关,否则必须为 NULL。
- uint32_t flexio_cq_attr::uar_id [inherited]
CQ UAR ID(主机队列的 devx UAR ID,否则为 flexio_uar)。
[ Flex IO SDK 设备队列类型 ]
描述 Flex IO 设备 CQE。
公共变量
- __be32 byte_cnt
- __be16 csum_ok
- __be32 err_syndrome
- __be32 imm_inval_pkey
- uint8_t op_own
- __be32 qpn
- uint8_t qpn24[3]
- __be32 rsvd
- __be32 rsvd00[5]
- __be32 rsvd14[2]
- uint8_t rsvd22[2]
- __be32 rsvd48
- uint8_t signature
- uint8_t sop_rdrop
- __be32 srqn_uidx
- __be16 wqe_counter
变量
- __be32 flexio_dev_cqe64::byte_cnt [inherited]
0Bh - 字节计数。
- __be16 flexio_dev_cqe64::csum_ok [inherited]
05h 16..31 - 校验和 OK 位。
- __be32 flexio_dev_cqe64::err_syndrome [inherited]
0Dh 错误综合征
- __be32 flexio_dev_cqe64::imm_inval_pkey [inherited]
09h - 立即 / 无效密钥 / pkey
- uint8_t flexio_dev_cqe64::op_own [inherited]
0Fh 0 - 所有权位。
- __be32 flexio_dev_cqe64::qpn [inherited]
0Eh - QPN。
- uint8_t flexio_dev_cqe64::qpn24[3] [inherited]
0Eh 0..23 - 24 位 qpn
- __be32 flexio_dev_cqe64::rsvd [inherited]
0Ah - 保留。
- __be32 flexio_dev_cqe64::rsvd00[5] [inherited]
00h..04h - 保留。
- __be32 flexio_dev_cqe64::rsvd14[2] [inherited]
06h..07h - 保留。
- uint8_t flexio_dev_cqe64::rsvd22[2] [inherited]
05h 0..15 - 保留。
- __be32 flexio_dev_cqe64::rsvd48 [inherited]
0Ch.保留。
- uint8_t flexio_dev_cqe64::signature [inherited]
0Fh 8..15 - 签名/有效性。
- uint8_t flexio_dev_cqe64::sop_rdrop [inherited]
0Eh 24..31 - send_wqe_opcode/rx_drop_counter
- __be32 flexio_dev_cqe64::srqn_uidx [inherited]
08h - SRQ 编号或用户索引。
- __be16 flexio_dev_cqe64::wqe_counter [inherited]
0Fh 16..31 - WQE 计数器。
[ Flex IO SDK 设备队列类型 ]
描述 Flex IO 设备 EQE。
公共变量
- __be32 cqn
- flexio_dev_eqe::@10 event_data
- uint8_t owner
- __be32 rsvd00[6]
- uint8_t rsvd00
- uint8_t rsvd02
- __be16 rsvd3c
- uint8_t rsvd4[28]
- uint8_t signature
- uint8_t sub_type
- uint8_t type
变量
- __be32 flexio_dev_eqe::cqn [inherited]
18h 24 lsb - CQN。
- flexio_dev_eqe::@10 flexio_dev_eqe::event_data [inherited]
20h - 事件数据。
- uint8_t flexio_dev_eqe::owner [inherited]
3Fh - 所有者。
- __be32 flexio_dev_eqe::rsvd00[6] [inherited]
00h..17h - 保留。
- uint8_t flexio_dev_eqe::rsvd00 [inherited]
00h - 保留。
- uint8_t flexio_dev_eqe::rsvd02 [inherited]
02h - 保留。
- __be16 flexio_dev_eqe::rsvd3c [inherited]
3Ch - 保留。
- uint8_t flexio_dev_eqe::rsvd4[28] [inherited]
04h..1fh - 保留。
- uint8_t flexio_dev_eqe::signature [inherited]
3Eh - 签名。
- uint8_t flexio_dev_eqe::sub_type [inherited]
03h - 子类型。
- uint8_t flexio_dev_eqe::type [inherited]
01h - EQE 类型。
[ Flex IO SDK 设备队列类型 ]
描述 Flex IO 设备压缩 CQE。
公共变量
- __be64 mini_cqe[7]
- uint8_t num_and_type
- uint8_t rsvd0[6]
- uint8_t validity_iteration_count
变量
- __be64 flexio_dev_mini_cqe64::mini_cqe[7] [inherited]
00h..37h 迷你 cqe 数组。
- uint8_t flexio_dev_mini_cqe64::num_and_type [inherited]
3fh..3fh 迷你 cqe 的数量,迷你 cqe 格式。
- uint8_t flexio_dev_mini_cqe64::rsvd0[6] [inherited]
38h..3dh 迷你 cqe 7。
- uint8_t flexio_dev_mini_cqe64::validity_iteration_count [inherited]
3eh..3eh 有效性迭代计数。
[ Flex IO SDK 设备队列类型 ]
描述 Flex IO 设备发送 WQE 段。一次只能设置一个段。
公共变量
- struct flexio_dev_wqe_atomic_seg atomic
- struct flexio_dev_wqe_ctrl_seg ctrl
- struct flexio_dev_wqe_eth_seg eth
- struct flexio_dev_wqe_inline_data_seg inline_data
- struct flexio_dev_wqe_inline_send_data_seg inline_send_data
- struct flexio_dev_wqe_mem_ptr_send_data_seg mem_ptr_send_data
- struct flexio_dev_wqe_rdma_seg rdma
- struct flexio_dev_wqe_shared_receive_seg shared_receive
- struct flexio_dev_wqe_transpose_seg transpose
变量
- struct flexio_dev_wqe_atomic_segflexio_dev_sqe_seg::atomic [inherited]
原子段。
- struct flexio_dev_wqe_ctrl_segflexio_dev_sqe_seg::ctrl [inherited]
控制段。
- struct flexio_dev_wqe_eth_segflexio_dev_sqe_seg::eth [inherited]
以太网段。
- struct flexio_dev_wqe_inline_data_segflexio_dev_sqe_seg::inline_data [inherited]
内联数据段。
- struct flexio_dev_wqe_inline_send_data_segflexio_dev_sqe_seg::inline_send_data [inherited]
内联发送数据段。
- struct flexio_dev_wqe_mem_ptr_send_data_segflexio_dev_sqe_seg::mem_ptr_send_data [inherited]
内存指针发送数据段。
- struct flexio_dev_wqe_rdma_segflexio_dev_sqe_seg::rdma [inherited]
RDMA 段。
- struct flexio_dev_wqe_shared_receive_segflexio_dev_sqe_seg::shared_receive [inherited]
共享接收段。
- struct flexio_dev_wqe_transpose_segflexio_dev_sqe_seg::transpose [inherited]
转置段。
[ Flex IO SDK 设备队列类型 ]
描述 Flex IO 设备 WQE ATOMIC 段。
公共变量
- __be64 compare_data
- __be64 swap_or_add_data
变量
- __be64 flexio_dev_wqe_atomic_seg::compare_data [inherited]
02h..03h - 比较操作数据。
- __be64 flexio_dev_wqe_atomic_seg::swap_or_add_data [inherited]
00h..01h - 交换或加法操作数据。
[ Flex IO SDK 设备队列类型 ]
描述 Flex IO 设备 WQE 控制段。
公共变量
- __be32 general_id
- __be32 idx_opcode
- __be32 qpn_ds
- __be32 signature_fm_ce_se
变量
- __be32 flexio_dev_wqe_ctrl_seg::general_id [inherited]
03h - 控制通用 ID。
- __be32 flexio_dev_wqe_ctrl_seg::idx_opcode [inherited]
00h - WQE 索引和操作码。
- __be32 flexio_dev_wqe_ctrl_seg::qpn_ds [inherited]
01h - QPN 和数据段数量。
- __be32 flexio_dev_wqe_ctrl_seg::signature_fm_ce_se [inherited]
02h - 签名、栅栏模式、完成模式和请求事件。
[ Flex IO SDK 设备队列类型 ]
描述 Flex IO 设备 WQE 以太网段。
公共变量
- __be16 cs_swp_flags
- __be16 inline_hdr_bsz
- uint8_t inline_hdrs[2]
- __be16 mss
- __be32 rsvd0
- __be32 rsvd2
变量
- __be16 flexio_dev_wqe_eth_seg::cs_swp_flags [继承]
01h 16..31 - CS 和 SWP 标志。
- __be16 flexio_dev_wqe_eth_seg::inline_hdr_bsz [继承]
03h 16..31 - 内联报头大小 (字节)。
- uint8_t flexio_dev_wqe_eth_seg::inline_hdrs[2] [继承]
03h 0..15 - 内联报头 (前两个字节)。
- __be16 flexio_dev_wqe_eth_seg::mss [继承]
01h 0..15 - 最大分段大小。
- __be32 flexio_dev_wqe_eth_seg::rsvd0 [继承]
00h - 保留。
- __be32 flexio_dev_wqe_eth_seg::rsvd2 [继承]
02h - 保留。
[ Flex IO SDK 设备队列类型 ]
描述 Flex IO 设备 WQE 内联数据段。
公共变量
- uint8_t inline_data[16]
变量
- uint8_t flexio_dev_wqe_inline_data_seg::inline_data[16] [继承]
00h..03h - 内联数据。
[ Flex IO SDK 设备队列类型 ]
描述 Flex IO 设备 WQE 内联发送数据段。
公共变量
- __be32 byte_count
- __be32 data_and_padding[3]
变量
- __be32 flexio_dev_wqe_inline_send_data_seg::byte_count [继承]
00h - 字节计数。
- __be32 flexio_dev_wqe_inline_send_data_seg::data_and_padding[3] [继承]
01h..03h - 数据和填充数组。
[ Flex IO SDK 设备队列类型 ]
描述 Flex IO 设备 WQE 内存指针发送数据段。
公共变量
- __be64 addr
- __be32 byte_count
- __be32 lkey
变量
- __be64 flexio_dev_wqe_mem_ptr_send_data_seg::addr [继承]
02h..03h - 地址。
- __be32 flexio_dev_wqe_mem_ptr_send_data_seg::byte_count [继承]
00h - 字节计数。
- __be32 flexio_dev_wqe_mem_ptr_send_data_seg::lkey [继承]
01h - 本地密钥。
[ Flex IO SDK 设备队列类型 ]
描述 Flex IO 设备 WQE 接收数据段。
公共变量
- __be64 addr
- __be32 byte_count
- __be32 lkey
变量
- __be64 flexio_dev_wqe_rcv_data_seg::addr [继承]
02h..03h - 地址。
- __be32 flexio_dev_wqe_rcv_data_seg::byte_count [继承]
00h - 字节计数。
- __be32 flexio_dev_wqe_rcv_data_seg::lkey [继承]
01h - 本地密钥。
[ Flex IO SDK 设备队列类型 ]
描述 Flex IO 设备 WQE RDMA 段。
公共变量
变量
- __be64 flexio_dev_wqe_rdma_seg::raddr [继承]
00h..01h - 远程地址。
- __be32 flexio_dev_wqe_rdma_seg::rkey [继承]
02h - 远程密钥。
- __be32 flexio_dev_wqe_rdma_seg::rsvd0 [继承]
03h - 保留。
[ Flex IO SDK 设备队列类型 ]
描述 Flex IO 设备共享接收 WQE。
公共变量
- __be16 next_wqe_index
- uint8_t rsvd0[2]
- uint8_t rsvd1[11]
- uint8_t signature
变量
- __be16 flexio_dev_wqe_shared_receive_seg::next_wqe_index [继承]
WQE 缓冲区中指向要执行的下一个 WQE 的索引(指针)。
- uint8_t flexio_dev_wqe_shared_receive_seg::rsvd0[2] [继承]
用于内存对齐的保留位。
- uint8_t flexio_dev_wqe_shared_receive_seg::rsvd1[11] [继承]
用于内存对齐的保留位。
- uint8_t flexio_dev_wqe_shared_receive_seg::signature [继承]
WQE 签名。
[ Flex IO SDK 设备队列类型 ]
描述 Flex IO 设备 WQE 转置段。
公共变量
- uint8_t element_size
- uint8_t num_of_cols
- uint8_t num_of_rows
- uint8_t rsvd0[0x3]
- uint8_t rsvd1
- uint8_t rsvd2
- uint8_t rsvd4[0x8]
变量
- uint8_t flexio_dev_wqe_transpose_seg::element_size [继承]
00h 0..7 - 矩阵元素大小。
- uint8_t flexio_dev_wqe_transpose_seg::num_of_cols [继承]
01h 16..22 - 矩阵中的列数 (7b)。
- uint8_t flexio_dev_wqe_transpose_seg::num_of_rows [继承]
01h 0..6 - 矩阵中的行数 (7b)。
- uint8_t flexio_dev_wqe_transpose_seg::rsvd0[0x3] [继承]
00h 8..31 - 保留。
- uint8_t flexio_dev_wqe_transpose_seg::rsvd1 [继承]
01h - 保留。
- uint8_t flexio_dev_wqe_transpose_seg::rsvd2 [继承]
01h - 保留。
- uint8_t flexio_dev_wqe_transpose_seg::rsvd4[0x8] [继承]
02h..03h - 保留。
[ Flex IO SDK host ]
描述用于创建 Flex IO 事件处理程序的属性。
公共变量
- struct flexio_affinity affinity
- uint64_t arg
- int continuable
- flexio_func_t* * host_stub_func
- const char * name
- flexio_uintptr_t thread_local_storage_daddr
变量
- struct flexio_affinityflexio_event_handler_attr::affinity [继承]
线程的亲和性信息。
- uint64_t flexio_event_handler_attr::arg [继承]
线程参数。
- int flexio_event_handler_attr::continuable [继承]
线程可连续标志。
- flexio_func_t* * flexio_event_handler_attr::host_stub_func [继承]
线程入口函数的存根。
- const char * flexio_event_handler_attr::name [继承]
事件处理程序的名称。
- flexio_uintptr_tflexio_event_handler_attr::thread_local_storage_daddr [继承]
线程的本地存储缓冲区的地址。
[ Flex IO SDK host ]
描述进程堆内存信息
公共变量
变量
- size_t flexio_heap_mem_info::allocated [继承]
进程堆内存分配的字节数。
- uint64_t flexio_heap_mem_info::base_addr [继承]
进程堆内存基地址。
- size_t flexio_heap_mem_info::requested [继承]
进程堆内存请求的字节数。
- size_t flexio_heap_mem_info::size [继承]
进程堆内存大小(字节)。
[ Flex IO SDK host ]
描述用于创建 Flex IO MKey 的进程属性。
公共变量
- int access
- flexio_uintptr_t daddr
- size_t len
- ibv_pd * pd
变量
- int flexio_mkey_attr::access [继承]
access 包含 MKey 的访问掩码 (预期值: IBV_ACCESS_REMOTE_WRITE, IBV_ACCESS_LOCAL_WRITE)。
- flexio_uintptr_tflexio_mkey_attr::daddr [继承]
为其创建 MKey 的 DPA 地址。
- size_t flexio_mkey_attr::len [继承]
为其创建 MKey 的地址空间长度。
- ibv_pd * flexio_mkey_attr::pd [继承]
为创建的 MKey 提供的 IBV 保护域信息。
[ Flex IO SDK host ]
描述用于从设备到主机端的消息传递的 DPA 消息线程属性。
公共变量
- size_t data_bsize
- flexio_msg_dev_level level
- struct flexio_affinity mgmt_affinity
- char * stream_name
- flexio_msg_dev_sync_mode sync_mode
- enumflexio_tracer_transport tracer_mode
- * tracer_msg_formats
- flexio_uar * uar
变量
- size_t flexio_msg_stream_attr_t::data_bsize [继承]
用于从 Flex IO 到主机的数据传输的缓冲区大小,必须是 2 的幂且至少为 2Kb。
- flexio_msg_dev_level flexio_msg_stream_attr_t::level [继承]
流的日志级别,范围介于 FLEXIO_MSG_DEV_NO_PRINT 和 FLEXIO_MSG_DEV_DEBUG 之间。不能使用 FLEXIO_MSG_DEV_ALWAYS_PRINT。
- struct flexio_affinityflexio_msg_stream_attr_t::mgmt_affinity [继承]
用于流管理操作创建、修改和销毁的 EU 亲和性。传递空结构将把亲和性类型设置为 'NONE'。
- char * flexio_msg_stream_attr_t::stream_name [继承]
流的名称。
- flexio_msg_dev_sync_modeflexio_msg_stream_attr_t::sync_mode [继承]
选择同步模式方案。
- enumflexio_tracer_transportflexio_msg_stream_attr_t::tracer_mode [继承]
追踪器传输模式。
- * flexio_msg_stream_attr_t::tracer_msg_formats [继承]
追踪器打印格式模板数组,最后一个条目必须为 NULL。设备消息格式 ID 用作此数组的索引。
- flexio_uar * flexio_msg_stream_attr_t::uar [继承]
已弃用的字段。该值将被忽略。将使用 flexio_process UAR。
[ Flex IO SDK host ]
描述用于创建 Flex IO 出站邮箱的属性。
公共变量
变量
- uint32_t flexio_outbox_attr::en_pcc [继承]
创建支持 CC 操作的出站邮箱。
- flexio_uar * flexio_outbox_attr::uar [继承]
已弃用的字段。该值将被忽略。将使用 flexio_process UAR。
[ Flex IO SDK host ]
描述用于创建 Flex IO 进程的属性。
公共变量
变量
- int flexio_process_attr::en_pcc [继承]
为创建的进程启用 PCC 配置。
- const char * flexio_process_attr::name [继承]
进程的名称。
- ibv_pd * flexio_process_attr::pd [继承]
为创建的进程提供的 IBV 保护域信息。传递 NULL 将导致创建内部 PD 并用于该进程。
[ Flex IO SDK host ]
描述队列内存,可以是主机内存或 DPA 内存
公共变量
- flexio_uintptr_t daddr
- uint64_t humem_offset
- enumflexio_memtype memtype
- uint32_t umem_id
变量
- flexio_uintptr_tflexio_qmem::daddr [继承]
队列内存的 DPA 地址(仅当 memtype 为 FLEXIO_MEMTYPE_DPA 时有效)。
- uint64_t flexio_qmem::humem_offset [继承]
队列内存的 umem 中的地址偏移量(仅当 memtype 为 FLEXIO_MEMTYPE_HOST 时有效)。
- enumflexio_memtypeflexio_qmem::memtype [继承]
要使用的内存类型 (FLEXIO_MEMTYPE_DPA 或 FLEXIO_MEMTYPE_HOST)。
- uint32_t flexio_qmem::umem_id [继承]
队列内存的 UMEM ID。
[ Flex IO SDK host ]
描述用于创建 Flex IO QP 的属性。
公共变量
- uint8_t * dest_mac
- uint8_t fl
- uint8_t gid_table_index
- uint8_t grh
- uint8_t isolate_vl_tc
- int log_rq_depth
- uint8_t log_rra_max
- int log_sq_depth
- uint8_t log_sra_max
- uint32_t min_rnr_nak_timer
- uint32_t next_rcv_psn
- uint32_t next_send_psn
- enumflexio_qp_state next_state
- int no_sq
- int ops_flag
- enumflexio_qp_qpc_mtu path_mtu
- ibv_pd * pd
- int qp_access_mask
- struct flexio_qmem qp_wq_buff_qmem
- struct flexio_qmem qp_wq_dbr_qmem
- uint32_t remote_qp_num
- uint8_t retry_count
- ibv_gid rgid_or_rip
- uint16_t rlid
- uint32_t rmpqn
- uint32_t rq_cqn
- int rq_type
- uint32_t sq_cqn
- uint32_t transport_type
- uint32_t uar_id
- uint16_t udp_sport
- uint32_t user_index
- uint8_t vhca_port_num
变量
- uint8_t * flexio_qp_attr::dest_mac [inherited]
要为修改后的 QP 设置的目标 MAC 地址
- uint8_t flexio_qp_attr::fl [inherited]
指示为修改后的 QP 启用强制环回。
- uint8_t flexio_qp_attr::gid_table_index [inherited]
要为修改后的 QP 设置的 GID 表索引
- uint8_t flexio_qp_attr::grh [inherited]
要为修改后的 QP 设置的 GRH。
- uint8_t flexio_qp_attr::isolate_vl_tc [inherited]
设置后,如果可用,QP 将在隔离的 VL/TC 上传输。
- int flexio_qp_attr::log_rq_depth [inherited]
QP 的 RQ 的条目数的对数。
- uint8_t flexio_qp_attr::log_rra_max [inherited]
允许的未完成 RDMA 读取/原子操作数的对数
- int flexio_qp_attr::log_sq_depth [inherited]
QP 的 SQ 的条目数的对数。
- uint8_t flexio_qp_attr::log_sra_max [inherited]
作为请求者,允许的未完成 RDMA 读取/原子操作数的对数
- uint32_t flexio_qp_attr::min_rnr_nak_timer [inherited]
要为修改后的 QP 设置的最小 RNR NACK 计时器。
- uint32_t flexio_qp_attr::next_rcv_psn [inherited]
要为修改后的 QP 设置的下一个接收 PSN。
- uint32_t flexio_qp_attr::next_send_psn [inherited]
要为修改后的 QP 设置的下一个发送 PSN。
- enumflexio_qp_stateflexio_qp_attr::next_state [inherited]
要将 QP 移动到的 QP 状态(重置、初始化、RTS、RTR)。
- int flexio_qp_attr::no_sq [inherited]
指示创建不带 SQ 的 QP。
- int flexio_qp_attr::ops_flag [inherited]
已弃用。
- enumflexio_qp_qpc_mtuflexio_qp_attr::path_mtu [inherited]
要为修改后的 QP 设置的路径 MTU。
- ibv_pd * flexio_qp_attr::pd [inherited]
为创建的 QP 提供的 IBV 保护域信息。
- int flexio_qp_attr::qp_access_mask [inherited]
QP 的访问权限(预期值:IBV_ACCESS_REMOTE_WRITE、IBV_ACCESS_REMOTE_READ、IBV_ACCESS_REMOTE_ATOMIC、IBV_ACCESS_LOCAL_WRITE)。
- struct flexio_qmemflexio_qp_attr::qp_wq_buff_qmem [inherited]
为创建的 QP 的 WQ 提供的环形内存信息。
- struct flexio_qmemflexio_qp_attr::qp_wq_dbr_qmem [inherited]
为创建的 QP 的 WQ 提供的 DBR 内存信息。
- uint32_t flexio_qp_attr::remote_qp_num [inherited]
要为修改后的 QP 设置的远程 QP 编号。
- uint8_t flexio_qp_attr::retry_count [inherited]
要为修改后的 QP 设置的重试计数。
- ibv_gid flexio_qp_attr::rgid_or_rip [inherited]
要为修改后的 QP 设置的远程 GID 或远程 IP。
- uint16_t flexio_qp_attr::rlid [inherited]
要为修改后的 QP 设置的远程 LID。
- uint32_t flexio_qp_attr::rmpqn [inherited]
RMP 队列号,仅当 QP RQ 为 RMP 时相关。
- uint32_t flexio_qp_attr::rq_cqn [inherited]
QP 的 RQ 的 CQ 编号。与 RMP 无关
- int flexio_qp_attr::rq_type [inherited]
QP 的 RQ 类型(常规、RMP、零 RQ)
- uint32_t flexio_qp_attr::sq_cqn [inherited]
QP 的 SQ 的 CQ 编号。
- uint32_t flexio_qp_attr::transport_type [inherited]
QP 的传输类型(当前仅支持 FLEXIO_QPC_ST_RC)。
- uint32_t flexio_qp_attr::uar_id [inherited]
QP UAR ID。
- uint16_t flexio_qp_attr::udp_sport [inherited]
要为修改后的 QP 设置的 UDP 端口。
- uint32_t flexio_qp_attr::user_index [inherited]
为创建的 QP 定义的用户 user_index。
- uint8_t flexio_qp_attr::vhca_port_num [inherited]
要为修改后的 QP 设置的 VHCA 端口号。
[ Flex IO SDK host ]
描述 QP 修改操作掩码。
公共变量
- bool min_rnr_nak_timer
- bool qp_access_mask
变量
- bool flexio_qp_attr_opt_param_mask::min_rnr_nak_timer [inherited]
指示修改 QP 的 min_rnr_nak_timer 字段。
- bool flexio_qp_attr_opt_param_mask::qp_access_mask [inherited]
指示修改 QP 的 qp_access_mask 字段。
[ Flex IO SDK host ]
描述用于创建 Flex IO WQ 的属性。
公共变量
- uint8_t log_wq_depth
- uint8_t log_wq_stride
- ibv_pd * pd
- struct flexio_wq_rq_attr rq
- struct flexio_wq_sq_attr sq
- uint32_t uar_id
- uint32_t user_index
- struct flexio_qmem wq_dbr_qmem
- struct flexio_qmem wq_ring_qmem
变量
- uint8_t flexio_wq_attr::log_wq_depth [inherited]
为创建的 WQ 提供的条目数的对数。
- uint8_t flexio_wq_attr::log_wq_stride [inherited]
为创建的 WQ 提供的条目大小的对数。如果未提供此参数,则将其设置为默认值 4。
- ibv_pd * flexio_wq_attr::pd [inherited]
用于创建 WQ 的 IBV 保护域结构体。
- struct flexio_wq_rq_attrflexio_wq_attr::rq [inherited]
RQ 属性(仅用于 RQ)。
- struct flexio_wq_sq_attrflexio_wq_attr::sq [inherited]
SQ 属性(仅用于 SQ)。
- uint32_t flexio_wq_attr::uar_id [inherited]
WQ UAR ID。
- uint32_t flexio_wq_attr::user_index [inherited]
为创建的 WQ 定义的用户 user_index。
- struct flexio_qmemflexio_wq_attr::wq_dbr_qmem [inherited]
为创建的 WQ 提供的 DBR 内存地址。
- struct flexio_qmemflexio_wq_attr::wq_ring_qmem [inherited]
为创建的 WQ 提供的环形内存信息。
[ Flex IO SDK host ]
描述用于创建 Flex IO RQ 的属性。
公共变量
- enumflexio_wq_end_pad_mode end_pad_mode
- flexio_transport_domain * td
- uint8_t vlan_strip_disable
- enumflexio_wq_type wq_type
变量
- enumflexio_wq_end_pad_modeflexio_wq_rq_attr::end_pad_mode [inherited]
RQ 的 WQ 结束填充模式。
- flexio_transport_domain * flexio_wq_rq_attr::td [inherited]
为 RQ 创建的 TD(传输域)对象。如果为空,将在 RQ 创建时创建 TD 对象。TD 用于 TIR 创建。
- uint8_t flexio_wq_rq_attr::vlan_strip_disable [inherited]
设置后,禁用 RQ vlan 条带。
- enumflexio_wq_typeflexio_wq_rq_attr::wq_type [inherited]
RQ 的 WQ 类型。
[ Flex IO SDK host ]
描述用于创建 Flex IO SQ 的属性。
公共变量
- uint8_t allow_multi_pkt_send_wqe
- flexio_sq_tis * tis
变量
- uint8_t flexio_wq_sq_attr::allow_multi_pkt_send_wqe [inherited]
指示为创建的 SQ 启用多数据包发送 WQE。
- flexio_sq_tis * flexio_wq_sq_attr::tis [inherited]
为 SQ 创建的 TIS(传输接口发送)对象。如果为空,将在 SQ 创建时创建 TIS 对象。
[ Flex IO SDK dev ]
描述 Flex IO dev 自旋锁。
公共变量
- uint32_t locked
变量
- uint32_t spinlock_s::locked [inherited]
自旋锁锁定状态的指示。