File: receive-completion-queue-common.h

package info (click to toggle)
rpma 1.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 3,040 kB
  • sloc: ansic: 27,313; sh: 1,805; perl: 1,148; makefile: 8
file content (21 lines) | stat: -rw-r--r-- 526 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* 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

#endif /* EXAMPLES_RECEIVE_COMPLETION_QUEUE_COMMON */