Skip to content

Commit 4f48467

Browse files
committed
Support SAI API of TWAMP Light
Signed-off-by: yoush <[email protected]>
1 parent 39b7fe0 commit 4f48467

13 files changed

+1968
-25
lines changed

doc/TWAMP/SAI-Proposal-TWAMP-LIGHT.md

+1,085
Large diffs are not rendered by default.
13.8 KB
Loading
15.4 KB
Loading
15.7 KB
Loading
27.9 KB
Loading

inc/sai.h

+2
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
#include "saidebugcounter.h"
7878
#include "saimymac.h"
7979
#include "saigenericprogrammable.h"
80+
#include "saitwamp.h"
8081
#include "saiversion.h"
8182

8283
/**
@@ -144,6 +145,7 @@ typedef enum _sai_api_t
144145
SAI_API_GENERIC_PROGRAMMABLE = 47, /**<sai_generic_programmable_t */
145146
SAI_API_ARS = 48, /**<sai_ars_api_t */
146147
SAI_API_ARS_PROFILE = 49, /**<sai_ars_api_profile_t */
148+
SAI_API_TWAMP = 50, /**< sai_twamp_api_t */
147149
SAI_API_MAX, /**< total number of APIs */
148150
} sai_api_t;
149151

inc/saiswitch.h

+27
Original file line numberDiff line numberDiff line change
@@ -2941,6 +2941,33 @@ typedef enum _sai_switch_attr_t
29412941
*/
29422942
SAI_SWITCH_ATTR_PORT_HOST_TX_READY_NOTIFY,
29432943

2944+
/**
2945+
* @brief TWAMP session event notification callback function passed to the adapter.
2946+
*
2947+
* Use sai_twamp_session_event_notification_fn as notification function.
2948+
*
2949+
* @type sai_pointer_t sai_twamp_session_event_notification_fn
2950+
* @flags CREATE_AND_SET
2951+
* @default NULL
2952+
*/
2953+
SAI_SWITCH_ATTR_TWAMP_SESSION_EVENT_NOTIFY,
2954+
2955+
/**
2956+
* @brief Number of Two-Way Active Measurement Protocol session
2957+
*
2958+
* @type sai_uint32_t
2959+
* @flags READ_ONLY
2960+
*/
2961+
SAI_SWITCH_ATTR_AVAILABLE_TWAMP_SESSION,
2962+
2963+
/**
2964+
* @brief Max number of Two-Way Active Measurement Protocol session supports
2965+
*
2966+
* @type sai_uint32_t
2967+
* @flags READ_ONLY
2968+
*/
2969+
SAI_SWITCH_ATTR_MAX_TWAMP_SESSION,
2970+
29442971
/**
29452972
* @brief End of attributes
29462973
*/

0 commit comments

Comments
 (0)