diff options
author | Ivan Bornyakov <i.bornyakov@metrotek.ru> | 2023-04-06 16:08:33 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-04-09 16:01:28 +0100 |
commit | bef227c1537cb8005311c0842bc5449e8c7a5973 (patch) | |
tree | ab9b924053b727145b72e3d46401acee71c16496 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 813c2dd78618f108fdcf9cd726ea90f081ee2881 (diff) |
net: sfp: avoid EEPROM read of absent SFP module
If SFP module is not present, it is sensible to fail sfp_module_eeprom()
and sfp_module_eeprom_by_page() early to avoid excessive I2C transfers
which are garanteed to fail.
Suggested-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Ivan Bornyakov <i.bornyakov@metrotek.ru>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions