NVIDIA DOCA SDK Data Center on a Chip Framework Documentation
doca_transport_common.h File Reference
#include <stdint.h>
Include dependency graph for doca_transport_common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  comch_msg
 
struct  io_thread_arg
 

Macros

#define RPC_RETURN_STATUS_SUCCESS   0
 
#define RPC_RETURN_STATUS_ERROR   1
 
#define MAX_NUM_COMCH_MSGS   1024
 

Enumerations

enum  comch_msg_type {
  COMCH_MSG_DIRECTION = 1 , COMCH_MSG_EXPORT_DESCRIPTOR = 2 , COMCH_MSG_STATUS = 3 , COMCH_MSG_TYPE_BIND_SQ_DB ,
  COMCH_MSG_TYPE_BIND_SQ_DB_DONE , COMCH_MSG_TYPE_UNBIND_SQ_DB , COMCH_MSG_TYPE_UNBIND_SQ_DB_DONE , COMCH_MSG_TYPE_RAISE_MSIX ,
  COMCH_MSG_TYPE_HOST_DB
}
 

Functions

struct comch_msg __attribute__ ((__packed__, aligned(8)))
 

Variables

enum comch_msg_type type
 
union {
   struct {
      uint64_t   db
 
      uint64_t   cookie
 
   }   bind_sq_db_data
 
   struct {
      uint64_t   cookie
 
   }   bind_sq_db_done_data
 
   struct {
      uint64_t   db
 
      uint64_t   cookie
 
   }   unbind_sq_db_data
 
   struct {
      uint64_t   cookie
 
   }   unbind_sq_db_done_data
 
   struct {
      uint64_t   db_user_data
 
      uint32_t   db_value
 
   }   host_db_data
 
}; 
 
uint64_t dpa_consumer_comp
 
uint64_t dpa_producer_comp
 
uint64_t dpa_producer
 
uint64_t dpa_consumer
 
uint64_t dpa_db_comp
 
uint64_t dpa_msix
 

Macro Definition Documentation

◆ MAX_NUM_COMCH_MSGS

#define MAX_NUM_COMCH_MSGS   1024

Definition at line 33 of file doca_transport_common.h.

◆ RPC_RETURN_STATUS_ERROR

#define RPC_RETURN_STATUS_ERROR   1

Definition at line 32 of file doca_transport_common.h.

◆ RPC_RETURN_STATUS_SUCCESS

#define RPC_RETURN_STATUS_SUCCESS   0

Definition at line 31 of file doca_transport_common.h.

Enumeration Type Documentation

◆ comch_msg_type

Enumerator
COMCH_MSG_DIRECTION 
COMCH_MSG_EXPORT_DESCRIPTOR 
COMCH_MSG_STATUS 
COMCH_MSG_TYPE_BIND_SQ_DB 
COMCH_MSG_TYPE_BIND_SQ_DB_DONE 
COMCH_MSG_TYPE_UNBIND_SQ_DB 
COMCH_MSG_TYPE_UNBIND_SQ_DB_DONE 
COMCH_MSG_TYPE_RAISE_MSIX 
COMCH_MSG_TYPE_HOST_DB 

Definition at line 35 of file doca_transport_common.h.

Function Documentation

◆ __attribute__()

struct comch_msg __attribute__ ( (__packed__, aligned(8))  )

Variable Documentation

◆ 

union { ... }

◆ 

struct { ... } bind_sq_db_data

◆ 

struct { ... } bind_sq_db_done_data

◆ cookie

uint64_t cookie

Definition at line 4 of file doca_transport_common.h.

◆ db

uint64_t db

Definition at line 3 of file doca_transport_common.h.

◆ db_user_data

uint64_t db_user_data

Definition at line 17 of file doca_transport_common.h.

◆ db_value

uint32_t db_value

Definition at line 18 of file doca_transport_common.h.

◆ dpa_consumer

uint64_t dpa_consumer

Definition at line 3 of file doca_transport_common.h.

◆ dpa_consumer_comp

uint64_t dpa_consumer_comp

Definition at line 0 of file doca_transport_common.h.

◆ dpa_db_comp

uint64_t dpa_db_comp

Definition at line 4 of file doca_transport_common.h.

◆ dpa_msix

uint64_t dpa_msix

Definition at line 5 of file doca_transport_common.h.

◆ dpa_producer

uint64_t dpa_producer

Definition at line 2 of file doca_transport_common.h.

◆ dpa_producer_comp

uint64_t dpa_producer_comp

Definition at line 1 of file doca_transport_common.h.

◆ 

struct { ... } host_db_data

◆ type

enum comch_msg_type type

Definition at line 63 of file doca_transport_common.h.

◆ 

struct { ... } unbind_sq_db_data

◆ 

struct { ... } unbind_sq_db_done_data