Skip to content

Commit

Permalink
Update SAI header
Browse files Browse the repository at this point in the history
Signed-off-by: Ze Gan <[email protected]>
  • Loading branch information
Pterosaur committed Oct 12, 2024
1 parent 0be9fb3 commit e62f676
Showing 1 changed file with 77 additions and 0 deletions.
77 changes: 77 additions & 0 deletions inc/saitam.h
Original file line number Diff line number Diff line change
Expand Up @@ -1334,6 +1334,30 @@ typedef enum _sai_tam_report_attr_t
*/
SAI_TAM_REPORT_ATTR_REPORT_INTERVAL_UNIT,

/**
* @brief Set ID for IPFIX template
*
* According to the IPFIX spec, the available range should be 256-65535.
* The value 0 means the ID will be decided by the vendor's SAI.
*
* @type sai_uint16_t
* @flags CREATE_AND_SET
* @isvlan false
* @default 0
* @validonly SAI_TAM_REPORT_ATTR_TYPE == SAI_TAM_REPORT_TYPE_IPFIX
*/
SAI_TAM_REPORT_ATTR_REPORT_IPFIX_TEMPLATE_ID,

/**
* @brief Query IPFIX template
*
* Return the IPFIX template binary buffer
*
* @type sai_u8_list_t
* @flags READ_ONLY
*/
SAI_TAM_REPORT_ATTR_IPFIX_TEMPLATE,

/**
* @brief End of Attributes
*/
Expand Down Expand Up @@ -1426,6 +1450,23 @@ typedef enum _sai_tam_reporting_unit_t

} sai_tam_reporting_unit_t;

/**
* @brief TAM reporting type
*/
typedef enum _sai_tam_reporting_type_t
{
/**
* @brief Report type is time based
*/
SAI_TAM_REPORTING_TYPE_TIME_BASED,

/**
* @brief Report type is count based
*/
SAI_TAM_REPORTING_TYPE_COUNT_BASED,

} sai_tam_reporting_type_t;

/**
* @brief TAM telemetry attributes
*/
Expand Down Expand Up @@ -1461,6 +1502,7 @@ typedef enum _sai_tam_telemetry_attr_t
* @type sai_tam_reporting_unit_t
* @flags CREATE_AND_SET
* @default SAI_TAM_REPORTING_UNIT_SEC
* @validonly SAI_TAM_TELEMETRY_ATTR_TAM_REPORTING_TYPE == SAI_TAM_REPORTING_TYPE_TIME_BASED
*/
SAI_TAM_TELEMETRY_ATTR_TAM_REPORTING_UNIT,

Expand All @@ -1472,9 +1514,44 @@ typedef enum _sai_tam_telemetry_attr_t
* @type sai_uint32_t
* @flags CREATE_AND_SET
* @default 1
* @validonly SAI_TAM_TELEMETRY_ATTR_TAM_REPORTING_TYPE == SAI_TAM_REPORTING_TYPE_TIME_BASED
*/
SAI_TAM_TELEMETRY_ATTR_REPORTING_INTERVAL,

/**
* @brief Tam telemetry reporting type
*
* @type sai_tam_reporting_type_t
* @flags CREATE_AND_SET
* @default SAI_TAM_REPORTING_TYPE_TIME_BASED
*/
SAI_TAM_TELEMETRY_ATTR_TAM_REPORTING_TYPE,

/**
* @brief Tam telemetry reporting chunk size
*
* defines the size of reporting chunk, which means TAM will report to the collector every time
* if the report count reaches the chunk size.
*
* @type sai_uint32_t
* @flags CREATE_AND_SET
* @default 1
* @validonly SAI_TAM_TELEMETRY_ATTR_TAM_REPORTING_TYPE == SAI_TAM_REPORTING_TYPE_COUNT_BASED
*/
SAI_TAM_TELEMETRY_ATTR_REPORTING_CHUNK_SIZE,

/**
* @brief Tam telemetry cache size
*
* If the collector isn't ready to receive the report, this value indicates how many
* reports that can be cached. 0 means no cache which is the default behavior.
*
* @type sai_uint32_t
* @flags CREATE_AND_SET
* @default 0
*/
SAI_TAM_TELEMETRY_ATTR_CACHE_SIZE,

/**
* @brief End of Attributes
*/
Expand Down

0 comments on commit e62f676

Please sign in to comment.