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 15, 2023
1 parent 39b7fe0 commit 0716b70
Show file tree
Hide file tree
Showing 13 changed files with 1,937 additions and 1 deletion.
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
19 changes: 19 additions & 0 deletions inc/saiswitch.h
Original file line number Diff line number Diff line change
Expand Up @@ -2941,6 +2941,25 @@ typedef enum _sai_switch_attr_t
*/
SAI_SWITCH_ATTR_PORT_HOST_TX_READY_NOTIFY,

/**
* @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 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 0716b70

Please sign in to comment.