26 #ifndef GPUNETIO_SEND_WAIT_TIME_COMMON_H_
27 #define GPUNETIO_SEND_WAIT_TIME_COMMON_H_
36 #include <cuda_runtime.h>
41 #include <doca_gpunetio.h>
48 #define GPU_PAGE_SIZE (1UL << 16)
49 #define MAX_PCI_ADDRESS_LEN 32U
50 #define CUDA_BLOCK_THREADS 32
51 #define PACKET_SIZE 1024
52 #define ETHER_ADDR_LEN 6
53 #define MAX_RQ_DESCR_NUM 8192
54 #define MAX_PKT_NUM 16384
55 #define MAX_PKT_SIZE 2048
56 #define MAX_RX_TIMEOUT_NS 500000
57 #define MAX_RX_NUM_PKTS 2048
76 struct doca_flow_port *
port;
doca_error_t kernel_receive_packets(cudaStream_t stream, struct rxq_queue *rxq, uint32_t *gpu_exit_condition)
doca_error_t gpunetio_simple_receive(struct sample_send_wait_cfg *sample_cfg)
#define MAX_PCI_ADDRESS_LEN
enum doca_error doca_error_t
DOCA API return codes.
struct doca_eth_rxq * eth_rxq_cpu
struct doca_gpu * gpu_dev
struct doca_mmap * pkt_buff_mmap
struct doca_flow_pipe_entry * root_udp_entry
struct doca_flow_port * port
struct doca_flow_pipe * rxq_pipe
struct doca_ctx * eth_rxq_ctx
struct doca_flow_pipe * root_pipe
struct doca_gpu_eth_rxq * eth_rxq_gpu
char gpu_pcie_addr[DOCA_DEVINFO_PCI_ADDR_SIZE]
char nic_pcie_addr[DOCA_DEVINFO_PCI_ADDR_SIZE]