File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ typedef enum _sai_switch_attr_t
5858 * @flags CREATE_AND_SET
5959 * @default SAI_PORT_PTP_MODE_NONE
6060 */
61- SAI_SWITCH_ATTR_PTP_MODE ,
61+ SAI_SWITCH_ATTR_PORT_PTP_MODE ,
6262
6363 // ... existing attributes ...
6464} sai_switch_attr_t ;
@@ -68,15 +68,15 @@ typedef enum _sai_switch_attr_t
6868``` c
6969// Set global PTP configuration at switch level
7070sai_attribute_t attr;
71- attr.id = SAI_SWITCH_ATTR_PTP_MODE ;
71+ attr.id = SAI_SWITCH_ATTR_PORT_PTP_MODE ;
7272attr.value.s32 = SAI_PORT_PTP_MODE_SINGLE_STEP_TIMESTAMP;
7373
7474sai_status_t status = sai_switch_api->set_switch_attribute (
7575 switch_id,
7676 &attr);
7777
7878// Get global PTP configuration
79- attr.id = SAI_SWITCH_ATTR_PTP_MODE ;
79+ attr.id = SAI_SWITCH_ATTR_PORT_PTP_MODE ;
8080status = sai_switch_api->get_switch_attribute(
8181 switch_id,
8282 1,
Original file line number Diff line number Diff line change @@ -3207,7 +3207,7 @@ typedef enum _sai_switch_attr_t
32073207 * @flags CREATE_AND_SET
32083208 * @default SAI_PORT_PTP_MODE_NONE
32093209 */
3210- SAI_SWITCH_ATTR_PTP_MODE ,
3210+ SAI_SWITCH_ATTR_PORT_PTP_MODE ,
32113211
32123212 /**
32133213 * @brief End of attributes
You can’t perform that action at this time.
0 commit comments