Skip to content

Commit 7455ddf

Browse files
Add port attribute to get the max debug data size. (#2033)
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 <mberes@google.com>
1 parent dff0e34 commit 7455ddf

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

inc/saiport.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2520,6 +2520,14 @@ typedef enum _sai_port_attr_t
25202520
*/
25212521
SAI_PORT_ATTR_POE_PORT_ID,
25222522

2523+
/**
2524+
* @brief The maximum size of SAI_PORT_ATTR_JSON_FORMATTED_DEBUG_DATA in bytes.
2525+
*
2526+
* @type sai_uint32_t
2527+
* @flags READ_ONLY
2528+
*/
2529+
SAI_PORT_ATTR_JSON_FORMATTED_DEBUG_DATA_SIZE,
2530+
25232531
/**
25242532
* @brief End of attributes
25252533
*/

0 commit comments

Comments
 (0)