Skip to content

Commit a3c0d22

Browse files
Add SAI_PORT_ATTR_PRBS_PATTERN and enum list of polynomials
Signed-off-by: Chris Nitin Adonis Petrus <cpetrus@marvell.com>
1 parent a189d93 commit a3c0d22

2 files changed

Lines changed: 68 additions & 0 deletions

File tree

inc/saiport.h

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,58 @@ typedef enum _sai_port_prbs_config_t
563563
SAI_PORT_PRBS_CONFIG_ENABLE_TX
564564
} sai_port_prbs_config_t;
565565

566+
/**
567+
* @brief Attribute data for #SAI_PORT_ATTR_PRBS_PATTERN
568+
* PRBS polynomial pattern
569+
*/
570+
typedef enum _sai_port_prbs_pattern_t
571+
{
572+
/** Vendor determined PRBS polynomial pattern */
573+
SAI_PORT_PRBS_PATTERN_AUTO,
574+
575+
/** PRBS-7 polynomial pattern */
576+
SAI_PORT_PRBS_PATTERN_PRBS7,
577+
578+
/** PRBS-9 polynomial pattern */
579+
SAI_PORT_PRBS_PATTERN_PRBS9,
580+
581+
/** PRBS-11 polynomial pattern */
582+
SAI_PORT_PRBS_PATTERN_PRBS11,
583+
584+
/** PRBS-13 polynomial pattern */
585+
SAI_PORT_PRBS_PATTERN_PRBS13,
586+
587+
/** PRBS-15 polynomial pattern */
588+
SAI_PORT_PRBS_PATTERN_PRBS15,
589+
590+
/** PRBS-16 polynomial pattern */
591+
SAI_PORT_PRBS_PATTERN_PRBS16,
592+
593+
/** PRBS-23 polynomial pattern */
594+
SAI_PORT_PRBS_PATTERN_PRBS23,
595+
596+
/** PRBS-31 polynomial pattern */
597+
SAI_PORT_PRBS_PATTERN_PRBS31,
598+
599+
/** PRBS-32 polynomial pattern */
600+
SAI_PORT_PRBS_PATTERN_PRBS32,
601+
602+
/** PRBS-58 polynomial pattern */
603+
SAI_PORT_PRBS_PATTERN_PRBS58,
604+
605+
/** PRBS-13Q polynomial pattern */
606+
SAI_PORT_PRBS_PATTERN_PRBS13Q,
607+
608+
/** PRBS-31Q polynomial pattern */
609+
SAI_PORT_PRBS_PATTERN_PRBS31Q,
610+
611+
/** SSPRQ polynomial pattern */
612+
SAI_PORT_PRBS_PATTERN_SSPRQ,
613+
614+
/** Custom range base value */
615+
SAI_PORT_PRBS_PATTERN_CUSTOM_RANGE_BASE = 0x10000000
616+
} sai_port_prbs_pattern_t;
617+
566618
/**
567619
* @brief Attribute data for #SAI_PORT_CONNECTOR_ATTR_FAILOVER_MODE
568620
* Used for Failover mode configuration on port
@@ -1972,9 +2024,13 @@ typedef enum _sai_port_attr_t
19722024
/**
19732025
* @brief Port PRBS Polynomial
19742026
*
2027+
* Deprecated. Use SAI_PORT_ATTR_PRBS_PATTERN.
2028+
* This attribute is mutually exclusive with SAI_PORT_ATTR_PRBS_PATTERN.
2029+
*
19752030
* @type sai_uint32_t
19762031
* @flags CREATE_AND_SET
19772032
* @default internal
2033+
* @deprecated true
19782034
*/
19792035
SAI_PORT_ATTR_PRBS_POLYNOMIAL,
19802036

@@ -2965,6 +3021,17 @@ typedef enum _sai_port_attr_t
29653021
*/
29663022
SAI_PORT_ATTR_PTP_PEER_MEAN_PATH_DELAY,
29673023

3024+
/**
3025+
* @brief Port PRBS Polynomial Pattern
3026+
*
3027+
* This attribute is mutually exclusive with the deprecated SAI_PORT_ATTR_PRBS_POLYNOMIAL.
3028+
*
3029+
* @type sai_port_prbs_pattern_t
3030+
* @flags CREATE_AND_SET
3031+
* @default SAI_PORT_PRBS_PATTERN_AUTO
3032+
*/
3033+
SAI_PORT_ATTR_PRBS_PATTERN,
3034+
29683035
/**
29693036
* @brief End of attributes
29703037
*/

meta/acronyms.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ SRV6 - Segment Routing with IPv6
163163
SSCI - Short Secure Channel Identifier
164164
SSH - Secure Shell
165165
SSL - Secure Socket Layer
166+
SSPRQ - Short Stress Pattern Random Quaternary
166167
STP - Spanning Tree Protocol
167168
SYNCE - Synchronous Ethernet
168169
TC - Traffic Control

0 commit comments

Comments
 (0)