Skip to content

Commit

Permalink
Add units to report interval
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Bos <jbos@cisco.com>
  • Loading branch information
j-bos committed Dec 15, 2022
1 parent ed32b64 commit 5c1a60c
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion inc/saitam.h
Original file line number Diff line number Diff line change
Expand Up @@ -1196,6 +1196,28 @@ typedef enum _sai_tam_report_mode_t

} sai_tam_report_mode_t;

/**
* @brief TAM report interval units
*/
typedef enum _sai_tam_report_interval_unit_t
{
/**
* @brief Report interval unit nanosecond
*/
SAI_TAM_REPORT_INTERVAL_UNIT_NANOSEC,

/**
* @brief Report interval unit microsecond
*/
SAI_TAM_REPORT_INTERVAL_UNIT_USEC,

/**
* @brief Report interval unit millisecond
*/
SAI_TAM_REPORT_INTERVAL_UNIT_MSEC,

} sai_tam_report_interval_unit_t;

/**
* @brief Attributes for TAM report
*/
Expand Down Expand Up @@ -1260,7 +1282,7 @@ typedef enum _sai_tam_report_attr_t
SAI_TAM_REPORT_ATTR_REPORT_MODE,

/**
* @brief Report Interval in micro seconds
* @brief Report Interval
*
* @type sai_uint32_t
* @flags CREATE_AND_SET
Expand Down Expand Up @@ -1289,6 +1311,16 @@ typedef enum _sai_tam_report_attr_t
*/
SAI_TAM_REPORT_ATTR_TEMPLATE_REPORT_INTERVAL,

/**
* @brief Report Interval Units
*
* @type sai_tam_report_interval_unit_t
* @flags CREATE_AND_SET
* @default SAI_TAM_REPORT_INTERVAL_UNIT_USEC
* @validonly SAI_TAM_REPORT_ATTR_REPORT_MODE == SAI_TAM_REPORT_MODE_BULK
*/
SAI_TAM_REPORT_ATTR_REPORT_INTERVAL_UNIT,

/**
* @brief Number of time slices per report
*
Expand Down

0 comments on commit 5c1a60c

Please sign in to comment.