Skip to content

Commit

Permalink
Add port attribute to get the max debug data size. (#2033)
Browse files Browse the repository at this point in the history
Create a new port attribute to get the max size of the port debug data.
This can be read by the NOS to determine the size of the buffer to
allocate before reading the port debug data.

Signed-off-by: Mike Beresford <[email protected]>
  • Loading branch information
mikeberesford authored Jul 18, 2024
1 parent dff0e34 commit 7455ddf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions inc/saiport.h
Original file line number Diff line number Diff line change
Expand Up @@ -2520,6 +2520,14 @@ typedef enum _sai_port_attr_t
*/
SAI_PORT_ATTR_POE_PORT_ID,

/**
* @brief The maximum size of SAI_PORT_ATTR_JSON_FORMATTED_DEBUG_DATA in bytes.
*
* @type sai_uint32_t
* @flags READ_ONLY
*/
SAI_PORT_ATTR_JSON_FORMATTED_DEBUG_DATA_SIZE,

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

0 comments on commit 7455ddf

Please sign in to comment.