Merge pull request #264 from zhouzi88/sfp28

SFP28 CR type and length fix
This commit is contained in:
Jeffrey Townsend
2017-11-15 12:28:12 -08:00
committed by GitHub
2 changed files with 1 additions and 1 deletions

View File

@@ -968,7 +968,6 @@ _sff8472_media_sfp28_cr(const uint8_t* idprom)
/* module should be sfp */
if (!SFF8472_MODULE_SFP(idprom)) return 0;
if (idprom[2] != SFF8472_CONN_NOSEP) return 0;
if ((idprom[3] & SFF8472_CC3_INF_1X_CU_PASSIVE) == 0) return 0;
if (idprom[12] == 0xFF) return 1;

View File

@@ -472,6 +472,7 @@ sff_eeprom_parse_standard__(sff_eeprom_t* se, uint8_t* eeprom)
se->info.length = se->eeprom[146];
break;
case SFF_SFP_TYPE_SFP:
case SFF_SFP_TYPE_SFP28:
se->info.length = se->eeprom[18];
break;
default: