Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
e178b27
)
dpdk: fix QSFP+ module info
96/14996/2
author
Damjan Marion
<damarion@cisco.com>
Wed, 26 Sep 2018 13:28:17 +0000
(15:28 +0200)
committer
Damjan Marion
<dmarion@me.com>
Wed, 26 Sep 2018 15:48:01 +0000
(15:48 +0000)
Change-Id: I89c7df778e66a5d2147190dc99445405d81964e5
Signed-off-by: Damjan Marion <damarion@cisco.com>
src/plugins/dpdk/device/format.c
patch
|
blob
|
history
diff --git
a/src/plugins/dpdk/device/format.c
b/src/plugins/dpdk/device/format.c
index
5cb03b8
..
a5c8daa
100644
(file)
--- 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");