File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -395,6 +395,9 @@ typedef enum _sai_port_priority_flow_control_mode_t
395395
396396/**
397397 * @brief PTP mode
398+ * These modes can be used at the port and switch level.
399+ * All ports use the value set at the switch level unless explicitly configured
400+ * at the port level to a value other than SAI_PORT_PTP_MODE_NONE.
398401 */
399402typedef enum _sai_port_ptp_mode_t
400403{
Original file line number Diff line number Diff line change @@ -634,22 +634,6 @@ typedef enum _sai_packet_trim_queue_resolution_mode_t
634634
635635} sai_packet_trim_queue_resolution_mode_t ;
636636
637- /**
638- * @brief Global PTP configuration
639- */
640- typedef enum _sai_switch_ptp_mode_t
641- {
642- /** None - per-port configuration can be used to switch PTP on for a port */
643- SAI_SWITCH_PTP_MODE_NONE ,
644-
645- /** One-step - all ports use one-step PTP mode */
646- SAI_SWITCH_PTP_MODE_SINGLE_STEP_TIMESTAMP ,
647-
648- /** Two-step - all ports use two-step PTP mode */
649- SAI_SWITCH_PTP_MODE_TWO_STEP_TIMESTAMP
650-
651- } sai_switch_ptp_mode_t ;
652-
653637/**
654638 * @brief Attribute Id in sai_set_switch_attribute() and
655639 * sai_get_switch_attribute() calls.
@@ -3219,9 +3203,9 @@ typedef enum _sai_switch_attr_t
32193203 * Global PTP mode configuration for the switch.
32203204 * Applies to all ports unless overridden by port-specific settings.
32213205 *
3222- * @type sai_switch_ptp_mode_t
3206+ * @type sai_port_ptp_mode_t
32233207 * @flags CREATE_AND_SET
3224- * @default SAI_SWITCH_PTP_MODE_NONE
3208+ * @default SAI_PORT_PTP_MODE_NONE
32253209 */
32263210 SAI_SWITCH_ATTR_PTP_MODE ,
32273211
You can’t perform that action at this time.
0 commit comments