From 7455ddfe65a6f7c0a2e8514a2b7dc0650036f896 Mon Sep 17 00:00:00 2001 From: mikeberesford <69360661+mikeberesford@users.noreply.github.com> Date: Thu, 18 Jul 2024 10:48:40 -0700 Subject: [PATCH] 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 --- inc/saiport.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/inc/saiport.h b/inc/saiport.h index 5d36705c9..7489c9188 100644 --- a/inc/saiport.h +++ b/inc/saiport.h @@ -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 */