Skip to content

Commit a08584b

Browse files
Add SAI_PORT_SERDES_ATTR_CUSTOM_COLLECTION (#2156)
Signed-off-by: Longyin Huang <[email protected]>
1 parent 2f583d4 commit a08584b

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

inc/saiport.h

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4115,6 +4115,45 @@ typedef enum _sai_port_serdes_attr_t
41154115
*/
41164116
SAI_PORT_SERDES_ATTR_RX_PRECODING,
41174117

4118+
/**
4119+
* @brief A collection of custom serdes attributes
4120+
*
4121+
* The value is of type sai_json_t, which can include multiple custom serdes
4122+
* attributes. This allows vendor-specific serdes attributes to be forwarded
4123+
* in a JSON string without the sender needing to know the details. The
4124+
* sender simply passes along the data, vendor-defined rules determine which
4125+
* attributes and values to include in different situations, and the vendor
4126+
* SDK interprets the JSON accordingly.
4127+
*
4128+
* Example of the JSON object:
4129+
* {
4130+
* "attributes": [
4131+
* {
4132+
* "attr_xyz": {
4133+
* "sai_metadata": {
4134+
* "sai_attr_value_type": "SAI_ATTR_VALUE_TYPE_INT32_LIST"
4135+
* },
4136+
* "value": [10, 10, 10, 10]
4137+
* }
4138+
* },
4139+
* {
4140+
* "attr_abc": {
4141+
* "sai_metadata": {
4142+
* "sai_attr_value_type": "SAI_ATTR_VALUE_TYPE_INT32_LIST"
4143+
* },
4144+
* "value": [20, 20, 20, 20]
4145+
* }
4146+
* },
4147+
* ...
4148+
* ]
4149+
* }
4150+
*
4151+
* @type sai_json_t
4152+
* @flags CREATE_AND_SET
4153+
* @default internal
4154+
*/
4155+
SAI_PORT_SERDES_ATTR_CUSTOM_COLLECTION,
4156+
41184157
/**
41194158
* @brief End of attributes
41204159
*/

0 commit comments

Comments
 (0)