Skip to content

Commit

Permalink
Option 3 Header file changes
Browse files Browse the repository at this point in the history
Signed-off-by: Rajkumar P R <[email protected]>
  • Loading branch information
rajkumar38 committed Apr 26, 2024
1 parent 9b1ba6f commit 45087e9
Show file tree
Hide file tree
Showing 6 changed files with 107 additions and 0 deletions.
42 changes: 42 additions & 0 deletions inc/saicounter.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ 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 @@ -78,6 +81,45 @@ 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
13 changes: 13 additions & 0 deletions inc/saiport.h
Original file line number Diff line number Diff line change
Expand Up @@ -2517,6 +2517,19 @@ typedef enum _sai_port_attr_t
*/
SAI_PORT_ATTR_POE_PORT_ID,

/**
* @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_PORT_ATTR_SELECTIVE_COUNTER_LIST,

/**
* @brief End of attributes
*/
Expand Down
13 changes: 13 additions & 0 deletions inc/saiqueue.h
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,19 @@ typedef enum _sai_queue_attr_t
*/
SAI_QUEUE_ATTR_PFC_CONTINUOUS_DEADLOCK_STATE,

/**
* @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_QUEUE_ATTR_SELECTIVE_COUNTER_LIST,

/**
* @brief End of attributes
*/
Expand Down
13 changes: 13 additions & 0 deletions inc/sairouterinterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,19 @@ typedef enum _sai_router_interface_attr_t
*/
SAI_ROUTER_INTERFACE_ATTR_ADMIN_MPLS_STATE,

/**
* @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_ROUTER_INTERFACE_ATTR_SELECTIVE_COUNTER_LIST,

/**
* @brief End of attributes
*/
Expand Down
13 changes: 13 additions & 0 deletions inc/saitunnel.h
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,19 @@ typedef enum _sai_tunnel_attr_t
*/
SAI_TUNNEL_ATTR_VXLAN_UDP_SPORT_SECURITY,

/**
* @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_TUNNEL_ATTR_SELECTIVE_COUNTER_LIST,

/**
* @brief End of attributes
*/
Expand Down
13 changes: 13 additions & 0 deletions inc/saivlan.h
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,19 @@ typedef enum _sai_vlan_attr_t
*/
SAI_VLAN_ATTR_TAM_OBJECT,

/**
* @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_VLAN_ATTR_SELECTIVE_COUNTER_LIST,

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

0 comments on commit 45087e9

Please sign in to comment.