30 #include "../common/dpa_ping_pong_common_defs.h"
73 (*((uint64_t *)(thread_arg->
send_addr)))++;
108 (*((uint64_t *)(thread_arg->
send_addr)))++;
136 if (rdma_dpa_ctx_handle) {
#define EXPECTED_NUM_RECEIVES
Number of expected receive completions.
static uint32_t received_values[EXPECTED_NUM_RECEIVES]
Array used to mark received data when completion is received.
struct dpa_thread_arg __dpa_global__
__dpa_rpc__ uint64_t trigger_first_iteration_rpc(doca_dpa_dev_t rdma_dpa_ctx_handle, struct dpa_thread_arg ping_thread_arg, struct dpa_thread_arg pong_thread_arg)
RPC function to trigger first ping pong send/receive iteration.
__dpa_global__ void thread_kernel(uint64_t arg)
Kernel function of DPA thread.
if(bitoffset % 64+bitlength > 64) result|
DOCA_EXPERIMENTAL void doca_dpa_dev_rdma_post_receive(doca_dpa_dev_rdma_t rdma, doca_dpa_dev_mmap_t mmap_handle, uint64_t addr, size_t length)
Post an RDMA receive operation.
DOCA_EXPERIMENTAL void doca_dpa_dev_rdma_post_send(doca_dpa_dev_rdma_t rdma, uint32_t connection_id, doca_dpa_dev_mmap_t mmap_handle, uint64_t addr, size_t length, uint32_t flags)
Post an RDMA send operation.
DOCA_EXPERIMENTAL void doca_dpa_dev_sync_event_update_set(doca_dpa_dev_sync_event_t dpa_dev_se_handle, uint64_t value)
Set the counter of a DOCA Sync Event to a given value.
DOCA_EXPERIMENTAL void doca_dpa_dev_device_set(doca_dpa_dev_t dpa_handle)
Set a DPA device.
DOCA_EXPERIMENTAL void doca_dpa_dev_thread_finish(void)
Finish a DPA thread.
#define DOCA_DPA_DEV_LOG_ERR(...)
Generate a DOCA DPA device ERROR log message.
DOCA_EXPERIMENTAL void doca_dpa_dev_completion_ack(doca_dpa_dev_completion_t dpa_comp_handle, uint64_t num_comp)
Acknowledge that the completions have been read on the completion context.
__dpa_global__ typedef uint64_t doca_dpa_dev_completion_element_t
DPA completion element handle type definition.
#define DOCA_DPA_DEV_LOG_INFO(...)
Generate a DOCA DPA device INFO log message.
DOCA_EXPERIMENTAL int doca_dpa_dev_get_completion(doca_dpa_dev_completion_t dpa_comp_handle, doca_dpa_dev_completion_element_t *comp_element)
Get DPA completion element.
DOCA_EXPERIMENTAL doca_dpa_dev_uintptr_t doca_dpa_dev_thread_get_local_storage(void)
Get DPA thread local storage.
@ DOCA_DPA_DEV_SUBMIT_FLAG_OPTIMIZE_REPORTS
@ DOCA_DPA_DEV_SUBMIT_FLAG_FLUSH
uint64_t doca_dpa_dev_t
DPA context handle type definition.
DPA Thread local storage struct.
uint64_t received_values_arr_ptr
DPA thread device argument struct.
doca_dpa_dev_t dpa_ctx_handle
uint32_t recv_addr_mmap_handle
uint64_t comp_sync_event_val
uint32_t send_addr_mmap_handle
uint64_t comp_sync_event_handle