Skip to content

Commit ff11529

Browse files
committed
Fix name to make checker hapy
Signed-off-by: Rich Sugarman <rsugarman@nvidia.com>
1 parent b94bad2 commit ff11529

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

doc/SAI-Proposal-Global-PTP-Configuration.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
7070
sai_attribute_t attr;
71-
attr.id = SAI_SWITCH_ATTR_PTP_MODE;
71+
attr.id = SAI_SWITCH_ATTR_PORT_PTP_MODE;
7272
attr.value.s32 = SAI_PORT_PTP_MODE_SINGLE_STEP_TIMESTAMP;
7373

7474
sai_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;
8080
status = sai_switch_api->get_switch_attribute(
8181
switch_id,
8282
1,

inc/saiswitch.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)