Commit a4fbb22a authored by Ragnar Sundblad's avatar Ragnar Sundblad Committed by Grzegorz Daniluk

Add support for SFP:s reporting a speed of 1200 Mb/s.

Signed-off-by: Maciej Lipinski's avatarMaciej Lipinski <maciej.lipinski@cern.ch>
parent d18c2077
......@@ -25,6 +25,7 @@
* 1000BASE-X. */
#define SFP_SPEED_1Gb_10 0x0A /* Unfortunatelly the above is not always true,
* e.g. Cisco copper SFP (MGBT1) says simply 10 and not 13.*/
#define SFP_SPEED_1Gb_12 0x0C /* Some fiber SFPs say 12 and not 13 */
#define SFP_DIAGNOSTIC_IMPLEMENTED (1 << 6) /* Digital diagnostic monitoring
implemented. "1" for compliance
......
......@@ -482,6 +482,7 @@ static void hal_port_insert_sfp(struct hal_port_state * ps)
/* check if SFP is 1GbE */
ps->calib.sfp.flags |= shdr.br_nom == SFP_SPEED_1Gb ? SFP_FLAG_1GbE : 0;
ps->calib.sfp.flags |= shdr.br_nom == SFP_SPEED_1Gb_10 ? SFP_FLAG_1GbE : 0;
ps->calib.sfp.flags |= shdr.br_nom == SFP_SPEED_1Gb_12 ? SFP_FLAG_1GbE : 0;
/*
* Now, we should fix the alpha value according to fiber
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment