Data Plane Development Kit Reference Manual: Intel FPGA Programmable Acceleration Card N3000

ID 683512
Date 12/06/2019
Public
Document Table of Contents

4.6. Data Structures for Retiming

The following data structures provide information about the Intel Ethernet Controller XL710 and retimers.

opae_retimer_info

/* retimer info */
struct opae_retimer_info {
unsigned int nums_retimer;
unsigned int ports_per_retimer;
unsigned int nums_fvl;
unsigned int ports_per_fvl;
enum retimer_speed support_speed;
};
Table 10.  opae_retimer_info Struct Field Definitions
Data Structure Field Name Description
nums_retimer The number of retimers on the Intel® FPGA PAC N3000. For 8x10 GbE mode this value is 2.
ports_per_retimer The number of ports for each retimer. For8x10 GbE mode this value is 4.
nums_fvl The number of Intel Ethernet Controller XL710 devices on the Intel® FPGA PAC N3000. For 8x10 GbE mode this value is 2.
ports_per_fv The number of ports on each Intel Ethernet Controller XL710. For 8x10 GbE mode, this value is 4.
support_speed The speed of the retimers. For 8x10 GbE mode this value is 10 GbE.

retimer_speed enumeration

/* retimer speed */
enum retimer_speed {
MXD_1GB = 1,
MXD_2_5GB = 2,
MXD_5GB = 5,
MXD_10GB = 10,
MXD_25GB = 25,
MXD_40GB = 40,
MXD_100GB = 100,
MXD_SPEED_UNKNOWN,
};

opae_retimer_status

This data structure stores the link status of retimers.

/* retimer status*/
struct opae_retimer_status {
enum retimer_speed speed; 
unsigned int line_link_bitmap; 
/*
* retimer line link status bitmap:
* bit 0: Retimer0 Port0 link status
* bit 1: Retimer0 Port1 link status
* bit 2: Retimer0 Port2 link status
* bit 3: Retimer0 Port3 link status
* bit 4: Retimer1 Port0 link status
* bit 5: Retimer1 Port1 link status
* bit 6: Retimer1 Port2 link status
* bit 7: Retimer1 Port3 link status
*/
};
Table 11.  opae_retimer_status Struct Field Definitions
Data Structure Field Name Description
speed Supported speed for retiming.
line_link_bitmap The retiming line side link status. The line_link_bitmap is a bitmap variable.