Change-Id: I89c7df778e66a5d2147190dc99445405d81964e5
Signed-off-by: Damjan Marion <damarion@cisco.com>
if (rte_eth_dev_get_module_eeprom (xd->port_id, &ei) == 0)
{
if (rte_eth_dev_get_module_eeprom (xd->port_id, &ei) == 0)
{
- s = format (s, "%U", format_sfp_eeprom, ei.data);
+ s = format (s, "%U", format_sfp_eeprom, ei.data +
+ (mi.type == RTE_ETH_MODULE_SFF_8436 ? 0x80 : 0));
}
else
s = format (s, "eeprom read error");
}
else
s = format (s, "eeprom read error");