Skip to content

Commit

Permalink
Revert "SAI Proposal for Counter enhancement. (opencomputeproject#1941)"
Browse files Browse the repository at this point in the history
This reverts commit f23185d.
  • Loading branch information
dgodwin-nokia committed Nov 5, 2024
1 parent 8b8fa85 commit 7414c76
Show file tree
Hide file tree
Showing 18 changed files with 0 additions and 1,960 deletions.
1,484 changes: 0 additions & 1,484 deletions doc/SAI-Counter-enhancement-hld.md

This file was deleted.

22 changes: 0 additions & 22 deletions inc/saibfd.h
Original file line number Diff line number Diff line change
Expand Up @@ -501,28 +501,6 @@ typedef enum _sai_bfd_session_attr_t
*/
SAI_BFD_SESSION_ATTR_SRV6_SIDLIST_ID,

/**
* @brief Set BFD session statistics counting mode
*
* @type sai_stats_count_mode_t
* @flags CREATE_AND_SET
* @default SAI_STATS_COUNT_MODE_PACKET_AND_BYTE
*/
SAI_BFD_SESSION_ATTR_STATS_COUNT_MODE,

/**
* @brief Attach counter object list
*
* Counter object should be of type Selective.
* Fill (#SAI_COUNTER_ATTR_TYPE with #SAI_COUNTER_TYPE_SELECTIVE).
*
* @type sai_object_list_t
* @flags CREATE_AND_SET
* @objects SAI_OBJECT_TYPE_COUNTER
* @default empty
*/
SAI_BFD_SESSION_ATTR_SELECTIVE_COUNTER_LIST,

/**
* @brief End of attributes
*/
Expand Down
44 changes: 0 additions & 44 deletions inc/saibridge.h
Original file line number Diff line number Diff line change
Expand Up @@ -259,28 +259,6 @@ typedef enum _sai_bridge_port_attr_t
*/
SAI_BRIDGE_PORT_ATTR_ISOLATION_GROUP,

/**
* @brief Set bridge port statistics counting mode
*
* @type sai_stats_count_mode_t
* @flags CREATE_AND_SET
* @default SAI_STATS_COUNT_MODE_PACKET_AND_BYTE
*/
SAI_BRIDGE_PORT_ATTR_STATS_COUNT_MODE,

/**
* @brief Attach counter object list
*
* Counter object should be of type Selective.
* Fill (#SAI_COUNTER_ATTR_TYPE with #SAI_COUNTER_TYPE_SELECTIVE).
*
* @type sai_object_list_t
* @flags CREATE_AND_SET
* @objects SAI_OBJECT_TYPE_COUNTER
* @default empty
*/
SAI_BRIDGE_PORT_ATTR_SELECTIVE_COUNTER_LIST,

/**
* @brief End of attributes
*/
Expand Down Expand Up @@ -585,28 +563,6 @@ typedef enum _sai_bridge_attr_t
*/
SAI_BRIDGE_ATTR_BROADCAST_FLOOD_GROUP,

/**
* @brief Set bridge statistics counting mode
*
* @type sai_stats_count_mode_t
* @flags CREATE_AND_SET
* @default SAI_STATS_COUNT_MODE_PACKET_AND_BYTE
*/
SAI_BRIDGE_ATTR_STATS_COUNT_MODE,

/**
* @brief Attach counter object list
*
* Counter object should be of type Selective.
* Fill (#SAI_COUNTER_ATTR_TYPE with #SAI_COUNTER_TYPE_SELECTIVE).
*
* @type sai_object_list_t
* @flags CREATE_AND_SET
* @objects SAI_OBJECT_TYPE_COUNTER
* @default empty
*/
SAI_BRIDGE_ATTR_SELECTIVE_COUNTER_LIST,

/**
* @brief End of attributes
*/
Expand Down
44 changes: 0 additions & 44 deletions inc/saibuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,28 +83,6 @@ typedef enum _sai_ingress_priority_group_attr_t
*/
SAI_INGRESS_PRIORITY_GROUP_ATTR_INDEX,

/**
* @brief Set ingress priority group statistics counting mode
*
* @type sai_stats_count_mode_t
* @flags CREATE_AND_SET
* @default SAI_STATS_COUNT_MODE_PACKET_AND_BYTE
*/
SAI_INGRESS_PRIORITY_GROUP_ATTR_STATS_COUNT_MODE,

/**
* @brief Attach counter object list
*
* Counter object should be of type Selective.
* Fill (#SAI_COUNTER_ATTR_TYPE with #SAI_COUNTER_TYPE_SELECTIVE).
*
* @type sai_object_list_t
* @flags CREATE_AND_SET
* @objects SAI_OBJECT_TYPE_COUNTER
* @default empty
*/
SAI_INGRESS_PRIORITY_GROUP_ATTR_SELECTIVE_COUNTER_LIST,

/**
* @brief End of attributes
*/
Expand Down Expand Up @@ -369,28 +347,6 @@ typedef enum _sai_buffer_pool_attr_t
*/
SAI_BUFFER_POOL_ATTR_WRED_PROFILE_ID,

/**
* @brief Set buffer pool statistics counting mode
*
* @type sai_stats_count_mode_t
* @flags CREATE_AND_SET
* @default SAI_STATS_COUNT_MODE_PACKET_AND_BYTE
*/
SAI_BUFFER_POOL_ATTR_STATS_COUNT_MODE,

/**
* @brief Attach counter object list
*
* Counter object should be of type Selective.
* Fill (#SAI_COUNTER_ATTR_TYPE with #SAI_COUNTER_TYPE_SELECTIVE).
*
* @type sai_object_list_t
* @flags CREATE_AND_SET
* @objects SAI_OBJECT_TYPE_COUNTER
* @default empty
*/
SAI_BUFFER_POOL_ATTR_SELECTIVE_COUNTER_LIST,

/**
* @brief End of attributes
*/
Expand Down
42 changes: 0 additions & 42 deletions inc/saicounter.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@ typedef enum _sai_counter_type_t
/** Regular */
SAI_COUNTER_TYPE_REGULAR,

/** Selective Counter */
SAI_COUNTER_TYPE_SELECTIVE,

} sai_counter_type_t;

/**
Expand Down Expand Up @@ -81,45 +78,6 @@ typedef enum _sai_counter_attr_t
*/
SAI_COUNTER_ATTR_LABEL,

/**
* @brief Enable/disable packet count
*
* @type bool
* @flags CREATE_ONLY
* @default true
*/
SAI_COUNTER_ATTR_ENABLE_PACKET_COUNT,

/**
* @brief Enable/disable byte count
*
* @type bool
* @flags CREATE_ONLY
* @default true
*/
SAI_COUNTER_ATTR_ENABLE_BYTE_COUNT,

/**
* @brief Object Type of the stat-id
*
* @type sai_object_type_t
* @flags MANDATORY_ON_CREATE | CREATE_ONLY
* @condition SAI_COUNTER_ATTR_TYPE == SAI_COUNTER_TYPE_SELECTIVE
*/
SAI_COUNTER_ATTR_OBJECT_TYPE,

/**
* @brief Stat id list
*
* List of statistics enum mapped to this counter
*
* @type sai_s32_list_t
* @flags CREATE_AND_SET
* @default empty
* @validonly SAI_COUNTER_ATTR_TYPE == SAI_COUNTER_TYPE_SELECTIVE
*/
SAI_COUNTER_ATTR_STAT_ID_LIST,

/**
* @brief End of attributes
*/
Expand Down
22 changes: 0 additions & 22 deletions inc/saiicmpecho.h
Original file line number Diff line number Diff line change
Expand Up @@ -223,28 +223,6 @@ typedef enum _sai_icmp_echo_session_attr_t
*/
SAI_ICMP_ECHO_SESSION_ATTR_STATE,

/**
* @brief Set ICMP echo session statistics counting mode
*
* @type sai_stats_count_mode_t
* @flags CREATE_AND_SET
* @default SAI_STATS_COUNT_MODE_PACKET_AND_BYTE
*/
SAI_ICMP_ECHO_SESSION_ATTR_STATS_COUNT_MODE,

/**
* @brief Attach counter object list
*
* Counter object should be of type Selective.
* Fill (#SAI_COUNTER_ATTR_TYPE with #SAI_COUNTER_TYPE_SELECTIVE).
*
* @type sai_object_list_t
* @flags CREATE_AND_SET
* @objects SAI_OBJECT_TYPE_COUNTER
* @default empty
*/
SAI_ICMP_ECHO_SESSION_ATTR_SELECTIVE_COUNTER_LIST,

/**
* @brief End of attributes
*/
Expand Down
44 changes: 0 additions & 44 deletions inc/saiipsec.h
Original file line number Diff line number Diff line change
Expand Up @@ -372,28 +372,6 @@ typedef enum _sai_ipsec_port_attr_t
*/
SAI_IPSEC_PORT_ATTR_SWITCH_SWITCHING_MODE,

/**
* @brief Set IPSEC port statistics counting mode
*
* @type sai_stats_count_mode_t
* @flags CREATE_AND_SET
* @default SAI_STATS_COUNT_MODE_PACKET_AND_BYTE
*/
SAI_IPSEC_PORT_ATTR_STATS_COUNT_MODE,

