Skip to content

Commit 0cf5490

Browse files
committed
Support TWAMP Light SAI API
Signed-off-by: yoush <[email protected]>
1 parent ef4b8b4 commit 0cf5490

13 files changed

+1915
-1
lines changed

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

+1,074
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

+19
Original file line numberDiff line numberDiff line change
@@ -2929,6 +2929,25 @@ typedef enum _sai_switch_attr_t
29292929
*/
29302930
SAI_SWITCH_ATTR_ACL_CHAIN_LIST,
29312931

2932+
/**
2933+
* @brief Set Switch TWAMP session state change event notification callback function passed to the adapter.
2934+
*
2935+
* Use sai_twamp_session_state_change_notification_fn as notification function.
2936+
*
2937+
* @type sai_pointer_t sai_twamp_session_state_change_notification_fn
2938+
* @flags CREATE_AND_SET
2939+
* @default NULL
2940+
*/
2941+
SAI_SWITCH_ATTR_TWAMP_SESSION_STATE_CHANGE_NOTIFY,
2942+
2943+
/**
2944+
* @brief Max number of Two-Way Active Measurement Protocol session supports
2945+
*
2946+
* @type sai_uint32_t
2947+
* @flags READ_ONLY
2948+
*/
2949+
SAI_SWITCH_ATTR_MAX_TWAMP_SESSION,
2950+
29322951
/**
29332952
* @brief End of attributes
29342953
*/

0 commit comments

Comments
 (0)