Skip to content

i40e: Change user notification of non-SFP module in i40e_get_module_info()

JIRA: https://issues.redhat.com/browse/RHEL-15786

When "ethtool -m" is used on a non-SFP i40e interface (e.g. 10GBASE-T), the driver emits an error message. This is just noise when a regular inventory process does it. This patch downgrades the message to debug level and changes the error code to the more fitting EOPNOTSUPP.

Tested: We don't have the right hardware combination (Intel X722+X557) to test it normally, but I tested it by faking the detected module type with a code change. See the Jira for details.

Signed-off-by: Michal Schmidt mschmidt@redhat.com

Edited by Michal Schmidt

Merge request reports