CDI SDK
SDK for transporting chunks of data reliably and with low latency using a polled mode network driver.
Loading...
Searching...
No Matches
adapter_efa_probe_control.h
Go to the documentation of this file.
1// -------------------------------------------------------------------------------------------
2// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
3// This file is part of the AWS CDI-SDK, licensed under the BSD 2-Clause "Simplified" License.
4// License details at: https://github.com/aws/aws-cdi-sdk/blob/mainline/LICENSE
5// -------------------------------------------------------------------------------------------
6
13#ifndef CDI_ADAPTER_EFA_PROBE_CONTROL_H__
14#define CDI_ADAPTER_EFA_PROBE_CONTROL_H__
15
16#include "adapter_api.h"
17#include "private.h"
18
19//*********************************************************************************************************************
20//***************************************** START OF DEFINITIONS AND TYPES ********************************************
21//*********************************************************************************************************************
22
23//*********************************************************************************************************************
24//******************************************* START OF PUBLIC FUNCTIONS ***********************************************
25//*********************************************************************************************************************
26
43
53void ProbeControlEfaConnectionQueueReset(ProbeEndpointState* probe_ptr, const char* error_msg_str);
54
63
71
81
88void ProbeControlWorkRequestPacketSizeSet(ProbePacketWorkRequest* work_request_ptr, int packet_size);
89
99CdiReturnStatus ProbeControlSendCommand(ProbeEndpointState* probe_ptr, ProbeCommand command, bool requires_ack);
100
111 uint16_t ack_probe_packet_num);
112
122void ProbeControlMessageFromBidirectionalEndpoint(void* param_ptr, Packet* packet_ptr, EndpointMessageType message_type);
123
132
133#endif // CDI_ADAPTER_EFA_PROBE_CONTROL_H__
134
The declarations in this header file correspond to the definitions in adapter.c.
EndpointMessageType
Definition adapter_api.h:93
ProbeState
This enumeration is used in the TxEndpointProbeState and RxEndpointProbeState structures to indicate ...
Definition adapter_efa_probe.h:39
CdiReturnStatus ProbeControlSendAck(ProbeEndpointState *probe_ptr, ProbeCommand ack_command, uint16_t ack_probe_packet_num)
Definition adapter_efa_probe_control.c:313
CdiReturnStatus ProbeControlSendCommand(ProbeEndpointState *probe_ptr, ProbeCommand command, bool requires_ack)
Definition adapter_efa_probe_control.c:248
void ProbeControlEfaConnectionEnableApplication(ProbeEndpointState *probe_ptr)
Definition adapter_efa_probe_control.c:211
CDI_THREAD ProbeControlThread(void *ptr)
Definition adapter_efa_probe_control.c:378
ProbePacketWorkRequest * ProbeControlWorkRequestGet(CdiPoolHandle work_request_pool_handle)
Definition adapter_efa_probe_control.c:222
void ProbeControlQueueStateChange(ProbeEndpointState *probe_ptr, ProbeState probe_state)
Definition adapter_efa_probe_control.c:197
bool ProbeControlEfaConnectionStart(ProbeEndpointState *probe_ptr)
Definition adapter_efa_probe_control.c:146
void ProbeControlEfaConnectionQueueReset(ProbeEndpointState *probe_ptr, const char *error_msg_str)
Definition adapter_efa_probe_control.c:182
void ProbeControlWorkRequestPacketSizeSet(ProbePacketWorkRequest *work_request_ptr, int packet_size)
Definition adapter_efa_probe_control.c:242
void ProbeControlMessageFromBidirectionalEndpoint(void *param_ptr, Packet *packet_ptr, EndpointMessageType message_type)
Definition adapter_efa_probe_control.c:368
CdiReturnStatus
Values used for API function return codes.
Definition cdi_core_api.h:189
#define CDI_THREAD
Define portable thread function return type.
Definition cdi_os_api.h:179
This header file contains definitions of types and the one global variable used internally by the SDK...
ProbeCommand
This enumeration is used in the ProbePacketHeader structure to indicate a probe command....
Definition protocol.h:146
This structure represents the current state of a memory pool.
Definition pool.c:46
Definition adapter_api.h:42
This defines a structure that contains all of the state information for the sending side of a single ...
Definition adapter_efa_probe.h:121
Structure used to hold a transmit packet work request. The lifespan of a work request starts when a p...
Definition adapter_efa_probe.h:168