Skip to content

Commit 1f97ad9

Browse files
Add SAI_PORT_ATTR_PRBS_PATTERN and enum list of polynomials (#2262)
Signed-off-by: Chris Nitin Adonis Petrus <cpetrus@marvell.com>
1 parent 58f3208 commit 1f97ad9

2 files changed

Lines changed: 97 additions & 0 deletions

File tree

inc/saiport.h

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,79 @@ 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-10 polynomial pattern */
582+
SAI_PORT_PRBS_PATTERN_PRBS10,
583+
584+
/** PRBS-11 polynomial pattern */
585+
SAI_PORT_PRBS_PATTERN_PRBS11,
586+
587+
/** PRBS-13 polynomial pattern */
588+
SAI_PORT_PRBS_PATTERN_PRBS13,
589+
590+
/** PRBS-15 polynomial pattern */
591+
SAI_PORT_PRBS_PATTERN_PRBS15,
592+
593+
/** PRBS-16 polynomial pattern */
594+
SAI_PORT_PRBS_PATTERN_PRBS16,
595+
596+
/** PRBS-20 polynomial pattern */
597+
SAI_PORT_PRBS_PATTERN_PRBS20,
598+
599+
/** PRBS-23 polynomial pattern */
600+
SAI_PORT_PRBS_PATTERN_PRBS23,
601+
602+
/** PRBS-31 polynomial pattern */
603+
SAI_PORT_PRBS_PATTERN_PRBS31,
604+
605+
/** PRBS-32 polynomial pattern */
606+
SAI_PORT_PRBS_PATTERN_PRBS32,
607+
608+
/** PRBS-49 polynomial pattern */
609+
SAI_PORT_PRBS_PATTERN_PRBS49,
610+
611+
/** PRBS-58 polynomial pattern */
612+
SAI_PORT_PRBS_PATTERN_PRBS58,
613+
614+
/** PRBS-7Q polynomial pattern */
615+
SAI_PORT_PRBS_PATTERN_PRBS7Q,
616+
617+
/** PRBS-9Q polynomial pattern */
618+
SAI_PORT_PRBS_PATTERN_PRBS9Q,
619+
620+
/** PRBS-13Q polynomial pattern */
621+
SAI_PORT_PRBS_PATTERN_PRBS13Q,
622+
623+
/** PRBS-15Q polynomial pattern */
624+
SAI_PORT_PRBS_PATTERN_PRBS15Q,
625+
626+
/** PRBS-23Q polynomial pattern */
627+
SAI_PORT_PRBS_PATTERN_PRBS23Q,
628+
629+
/** PRBS-31Q polynomial pattern */
630+
SAI_PORT_PRBS_PATTERN_PRBS31Q,
631+
632+
/** SSPRQ polynomial pattern */
633+
SAI_PORT_PRBS_PATTERN_SSPRQ,
634+
635+
/** Custom range base value */
636+
SAI_PORT_PRBS_PATTERN_CUSTOM_RANGE_BASE = 0x10000000
637+
} sai_port_prbs_pattern_t;
638+
566639
/**
567640
* @brief Attribute data for #SAI_PORT_CONNECTOR_ATTR_FAILOVER_MODE
568641
* Used for Failover mode configuration on port
@@ -1972,9 +2045,13 @@ typedef enum _sai_port_attr_t
19722045
/**
19732046
* @brief Port PRBS Polynomial
19742047
*
2048+
* Deprecated. Use SAI_PORT_ATTR_PRBS_PATTERN.
2049+
* This attribute is mutually exclusive with SAI_PORT_ATTR_PRBS_PATTERN.
2050+
*
19752051
* @type sai_uint32_t
19762052
* @flags CREATE_AND_SET
19772053
* @default internal
2054+
* @deprecated true
19782055
*/
19792056
SAI_PORT_ATTR_PRBS_POLYNOMIAL,
19802057

@@ -2965,6 +3042,25 @@ typedef enum _sai_port_attr_t
29653042
*/
29663043
SAI_PORT_ATTR_PTP_PEER_MEAN_PATH_DELAY,
29673044

3045+
/**
3046+
* @brief Port PRBS Polynomial Pattern
3047+
*
3048+
* This attribute is mutually exclusive with the deprecated SAI_PORT_ATTR_PRBS_POLYNOMIAL.
3049+
*
3050+
* @type sai_port_prbs_pattern_t
3051+
* @flags CREATE_AND_SET
3052+
* @default SAI_PORT_PRBS_PATTERN_AUTO
3053+
*/
3054+
SAI_PORT_ATTR_PRBS_PATTERN,
3055+
3056+
/**
3057+
* @brief Supported list of PRBS Polynomial Patterns for the port
3058+
*
3059+
* @type sai_s32_list_t sai_port_prbs_pattern_t
3060+
* @flags READ_ONLY
3061+
*/
3062+
SAI_PORT_ATTR_SUPPORTED_PRBS_PATTERN,
3063+
29683064
/**
29693065
* @brief End of attributes
29703066
*/

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)