Skip to content

Commit 1a19231

Browse files
committed
Update OCS port stat ID definition, only keep an unknown stat ID, more IDs can be added as needed
Signed-off-by: Nathan Ni <nathan.ni@coherent.com>
1 parent 658be43 commit 1a19231

2 files changed

Lines changed: 13 additions & 9 deletions

File tree

experimental/saiexperimentalocs.h

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -218,23 +218,21 @@ typedef enum _sai_ocs_port_attr_t
218218
* @brief End of attributes
219219
*/
220220
SAI_OCS_PORT_ATTR_END,
221+
222+
/** Custom range base value */
223+
SAI_OCS_PORT_ATTR_CUSTOM_RANGE_START = 0x10000000,
224+
225+
/** End of custom range base */
226+
SAI_OCS_PORT_ATTR_CUSTOM_RANGE_END,
221227
} sai_ocs_port_attr_t;
222228

223229
/**
224230
* @brief OCS port counter IDs in sai_get_ocs_port_stats() call
225-
*
226-
* @flags ranges
227231
*/
228232
typedef enum _sai_ocs_port_stat_t
229233
{
230-
/** OCS port stat range start */
231-
SAI_OCS_PORT_STAT_START,
232-
233234
/** OCS port stat unknown, it is used to make build pass, more stats can be added later. */
234235
SAI_OCS_PORT_STAT_UNKNOWN,
235-
236-
/** OCS port stat range end */
237-
SAI_OCS_PORT_STAT_END,
238236
} sai_ocs_port_stat_t;
239237

240238
/**
@@ -439,6 +437,12 @@ typedef enum _sai_ocs_cross_connect_factory_data_attr_t
439437
* @brief End of attributes
440438
*/
441439
SAI_OCS_CROSS_CONNECT_FACTORY_DATA_ATTR_END,
440+
441+
/** Custom range base value */
442+
SAI_OCS_CROSS_CONNECT_FACTORY_DATA_ATTR_CUSTOM_RANGE_START = 0x10000000,
443+
444+
/** End of custom range base */
445+
SAI_OCS_CROSS_CONNECT_FACTORY_DATA_ATTR_CUSTOM_RANGE_END,
442446
} sai_ocs_cross_connect_factory_data_attr_t;
443447

444448
/**

meta/acronyms.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,9 @@ NTPSERVER - Network Time Protocol Server
118118
NVGRE - Network Virtualization using Generic Routing Encapsulation
119119
OA - Optical Amplifier
120120
OAM - Operations Administration and Maintenance
121+
OCS - Optical Circuit Switch
121122
ORL - Optical Return Loss
122123
OTN - Optical Transport Network
123-
OCS - Optical Circuit Switch
124124
OUI - Organizationally Unique Identifier
125125
P4RT - Programming Protocol-independent Packet Processors Runtime
126126
PAM4 - Pulse Amplitude Modulation 4-level

0 commit comments

Comments
 (0)