/**
* @brief Attach counter object list
*
* Counter object should be of type Selective.
* Fill (#SAI_COUNTER_ATTR_TYPE with #SAI_COUNTER_TYPE_SELECTIVE).
*
* @type sai_object_list_t
* @flags CREATE_AND_SET
* @objects SAI_OBJECT_TYPE_COUNTER
* @default empty
*/
SAI_IPSEC_PORT_ATTR_SELECTIVE_COUNTER_LIST,

/**
* @brief End of IPsec Port attributes
*/
Expand Down Expand Up @@ -653,28 +631,6 @@ typedef enum _sai_ipsec_sa_attr_t
*/
SAI_IPSEC_SA_ATTR_MINIMUM_INGRESS_ESN,

/**
* @brief Set IPSEC SA statistics counting mode
*
* @type sai_stats_count_mode_t
* @flags CREATE_AND_SET
* @default SAI_STATS_COUNT_MODE_PACKET_AND_BYTE
*/
SAI_IPSEC_SA_ATTR_STATS_COUNT_MODE,

/**
* @brief Attach counter object list
*
* Counter object should be of type Selective.
* Fill (#SAI_COUNTER_ATTR_TYPE with #SAI_COUNTER_TYPE_SELECTIVE).
*
* @type sai_object_list_t
* @flags CREATE_AND_SET
* @objects SAI_OBJECT_TYPE_COUNTER
* @default empty
*/
SAI_IPSEC_SA_ATTR_SELECTIVE_COUNTER_LIST,

/**
* @brief End of IPsec Security Association attributes
*/
Expand Down
44 changes: 0 additions & 44 deletions inc/saimacsec.h
Original file line number Diff line number Diff line change
Expand Up @@ -385,28 +385,6 @@ typedef enum _sai_macsec_port_attr_t
*/
SAI_MACSEC_PORT_ATTR_SWITCH_SWITCHING_MODE,

/**
* @brief Set MACSEC port statistics counting mode
*
* @type sai_stats_count_mode_t
* @flags CREATE_AND_SET
* @default SAI_STATS_COUNT_MODE_PACKET_AND_BYTE
*/
SAI_MACSEC_PORT_ATTR_STATS_COUNT_MODE,

/**
* @brief Attach counter object list
*
* Counter object should be of type Selective.
* Fill (#SAI_COUNTER_ATTR_TYPE with #SAI_COUNTER_TYPE_SELECTIVE).
*
* @type sai_object_list_t
* @flags CREATE_AND_SET
* @objects SAI_OBJECT_TYPE_COUNTER
* @default empty
*/
SAI_MACSEC_PORT_ATTR_SELECTIVE_COUNTER_LIST,

/**
* @brief End of MACsec Port attributes
*/
Expand Down Expand Up @@ -480,28 +458,6 @@ typedef enum _sai_macsec_flow_attr_t
*/
SAI_MACSEC_FLOW_ATTR_SC_LIST,

/**
* @brief Set MACSEC flow statistics counting mode
*
* @type sai_stats_count_mode_t
* @flags CREATE_AND_SET
* @default SAI_STATS_COUNT_MODE_PACKET_AND_BYTE
*/
SAI_MACSEC_FLOW_ATTR_STATS_COUNT_MODE,

/**
* @brief Attach counter object list
*
* Counter object should be of type Selective.
* Fill (#SAI_COUNTER_ATTR_TYPE with #SAI_COUNTER_TYPE_SELECTIVE).
*
* @type sai_object_list_t
* @flags CREATE_AND_SET
* @objects SAI_OBJECT_TYPE_COUNTER
* @default empty
*/
SAI_MACSEC_FLOW_ATTR_SELECTIVE_COUNTER_LIST,

/**
* @brief End of MACsec Flow attributes
*/
Expand Down
22 changes: 0 additions & 22 deletions inc/saipolicer.h
Original file line number Diff line number Diff line change
Expand Up @@ -209,28 +209,6 @@ typedef enum _sai_policer_attr_t
*/
SAI_POLICER_ATTR_OBJECT_STAGE = 0x0000000b,

/**
* @brief Set policer statistics counting mode
*
* @type sai_stats_count_mode_t
* @flags CREATE_AND_SET
* @default SAI_STATS_COUNT_MODE_PACKET_AND_BYTE
*/
SAI_POLICER_ATTR_STATS_COUNT_MODE,

/**
* @brief Attach counter object list
*
* Counter object should be of type Selective.
* Fill (#SAI_COUNTER_ATTR_TYPE with #SAI_COUNTER_TYPE_SELECTIVE).
*
* @type sai_object_list_t
* @flags CREATE_AND_SET
* @objects SAI_OBJECT_TYPE_COUNTER
* @default empty
*/
SAI_POLICER_ATTR_SELECTIVE_COUNTER_LIST,

/**
* @brief End of attributes
*/
Expand Down
Loading

0 comments on commit 7414c76

Please sign in to comment.