From: Jakub Kicinski <kuba@kernel.org>
To: Birger Koblitz <mail@birger-koblitz.de>
Cc: Tony Nguyen <anthony.l.nguyen@intel.com>,
davem@davemloft.net, pabeni@redhat.com, edumazet@google.com,
andrew+netdev@lunn.ch, netdev@vger.kernel.org,
Andrew Lunn <andrew@lunn.ch>, Paul Menzel <pmenzel@molgen.mpg.de>,
Aleksandr Loktionov <aleksandr.loktionov@intel.com>,
Rinitha S <sx.rinitha@intel.com>
Subject: Re: [PATCH net-next 03/11] ixgbe: Add 10G-BX support
Date: Thu, 27 Nov 2025 08:07:48 -0800 [thread overview]
Message-ID: <20251127080748.423605a3@kernel.org> (raw)
In-Reply-To: <93508e7f-cf7e-40f6-bf28-fb9e70ea3184@birger-koblitz.de>
On Thu, 27 Nov 2025 07:33:13 +0100 Birger Koblitz wrote:
> > In ixgbe_identify_sfp_module_generic(), what happens when a module has
> > the 10G-BX characteristics (empty comp_codes_10g, bitrate 0x67, fiber
> > mode) but the link length check fails (both sm_length values < 1km)?
> >
> > The outer else-if condition matches, so we skip the final else clause
> > that sets sfp_type to unknown. But the inner if condition fails, so we
> > don't set the 10g_bx type either. This leaves hw->phy.sfp_type
> > unchanged from whatever value it had previously.
> >
> > All other branches in this if-else chain explicitly set sfp_type, but
> > this path only conditionally sets it. Should there be an else clause
> > after the inner if to set sfp_type = ixgbe_sfp_type_unknown when the
> > 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?
next prev parent reply other threads:[~2025-11-27 16:07 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-25 22:36 [PATCH net-next 00/11][pull request] Intel Wired LAN Driver Updates 2025-11-25 (ice, idpf, iavf, ixgbe, ixgbevf, e1000e) Tony Nguyen
2025-11-25 22:36 ` [PATCH net-next 01/11] ice: add support for unmanaged DPLL on E830 NIC Tony Nguyen
2025-11-26 23:30 ` Jakub Kicinski
2025-11-25 22:36 ` [PATCH net-next 02/11] ice: unify PHY FW loading status handler for E800 devices Tony Nguyen
2025-11-25 22:36 ` [PATCH net-next 03/11] ixgbe: Add 10G-BX support Tony Nguyen
2025-11-26 23:32 ` Jakub Kicinski
2025-11-27 6:33 ` Birger Koblitz
2025-11-27 16:07 ` Jakub Kicinski [this message]
2025-11-27 18:48 ` Birger Koblitz
2025-12-01 22:40 ` Tony Nguyen
2025-12-02 5:58 ` Birger Koblitz
2025-11-25 22:36 ` [PATCH net-next 04/11] ixgbevf: ixgbevf_q_vector clean up Tony Nguyen
2025-11-25 22:36 ` [PATCH net-next 05/11] idpf: convert vport state to bitmap Tony Nguyen
2025-11-25 22:36 ` [PATCH net-next 06/11] e1000e: Remove unneeded checks Tony Nguyen
2025-11-25 22:36 ` [PATCH net-next 07/11] ixgbe: avoid redundant call to ixgbe_non_sfp_link_config() Tony Nguyen
2025-11-25 22:36 ` [PATCH net-next 08/11] idpf: use desc_ring when checking completion queue DMA allocation Tony Nguyen
2025-11-25 22:36 ` [PATCH net-next 09/11] idpf: correct queue index in Rx allocation error messages Tony Nguyen
2025-11-25 22:36 ` [PATCH net-next 10/11] ice: fix comment typo and correct module format string Tony Nguyen
2025-11-25 22:36 ` [PATCH net-next 11/11] iavf: clarify VLAN add/delete log messages and lower log level Tony Nguyen
2025-11-28 2:38 ` [PATCH net-next 00/11][pull request] Intel Wired LAN Driver Updates 2025-11-25 (ice, idpf, iavf, ixgbe, ixgbevf, e1000e) Jakub Kicinski
2025-12-01 17:03 ` Tony Nguyen
2025-11-28 2:40 ` patchwork-bot+netdevbpf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251127080748.423605a3@kernel.org \
--to=kuba@kernel.org \
--cc=aleksandr.loktionov@intel.com \
--cc=andrew+netdev@lunn.ch \
--cc=andrew@lunn.ch \
--cc=anthony.l.nguyen@intel.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=mail@birger-koblitz.de \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=pmenzel@molgen.mpg.de \
--cc=sx.rinitha@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).