File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 */
You can’t perform that action at this time.
0 commit comments