From 62e78231de5a78cfa7b99a4b937752592916a156 Mon Sep 17 00:00:00 2001 From: Marian Pritsak Date: Fri, 17 Jan 2025 01:27:44 +0200 Subject: [PATCH] Fix naming Signed-off-by: Marian Pritsak --- inc/saiacl.h | 12 ++++++------ inc/saiport.h | 2 +- inc/saiqueue.h | 2 +- inc/saiswitch.h | 26 +++++++++++++------------- 4 files changed, 21 insertions(+), 21 deletions(-) diff --git a/inc/saiacl.h b/inc/saiacl.h index 388004af9..1dfacde61 100644 --- a/inc/saiacl.h +++ b/inc/saiacl.h @@ -289,8 +289,8 @@ typedef enum _sai_acl_action_type_t /** Next Chain Group */ SAI_ACL_ACTION_TYPE_CHAIN_REDIRECT = 0x00000038, - /** Disable packet trimming */ - SAI_ACL_ACTION_TYPE_DISABLE_TRIMMING = 0x00000039, + /** Disable packet trim */ + SAI_ACL_ACTION_TYPE_PACKET_TRIM_DISABLE = 0x00000039, } sai_acl_action_type_t; /** @@ -3293,20 +3293,20 @@ typedef enum _sai_acl_entry_attr_t SAI_ACL_ENTRY_ATTR_ACTION_CHAIN_REDIRECT = SAI_ACL_ENTRY_ATTR_ACTION_START + 0x38, /** - * @brief Disable packet trimming for a given match condition. + * @brief Disable packet trim for a given match condition. * - * This rule takes effect only when packet trimming is configured on a buffer profile of a queue to which a packet belongs. + * This rule takes effect only when packet trim is configured on a buffer profile of a queue to which a packet belongs. * * @type sai_acl_action_data_t bool * @flags CREATE_AND_SET * @default disabled */ - SAI_ACL_ENTRY_ATTR_ACTION_DISABLE_TRIMMING = SAI_ACL_ENTRY_ATTR_ACTION_START + 0x39, + SAI_ACL_ENTRY_ATTR_ACTION_PACKET_TRIM_DISABLE = SAI_ACL_ENTRY_ATTR_ACTION_START + 0x39, /** * @brief End of Rule Actions */ - SAI_ACL_ENTRY_ATTR_ACTION_END = SAI_ACL_ENTRY_ATTR_ACTION_DISABLE_TRIMMING, + SAI_ACL_ENTRY_ATTR_ACTION_END = SAI_ACL_ENTRY_ATTR_ACTION_PACKET_TRIM_DISABLE, /** * @brief End of ACL Entry attributes diff --git a/inc/saiport.h b/inc/saiport.h index f215a0454..774757abc 100644 --- a/inc/saiport.h +++ b/inc/saiport.h @@ -3353,7 +3353,7 @@ typedef enum _sai_port_stat_t SAI_PORT_STAT_IF_IN_FEC_CORRECTED_BITS, /** Packets trimmed due to failed shared buffer admission [uint64_t] */ - SAI_PORT_STAT_TRIMMED_PACKETS, + SAI_PORT_STAT_TRIM_PACKETS, /** Port stat in drop reasons range start */ SAI_PORT_STAT_IN_DROP_REASON_RANGE_BASE = 0x00001000, diff --git a/inc/saiqueue.h b/inc/saiqueue.h index 3aca453fe..2d481854c 100644 --- a/inc/saiqueue.h +++ b/inc/saiqueue.h @@ -419,7 +419,7 @@ typedef enum _sai_queue_stat_t SAI_QUEUE_STAT_DELAY_WATERMARK_NS = 0x00000027, /** Packets trimmed due to failed admission [uint64_t] */ - SAI_QUEUE_STAT_TRIMMED_PACKETS = 0x00000028, + SAI_QUEUE_STAT_TRIM_PACKETS = 0x00000028, /** Custom range base value */ SAI_QUEUE_STAT_CUSTOM_RANGE_BASE = 0x10000000 diff --git a/inc/saiswitch.h b/inc/saiswitch.h index 83ff3d40d..c378fcff1 100644 --- a/inc/saiswitch.h +++ b/inc/saiswitch.h @@ -613,7 +613,7 @@ typedef enum _sai_switch_hostif_oper_status_update_mode_t /** * @brief Attribute data for SAI_SWITCH_ATTR_HOSTIF_OPER_STATUS_UPDATE_MODE. */ -typedef enum _sai_packet_trimming_queue_resolution_mode_t +typedef enum _sai_packet_trim_queue_resolution_mode_t { /** * @brief Static queue resolution. @@ -621,7 +621,7 @@ typedef enum _sai_packet_trimming_queue_resolution_mode_t * In this mode, a new queue for the trimmed packet is set directly * by the application. */ - SAI_PACKET_TRIMMING_QUEUE_RESOLUTION_MODE_STATIC, + SAI_PACKET_TRIM_QUEUE_RESOLUTION_MODE_STATIC, /** * @brief Dynamic queue resolution. @@ -630,9 +630,9 @@ typedef enum _sai_packet_trimming_queue_resolution_mode_t * using QOS maps, applied to a new DSCP value that was provided * for a trimmed packet. */ - SAI_PACKET_TRIMMING_QUEUE_RESOLUTION_MODE_DYNAMIC, + SAI_PACKET_TRIM_QUEUE_RESOLUTION_MODE_DYNAMIC, -} sai_packet_trimming_queue_resolution_mode_t; +} sai_packet_trim_queue_resolution_mode_t; /** * @brief Attribute Id in sai_set_switch_attribute() and @@ -3155,35 +3155,35 @@ typedef enum _sai_switch_attr_t * @flags CREATE_AND_SET * @default 128 */ - SAI_SWITCH_ATTR_PACKET_TRIMMING_SIZE, + SAI_SWITCH_ATTR_PACKET_TRIM_SIZE, /** - * @brief New packet trimming DSCP value + * @brief New packet trim DSCP value * * @type sai_uint8_t * @flags CREATE_AND_SET * @default 0 */ - SAI_SWITCH_ATTR_PACKET_TRIMMING_DSCP_VALUE, + SAI_SWITCH_ATTR_PACKET_TRIM_DSCP_VALUE, /** * @brief Queue mapping mode for a trimmed packet * - * @type sai_packet_trimming_queue_resolution_mode_t + * @type sai_packet_trim_queue_resolution_mode_t * @flags CREATE_AND_SET - * @default SAI_PACKET_TRIMMING_QUEUE_RESOLUTION_MODE_STATIC + * @default SAI_PACKET_TRIM_QUEUE_RESOLUTION_MODE_STATIC */ - SAI_SWITCH_ATTR_PACKET_TRIMMING_QUEUE_RESOLUTION_MODE, + SAI_SWITCH_ATTR_PACKET_TRIM_QUEUE_RESOLUTION_MODE, /** - * @brief New packet trimming queue index + * @brief New packet trim queue index * * @type sai_uint8_t * @flags CREATE_AND_SET * @default 0 - * @validonly SAI_SWITCH_ATTR_PACKET_TRIMMING_QUEUE_RESOLUTION_MODE == SAI_PACKET_TRIMMING_QUEUE_RESOLUTION_MODE_STATIC + * @validonly SAI_SWITCH_ATTR_PACKET_TRIM_QUEUE_RESOLUTION_MODE == SAI_PACKET_TRIM_QUEUE_RESOLUTION_MODE_STATIC */ - SAI_SWITCH_ATTR_PACKET_TRIMMING_QUEUE_INDEX, + SAI_SWITCH_ATTR_PACKET_TRIM_QUEUE_INDEX, /** * @brief End of attributes