FD.io VPP  v20.01-48-g3e0dafb74
Vector Packet Processing
sfp.h File Reference
+ Include dependency graph for sfp.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  sfp_eeprom_t
 

Macros

#define foreach_sfp_id
 
#define foreach_sfp_compatibility
 

Enumerations

enum  sfp_id_t { foreach_sfp_id }
 
enum  sfp_compatibility_t { SFP_N_COMPATIBILITY }
 

Functions

static uword sfp_eeprom_is_valid (sfp_eeprom_t *e)
 
u32 sfp_is_comatible (sfp_eeprom_t *e, sfp_compatibility_t c)
 

Variables

format_function_t format_sfp_eeprom
 

Macro Definition Documentation

◆ foreach_sfp_compatibility

#define foreach_sfp_compatibility
Value:
_ (0, 0, 40g_active_cable) \
_ (0, 1, 40g_base_lr4) \
_ (0, 2, 40g_base_sr4) \
_ (0, 3, 40g_base_cr4) \
_ (0, 4, 10g_base_sr) \
_ (0, 5, 10g_base_lr) \
_ (0, 5, 10g_base_lrm) \
_ (1, 3, 40g_otn) \
_ (1, 2, oc48_long_reach) \
_ (1, 1, oc48_intermediate_reach) \
_ (1, 0, oc48_short_reach) \
_ (2, 6, oc12_long_reach) \
_ (2, 5, oc12_intermediate_reach) \
_ (2, 4, oc12_short_reach) \
_ (2, 2, oc3_long_reach) \
_ (2, 1, oc3_intermediate_reach) \
_ (2, 0, oc3_short_reach) \
_ (3, 3, 1g_base_t) \
_ (3, 2, 1g_base_cx) \
_ (3, 1, 1g_base_lx) \
_ (3, 0, 1g_base_sx)

Definition at line 100 of file sfp.h.

◆ foreach_sfp_id

#define foreach_sfp_id
Value:
_ (UNKNOWN, "unknown") \
_ (GBIC, "GBIC") \
_ (ON_MB, "on-motherboard") \
_ (SFP, "SFP/SFP+/SFP28") \
_ (300_PIN_XBI, "300-pin-XBI") \
_ (XENPAK, "XENPAK") \
_ (XFP, "XFP") \
_ (XFF, "XFF") \
_ (XFP_E, "XFP-E") \
_ (XPAK, "XPAK") \
_ (X2, "X2") \
_ (DWDM_SFP, "DWDM-SFP") \
_ (QSFP, "QSFP") \
_ (QSFP_PLUS, "QSFP+") \
_ (CXP, "CXP") \
_ (SMM_HD_4X, "SMM-HD-4X") \
_ (SMM_HD_8X, "SMM-HD-8X") \
_ (QSFP28, "QSFP28") \
_ (CXP2, "CXP2") \
_ (SMM_HD_4X_FAN, "SMM-HD-4X-fanout") \
_ (SMM_HD_8X_FAN, "SMM-HD-8X-fanout") \
_ (CDFP, "CDFP") \
_ (MQSFP, "microQSFP") \
_ (QSFP_DD, "QSFP-DD") \

Definition at line 21 of file sfp.h.

Enumeration Type Documentation

◆ sfp_compatibility_t

Enumerator
SFP_N_COMPATIBILITY 

Definition at line 123 of file sfp.h.

◆ sfp_id_t

enum sfp_id_t
Enumerator
foreach_sfp_id 

Definition at line 47 of file sfp.h.

Function Documentation

◆ sfp_eeprom_is_valid()

static uword sfp_eeprom_is_valid ( sfp_eeprom_t e)
inlinestatic

Definition at line 90 of file sfp.h.

+ Here is the caller graph for this function:

◆ sfp_is_comatible()

u32 sfp_is_comatible ( sfp_eeprom_t e,
sfp_compatibility_t  c 
)

Definition at line 64 of file sfp.c.

+ Here is the caller graph for this function:

Variable Documentation

◆ format_sfp_eeprom

format_function_t format_sfp_eeprom

Definition at line 133 of file sfp.h.