Skip to content

Commit 03a9a17

Browse files
Add SAI_PORT_SERDES_ATTR_CUSTOM_COLLECTION
Signed-off-by: Longyin Huang <longhuan@cisco.com>
1 parent 93d80b9 commit 03a9a17

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

inc/saiport.h

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4104,6 +4104,45 @@ typedef enum _sai_port_serdes_attr_t
41044104
*/
41054105
SAI_PORT_SERDES_ATTR_RX_PRECODING,
41064106

4107+
/**
4108+
* @brief A collection of custom serdes attributes
4109+
*
4110+
* The value is of type sai_json_t, which can include multiple custom serdes
4111+
* attributes. This allows vendor-specific serdes attributes to be forwarded
4112+
* in a JSON string without the sender needing to know the details. The
4113+
* sender simply passes along the data, vendor-defined rules determine which
4114+
* attributes and values to include in different situations, and the vendor
4115+
* SDK interprets the JSON accordingly.
4116+
*
4117+
* Example of the JSON object:
4118+
* {
4119+
* "attributes": [
4120+
* {
4121+
* "attr_xyz": {
4122+
* "sai_metadata": {
4123+
* "sai_attr_value_type": "SAI_ATTR_VALUE_TYPE_INT32_LIST"
4124+
* },
4125+
* "value": [10, 10, 10, 10]
4126+
* }
4127+
* },
4128+
* {
4129+
* "attr_abc": {
4130+
* "sai_metadata": {
4131+
* "sai_attr_value_type": "SAI_ATTR_VALUE_TYPE_INT32_LIST"
4132+
* },
4133+
* "value": [20, 20, 20, 20]
4134+
* }
4135+
* },
4136+
* ...
4137+
* ]
4138+
* }
4139+
*
4140+
* @type sai_json_t
4141+
* @flags CREATE_AND_SET
4142+
* @default internal
4143+
*/
4144+
SAI_PORT_SERDES_ATTR_CUSTOM_COLLECTION,
4145+
41074146
/**
41084147
* @brief End of attributes
41094148
*/

0 commit comments

Comments
 (0)