Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding support to get a list of all reachable switch-id's from a fabr… #2047

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions doc/VoQ/SAI-Proposal-VoQ-Switch.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 List of switch id's of 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
Expand Down
8 changes: 8 additions & 0 deletions inc/saiport.h
Original file line number Diff line number Diff line change
Expand Up @@ -2528,6 +2528,14 @@ typedef enum _sai_port_attr_t
*/
SAI_PORT_ATTR_JSON_FORMATTED_DEBUG_DATA_SIZE,

/**
* @brief List of switch id's of all remote reachable switches
*
* @type sai_u16_list_t
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see data-type of switch-id as "sai_uint32_t". Should it be sai_u32_list_t ?

* @flags READ_ONLY
*/
SAI_PORT_ATTR_FABRIC_REACHABILITY_LIST,

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