1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
/* SPDX-License-Identifier: BSD-3-Clause */
/* Copyright 2022, Intel Corporation */
/*
* receive-completion-queue-common.h -- a common declarations for the 12 example
*/
#ifndef EXAMPLES_RECEIVE_COMPLETION_QUEUE_COMMON
#define EXAMPLES_RECEIVE_COMPLETION_QUEUE_COMMON
#define MSG_SIZE sizeof(uint64_t)
/* Both buffers are allocated one after another. */
#define RECV_OFFSET 0
#define SEND_OFFSET MSG_SIZE
#define RCQ_SIZE 10
#define I_M_DONE (uint64_t)UINT64_MAX
int get_wc_and_validate(struct rpma_cq *cq, enum ibv_wc_opcode opcode,
char *func_name);
#endif /* EXAMPLES_RECEIVE_COMPLETION_QUEUE_COMMON */
|