Skip to content

Commit

Permalink
Support SAI API of TWAMP Light
Browse files Browse the repository at this point in the history
Signed-off-by: yoush <yoush@centec.com>
  • Loading branch information
AlanYoush committed Aug 30, 2023
1 parent cdf0452 commit ee5cd5d
Show file tree
Hide file tree
Showing 13 changed files with 1,968 additions and 25 deletions.
1,085 changes: 1,085 additions & 0 deletions doc/TWAMP/SAI-Proposal-TWAMP-LIGHT.md

Large diffs are not rendered by default.

Binary file added doc/TWAMP/figures/TWAMP_Light_continuous.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/TWAMP/figures/TWAMP_Light_packet_count.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/TWAMP/figures/TWAMP_Light_period.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/TWAMP/figures/TWAMP_Light_role.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions inc/sai.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
#include "saidebugcounter.h"
#include "saimymac.h"
#include "saigenericprogrammable.h"
#include "saitwamp.h"
#include "saiversion.h"

/**
Expand Down Expand Up @@ -144,6 +145,7 @@ typedef enum _sai_api_t
SAI_API_GENERIC_PROGRAMMABLE = 47, /**<sai_generic_programmable_t */
SAI_API_ARS = 48, /**<sai_ars_api_t */
SAI_API_ARS_PROFILE = 49, /**<sai_ars_api_profile_t */
SAI_API_TWAMP = 50, /**< sai_twamp_api_t */
SAI_API_MAX, /**< total number of APIs */
} sai_api_t;

Expand Down
27 changes: 27 additions & 0 deletions inc/saiswitch.h
Original file line number Diff line number Diff line change
Expand Up @@ -2957,6 +2957,33 @@ typedef enum _sai_switch_attr_t
*/
SAI_SWITCH_ATTR_TUNNEL_TERM_TABLE_ENTRY_MAXIMUM_PRIORITY,

/**
* @brief TWAMP session event notification callback function passed to the adapter.
*
* Use sai_twamp_session_event_notification_fn as notification function.
*
* @type sai_pointer_t sai_twamp_session_event_notification_fn
* @flags CREATE_AND_SET
* @default NULL
*/
SAI_SWITCH_ATTR_TWAMP_SESSION_EVENT_NOTIFY,

/**
* @brief Number of Two-Way Active Measurement Protocol session
*
* @type sai_uint32_t
* @flags READ_ONLY
*/
SAI_SWITCH_ATTR_AVAILABLE_TWAMP_SESSION,

/**
* @brief Max number of Two-Way Active Measurement Protocol session supports
*
* @type sai_uint32_t
* @flags READ_ONLY
*/
SAI_SWITCH_ATTR_MAX_TWAMP_SESSION,

/**
* @brief End of attributes
*/
Expand Down
Loading

0 comments on commit ee5cd5d

Please sign in to comment.