From df6bd4cc7eb0b3639881be1b498677d0ee3a8001 Mon Sep 17 00:00:00 2001 From: Harjot Singh Date: Wed, 10 Jul 2024 14:43:08 -0700 Subject: [PATCH 1/2] Adding support to get a list of all reachable switch-id's from a fabric port Signed-off-by: Harjot Singh --- doc/VoQ/SAI-Proposal-VoQ-Switch.md | 16 ++++++++++++++++ inc/saiport.h | 9 +++++++++ 2 files changed, 25 insertions(+) diff --git a/doc/VoQ/SAI-Proposal-VoQ-Switch.md b/doc/VoQ/SAI-Proposal-VoQ-Switch.md index b215de547..405c9ace9 100644 --- a/doc/VoQ/SAI-Proposal-VoQ-Switch.md +++ b/doc/VoQ/SAI-Proposal-VoQ-Switch.md @@ -764,6 +764,22 @@ typedef enum _sai_port_stat_t } sai_port_stat_t; ``` +### 2.3.9 Fabric Port Reachability List + +The port reachability list attribute returns a list, that has all the remote switch ID reachable through this fabric port. The reachability list attribute +can be queried on each fabric port retrieved from the fabric port list switch attribute. + +```c + +/** +* @brief Fabric port reachability for all remote reachable switches +* +* @type sai_u16_list_t +* @flags READ_ONLY +*/ +SAI_PORT_ATTR_FABRIC_REACHABILITY_LIST, +``` + ## 2.4 Queue Attributes, Types, and APIs ## 2.4.1 New Queue Types diff --git a/inc/saiport.h b/inc/saiport.h index 7489c9188..c6dbe1497 100644 --- a/inc/saiport.h +++ b/inc/saiport.h @@ -2521,12 +2521,21 @@ typedef enum _sai_port_attr_t SAI_PORT_ATTR_POE_PORT_ID, /** +<<<<<<< HEAD * @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 Fabric port reachability for all remote reachable switches + * + * @type sai_u16_list_t + * @flags READ_ONLY + */ + SAI_PORT_ATTR_FABRIC_REACHABILITY_LIST, +>>>>>>> 18136be (Adding support to get a list of all reachable switch-id's from a fabric port) /** * @brief End of attributes From 7c25ccdb2d956ceed846c4409fe5d30b68d14bc0 Mon Sep 17 00:00:00 2001 From: Harjot Singh Date: Tue, 30 Jul 2024 13:33:24 -0700 Subject: [PATCH 2/2] Fixed the brief message Signed-off-by: Harjot Singh --- doc/VoQ/SAI-Proposal-VoQ-Switch.md | 2 +- inc/saiport.h | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/doc/VoQ/SAI-Proposal-VoQ-Switch.md b/doc/VoQ/SAI-Proposal-VoQ-Switch.md index 405c9ace9..a75e40313 100644 --- a/doc/VoQ/SAI-Proposal-VoQ-Switch.md +++ b/doc/VoQ/SAI-Proposal-VoQ-Switch.md @@ -772,7 +772,7 @@ can be queried on each fabric port retrieved from the fabric port list switch at ```c /** -* @brief Fabric port reachability for all remote reachable switches +* @brief List of switch id's of all remote reachable switches * * @type sai_u16_list_t * @flags READ_ONLY diff --git a/inc/saiport.h b/inc/saiport.h index c6dbe1497..a26456ced 100644 --- a/inc/saiport.h +++ b/inc/saiport.h @@ -2521,21 +2521,20 @@ typedef enum _sai_port_attr_t SAI_PORT_ATTR_POE_PORT_ID, /** -<<<<<<< HEAD * @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 Fabric port reachability for all remote reachable switches + + /** + * @brief List of switch id's of all remote reachable switches * * @type sai_u16_list_t * @flags READ_ONLY */ SAI_PORT_ATTR_FABRIC_REACHABILITY_LIST, ->>>>>>> 18136be (Adding support to get a list of all reachable switch-id's from a fabric port) /** * @brief End of attributes