i40e: Change user notification of non-SFP module in i40e_get_module_info()
authorAndrii Staikov <andrii.staikov@intel.com>
Mon, 13 Nov 2023 23:10:22 +0000 (15:10 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 15 Nov 2023 04:05:43 +0000 (20:05 -0800)
commit2c0fa38a579f96cdee372965d6b0c06c40806cad
tree1d0b72626ed7e1fe511416d28d440d2258e7758b
parentadd35e623e77fd48c4720d0d8cf1f0f425149ed4
i40e: Change user notification of non-SFP module in i40e_get_module_info()

Make the driver not produce an error message on
"ethtool -m ethX" command when a non-SFP module is encountered
hence there is no possibility to read the EEPROM.
Make the message to appear in the debug log rather
than as an error string.

Change the return code to -EOPNOTSUPP and the string to make
it more verbose.

Signed-off-by: Andrii Staikov <andrii.staikov@intel.com>
Reviewed-by: Wojciech Drewek <wojciech.drewek@intel.com>
CC: Stefan Assmann <sassmann@redhat.com>
CC: Michal Schmidt <mschmidt@redhat.com>
Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Link: https://lore.kernel.org/r/20231113231047.548659-4-anthony.l.nguyen@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/intel/i40e/i40e_ethtool.c