From 02756074759ca47f4c637e1ff34644a11d64140a Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Wed, 26 Sep 2018 15:28:17 +0200 Subject: dpdk: fix QSFP+ module info Change-Id: I89c7df778e66a5d2147190dc99445405d81964e5 Signed-off-by: Damjan Marion --- src/plugins/dpdk/device/format.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"); -- cgit 1.2.3-korg