aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2018-09-26 15:28:17 +0200
committerDamjan Marion <dmarion@me.com>2018-09-26 15:48:01 +0000
commit02756074759ca47f4c637e1ff34644a11d64140a (patch)
treea94732b98f3ea182f1d882be1715a348458ded87 /src/plugins
parente178b27f6e728c0654fc18e0d3ae6423e89fb1a9 (diff)
dpdk: fix QSFP+ module info
Change-Id: I89c7df778e66a5d2147190dc99445405d81964e5 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/dpdk/device/format.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/dpdk/device/format.c b/src/plugins/dpdk/device/format.c
index 5cb03b85dab..a5c8daaa3d2 100644
--- a/src/plugins/dpdk/device/format.c
+++ b/src/plugins/dpdk/device/format.c
@@ -512,7 +512,8 @@ format_dpdk_device_module_info (u8 * s, va_list * args)
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");