diff --git a/doc/TAM/SAI-Proposal-TAM-stream-telemetry.md b/doc/TAM/SAI-Proposal-TAM-stream-telemetry.md index dbfd98290..86072f65d 100644 --- a/doc/TAM/SAI-Proposal-TAM-stream-telemetry.md +++ b/doc/TAM/SAI-Proposal-TAM-stream-telemetry.md @@ -450,7 +450,7 @@ typedef enum _sai_switch_attr_t { // ... - /** + /** * @brief Tam telemetry reporting byte size of chunk * * Defines the maximum number of bytes in a single report. @@ -460,22 +460,21 @@ typedef enum _sai_switch_attr_t * Because we don't expect the IPFIX record to be fragmented. * * @type sai_uint32_t - * @flags CREATE_AND_SET + * @flags CREATE_ONLY * @default 65535 */ SAI_SWITCH_ATTR_TAM_REPORT_CHUNK_SIZE, - /** * @brief Tam telemetry chunk count * * This value indicates how many chunks of reports that can be restored in the buffer. * If the data structure is a ring buffer, the byte size of ring buffer is chunk count * chunk size. - * 1 means that there is only one chunk of report in the buffer. + * The default value, 0, means that this value was determined by the vendor. * If the buffer is full, new incoming data will be dropped. * * @type sai_uint32_t * @flags CREATE_ONLY - * @default 1 + * @default 0 */ SAI_SWITCH_ATTR_TAM_CHUNK_COUNT, @@ -732,7 +731,8 @@ typedef enum _sai_tam_tel_type_attr_t * @brief The mode of TAM telemetry type * * @type sai_tam_tel_type_mode_t - * @flags MANDATORY_ON_CREATE | CREATE_ONLY + * @flags CREATE_ONLY + * @default SAI_TAM_TEL_TYPE_MODE_SINGLE_TYPE */ SAI_TAM_TEL_TYPE_ATTR_MODE, @@ -989,14 +989,14 @@ typedef struct _sai_stat_st_capability_list_t typedef enum _sai_tam_tel_type_mode_t { /** - * @brief This TAM telemetry type supports to bound multiple counter types + * @brief This TAM telemetry type supports to bound only one counter type */ - SAI_TAM_TEL_TYPE_MODE_MIXED_TYPE, + SAI_TAM_TEL_TYPE_MODE_SINGLE_TYPE, /** - * @brief This TAM telemetry type supports to bound only one counter type + * @brief This TAM telemetry type supports to bound multiple counter types */ - SAI_TAM_TEL_TYPE_MODE_SINGLE_TYPE, + SAI_TAM_TEL_TYPE_MODE_MIXED_TYPE, } sai_tam_tel_type_mode_t; diff --git a/inc/saiswitch.h b/inc/saiswitch.h index 92667cf9e..faec50716 100644 --- a/inc/saiswitch.h +++ b/inc/saiswitch.h @@ -3094,7 +3094,7 @@ typedef enum _sai_switch_attr_t * Because we don't expect the IPFIX record to be fragmented. * * @type sai_uint32_t - * @flags CREATE_AND_SET + * @flags CREATE_ONLY * @default 65535 */ SAI_SWITCH_ATTR_TAM_REPORT_CHUNK_SIZE, @@ -3104,12 +3104,12 @@ typedef enum _sai_switch_attr_t * * This value indicates how many chunks of reports that can be restored in the buffer. * If the data structure is a ring buffer, the byte size of ring buffer is chunk count * chunk size. - * 1 means that there is only one chunk of report in the buffer. + * The default value, 0, means that this value was determined by the vendor. * If the buffer is full, new incoming data will be dropped. * * @type sai_uint32_t * @flags CREATE_ONLY - * @default 1 + * @default 0 */ SAI_SWITCH_ATTR_TAM_CHUNK_COUNT, diff --git a/inc/saitam.h b/inc/saitam.h index cad950970..3101e9945 100644 --- a/inc/saitam.h +++ b/inc/saitam.h @@ -913,14 +913,14 @@ typedef enum _sai_tam_telemetry_type_t typedef enum _sai_tam_tel_type_mode_t { /** - * @brief This TAM telemetry type supports to bound multiple counter types + * @brief This TAM telemetry type supports to bound only one counter type */ - SAI_TAM_TEL_TYPE_MODE_MIXED_TYPE, + SAI_TAM_TEL_TYPE_MODE_SINGLE_TYPE, /** - * @brief This TAM telemetry type supports to bound only one counter type + * @brief This TAM telemetry type supports to bound multiple counter types */ - SAI_TAM_TEL_TYPE_MODE_SINGLE_TYPE, + SAI_TAM_TEL_TYPE_MODE_MIXED_TYPE, } sai_tam_tel_type_mode_t; @@ -1125,7 +1125,8 @@ typedef enum _sai_tam_tel_type_attr_t * @brief The mode of TAM telemetry type * * @type sai_tam_tel_type_mode_t - * @flags MANDATORY_ON_CREATE | CREATE_ONLY + * @flags CREATE_ONLY + * @default SAI_TAM_TEL_TYPE_MODE_SINGLE_TYPE */ SAI_TAM_TEL_TYPE_ATTR_MODE,