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>
49 #define GPU_PAGE_SIZE (1UL << 16)
50 #define MAX_PCI_ADDRESS_LEN 32U
51 #define PACKET_SIZE 1024
52 #define ETHER_ADDR_LEN 6
53 #define MAX_SQ_DESCR_NUM 8192
54 #define MAX_RX_TIMEOUT_NS 500000
55 #define MAX_RX_NUM_PKTS 2048
74 struct doca_dev *
ddev;
82 struct doca_flow_port *
port;
doca_error_t kernel_send_packets(cudaStream_t stream, struct txq_queue *txq, uint32_t *gpu_exit_condition)
struct sample_simple_send_cfg __attribute__
doca_error_t gpunetio_simple_send(struct sample_simple_send_cfg *sample_cfg)
#define MAX_PCI_ADDRESS_LEN
enum doca_error doca_error_t
DOCA API return codes.
uint8_t s_addr_bytes[ETHER_ADDR_LEN]
uint8_t d_addr_bytes[ETHER_ADDR_LEN]
char nic_pcie_addr[MAX_PCI_ADDRESS_LEN]
char gpu_pcie_addr[MAX_PCI_ADDRESS_LEN]
struct doca_buf_arr * buf_arr
struct doca_gpu_eth_txq * eth_txq_gpu
struct doca_flow_port * port
struct doca_mmap * pkt_buff_mmap
struct doca_ctx * eth_txq_ctx
struct doca_gpu_buf_arr * buf_arr_gpu
struct doca_eth_txq * eth_txq_cpu
struct doca_gpu * gpu_dev