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

Go to the source code of this file.

Data Structures

struct  sc_config
 
struct  t_results
 
struct  fast_path_ctx
 
struct  cc_ctx
 
struct  metadata_msg
 

Enumerations

enum  sc_mode { SC_MODE_HOST , SC_MODE_DPU }
 
enum  transfer_state {
  TRANSFER_IDLE , TRANSFER_IN_PROGRESS , TRANSFER_COMPLETE , TRANSFER_ERROR ,
  TRANSFER_IDLE , TRANSFER_IN_PROGRESS , TRANSFER_COMPLETE , TRANSFER_ERROR ,
  FASTPATH_IDLE , FASTPATH_IN_PROGRESS , FASTPATH_COMPLETE , FASTPATH_ERROR
}
 
enum  msg_type { START_MSG , END_MSG }
 

Functions

doca_error_t sc_start (struct comch_cfg *comch_cfg, struct sc_config *cfg, struct cc_ctx *ctx)
 
doca_error_t register_secure_channel_params (void)
 
void comch_recv_event_cb (struct doca_comch_event_msg_recv *event, uint8_t *recv_buffer, uint32_t msg_len, struct doca_comch_connection *comch_connection)
 
void new_consumer_callback (struct doca_comch_event_consumer *event, struct doca_comch_connection *comch_connection, uint32_t id)
 
void expired_consumer_callback (struct doca_comch_event_consumer *event, struct doca_comch_connection *comch_connection, uint32_t id)
 

Enumeration Type Documentation

◆ msg_type

enum msg_type
Enumerator
START_MSG 
END_MSG 

Definition at line 88 of file secure_channel_core.h.

◆ sc_mode

enum sc_mode
Enumerator
SC_MODE_HOST 
SC_MODE_DPU 

Definition at line 36 of file secure_channel_core.h.

◆ transfer_state

Enumerator
TRANSFER_IDLE 
TRANSFER_IN_PROGRESS 
TRANSFER_COMPLETE 
TRANSFER_ERROR 
TRANSFER_IDLE 
TRANSFER_IN_PROGRESS 
TRANSFER_COMPLETE 
TRANSFER_ERROR 
FASTPATH_IDLE 
FASTPATH_IN_PROGRESS 
FASTPATH_COMPLETE 
FASTPATH_ERROR 

Definition at line 56 of file secure_channel_core.h.

Function Documentation

◆ comch_recv_event_cb()

void comch_recv_event_cb ( struct doca_comch_event_msg_recv *  event,
uint8_t *  recv_buffer,
uint32_t  msg_len,
struct doca_comch_connection *  comch_connection 
)

Definition at line 187 of file secure_channel_core.c.

◆ expired_consumer_callback()

void expired_consumer_callback ( struct doca_comch_event_consumer *  event,
struct doca_comch_connection *  comch_connection,
uint32_t  id 
)

Callback for expired consumer arrival event

@event [in]: Expired remote consumer event object @comch_connection [in]: The connection related to the consumer @id [in]: The ID of the expired remote consumer

Definition at line 176 of file secure_channel_core.c.

◆ new_consumer_callback()

void new_consumer_callback ( struct doca_comch_event_consumer *  event,
struct doca_comch_connection *  comch_connection,
uint32_t  id 
)

Definition at line 165 of file secure_channel_core.c.

◆ register_secure_channel_params()

doca_error_t register_secure_channel_params ( void  )

Definition at line 1022 of file secure_channel_core.c.

◆ sc_start()

doca_error_t sc_start ( struct comch_cfg comch_cfg,
struct sc_config cfg,
struct cc_ctx ctx 
)

Definition at line 933 of file secure_channel_core.c.