Skip to content

Commit e84c11c

Browse files
authored
Link Debounce Feature (#2245)
Signed-off-by: JaiOCP <jai.kumar@broadcom.com>
1 parent c72635e commit e84c11c

3 files changed

Lines changed: 24 additions & 0 deletions

File tree

inc/saiport.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2913,6 +2913,18 @@ typedef enum _sai_port_attr_t
29132913
*/
29142914
SAI_PORT_ATTR_LLR_RX_STATUS,
29152915

2916+
/**
2917+
* @brief Link up debounce time in microseconds
2918+
*
2919+
* 0 means no delay time so link up events are immediately delivered as usual
2920+
* This attribute overrides the switch level debounce configuration
2921+
*
2922+
* @type sai_uint32_t
2923+
* @flags CREATE_AND_SET
2924+
* @default 0
2925+
*/
2926+
SAI_PORT_ATTR_LINK_UP_DEBOUNCE_TIMEOUT,
2927+
29162928
/**
29172929
* @brief End of attributes
29182930
*/

inc/saiswitch.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3539,6 +3539,17 @@ typedef enum _sai_switch_attr_t
35393539
*/
35403540
SAI_SWITCH_ATTR_FAST_LINKUP_BER_THRESHOLD,
35413541

3542+
/**
3543+
* @brief Link up debounce time in microseconds
3544+
*
3545+
* 0 means no delay time so link up events are immediately delivered as usual
3546+
*
3547+
* @type sai_uint32_t
3548+
* @flags CREATE_AND_SET
3549+
* @default 0
3550+
*/
3551+
SAI_SWITCH_ATTR_LINK_UP_DEBOUNCE_TIMEOUT,
3552+
35423553
/**
35433554
* @brief End of attributes
35443555
*/

meta/aspell.en.pws

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ couldn
3030
cpp
3131
cpu
3232
CtlOS
33+
debounce
3334
decap
3435
decapsulation
3536
Decrement

0 commit comments

Comments
 (0)