| NVIDIA DOCA SDK | Data Center on a Chip Framework Documentation |
#include <stdio.h>#include <unistd.h>#include <stdlib.h>#include <string.h>#include <signal.h>#include <cuda.h>#include <cuda_runtime.h>#include <doca_error.h>#include <doca_dev.h>#include <doca_mmap.h>#include <doca_gpunetio.h>#include <doca_eth_txq.h>#include <doca_eth_txq_gpu_data_path.h>#include <doca_buf_array.h>#include "common.h"

Go to the source code of this file.
Data Structures | |
| struct | ether_hdr |
| struct | sample_simple_send_cfg |
| struct | txq_queue |
Macros | |
| #define | GPU_PAGE_SIZE (1UL << 16) |
| #define | MAX_PCI_ADDRESS_LEN 32U |
| #define | PACKET_SIZE 1024 |
| #define | ETHER_ADDR_LEN 6 |
| #define | MAX_SQ_DESCR_NUM 8192 |
| #define | MAX_RX_TIMEOUT_NS 500000 |
| #define | MAX_RX_NUM_PKTS 2048 |
Functions | |
| struct ether_hdr | __attribute__ ((__packed__)) |
| doca_error_t | gpunetio_simple_send (struct sample_simple_send_cfg *sample_cfg) |
| doca_error_t | kernel_send_packets (cudaStream_t stream, struct txq_queue *txq, uint32_t *gpu_exit_condition) |
Variables | |
| uint8_t | d_addr_bytes [ETHER_ADDR_LEN] |
| uint8_t | s_addr_bytes [ETHER_ADDR_LEN] |
| uint16_t | ether_type |
| struct sample_simple_send_cfg | __attribute__ |
| #define ETHER_ADDR_LEN 6 |
Definition at line 52 of file gpunetio_common.h.
| #define GPU_PAGE_SIZE (1UL << 16) |
Definition at line 49 of file gpunetio_common.h.
| #define MAX_PCI_ADDRESS_LEN 32U |
Definition at line 50 of file gpunetio_common.h.
| #define MAX_RX_NUM_PKTS 2048 |
Definition at line 55 of file gpunetio_common.h.
| #define MAX_RX_TIMEOUT_NS 500000 |
Definition at line 54 of file gpunetio_common.h.
| #define MAX_SQ_DESCR_NUM 8192 |
Definition at line 53 of file gpunetio_common.h.
| #define PACKET_SIZE 1024 |
Definition at line 51 of file gpunetio_common.h.
| doca_error_t gpunetio_simple_send | ( | struct sample_simple_send_cfg * | sample_cfg | ) |
Definition at line 466 of file gpunetio_simple_send_sample.c.
| doca_error_t kernel_send_packets | ( | cudaStream_t | stream, |
| struct txq_queue * | txq, | ||
| uint32_t * | gpu_exit_condition | ||
| ) |
| struct sample_simple_send_cfg __attribute__ |
| uint8_t d_addr_bytes[ETHER_ADDR_LEN] |
Definition at line 0 of file gpunetio_common.h.
| uint16_t ether_type |
Definition at line 2 of file gpunetio_common.h.
| uint8_t s_addr_bytes[ETHER_ADDR_LEN] |
Definition at line 1 of file gpunetio_common.h.