[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <49020773-43bc-4c46-8f95-a5436ca78891@birger-koblitz.de>
Date: Thu, 27 Nov 2025 19:48:11 +0100
From: Birger Koblitz <mail@...ger-koblitz.de>
To: Jakub Kicinski <kuba@...nel.org>
Cc: Tony Nguyen <anthony.l.nguyen@...el.com>, davem@...emloft.net,
pabeni@...hat.com, edumazet@...gle.com, andrew+netdev@...n.ch,
netdev@...r.kernel.org, Andrew Lunn <andrew@...n.ch>,
Paul Menzel <pmenzel@...gen.mpg.de>,
Aleksandr Loktionov <aleksandr.loktionov@...el.com>,
Rinitha S <sx.rinitha@...el.com>
Subject: Re: [PATCH net-next 03/11] ixgbe: Add 10G-BX support
On 27/11/2025 5:07 pm, Jakub Kicinski wrote:
>>> link length requirement isn't met?
>> The ixgbe_identify_sfp_module_generic detects SFP modules that it knows
>> how to initialize in a positive manner, that is all the conditions have
>> to be fulfilled. If this is not the case, then the default from
>> ixgbe_main.c:ixgbe_probe() kicks in, which sets
>> hw->phy.sfp_type = ixgbe_sfp_type_unknown;
>> before probing the SFP. The else is unnecessary.
>>
>> If the SFP module cannot be positively identified, then that functions
>> logs an error:
>> e_dev_err("failed to load because an unsupported SFP+ or QSFP module
>> type was detected.\n");
>> e_dev_err("Reload the driver after installing a supported module.\n");
>
> Got it! perhaps add a note to the commit msg or a comment somewhere to
> avoid AI flagging this again?
On second thought, and while thinking how to formulate such a message,
maybe it is cleaner to set hw->phy.sfp_type = ixgbe_sfp_type_unknown
explicitly in an additional else. Otherwise, if the context of how
ixgbe_identify_sfp_module_generic is called could change in the future
and then something unexpected might happen.
I tested adding the else and it works as expected by not doing anything,
the variable is already set to ixgbe_sfp_type_unknown. And I also
verified again that the current patch is also correct: I made only the
length-check fail and indeed the default kicks in with the correct
outcome, that the module is unsupported.
Since the patch is now submitted in a series from Tony, I guess the
decision is with him. I also am unsure who would submit a fixed patch or
added comment and where it would need to be sent to at this stage.
Powered by blists - more mailing lists