lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <52be06d0-ad45-4e8c-9893-628ba8cebccb@lunn.ch>
Date: Thu, 12 Jun 2025 20:29:07 +0200
From: Andrew Lunn <andrew@...n.ch>
To: Leon Romanovsky <leon@...nel.org>
Cc: Alexander Duyck <alexander.duyck@...il.com>, netdev@...r.kernel.org,
	linux@...linux.org.uk, hkallweit1@...il.com, davem@...emloft.net,
	pabeni@...hat.com, kuba@...nel.org, Jiri Pirko <jiri@...dia.com>
Subject: Re: [net-next PATCH 0/6] Add support for 25G, 50G, and 100G to fbnic

> > > when the fbnic was proposed for merge, the overall agreement was that
> > > this driver is ok as long as no-core changes will be required for this
> > > driver to work and now, year later, such changes are proposed here.
> > 
> > I would say these are natural extensions to support additional speeds
> > in the 'core'. We always said fbnic would be pushing the edges of the
> > linux core support for SFP, because all other vendors in this space
> > reinvent the wheel and hide it away in firmware. fbnic is different
> > and Linux is actually driving the hardware.

> How exactly they can hide speed declarations in the FW and still support it?
 
You obviously did not spend time to look at the code and understand
what it is doing. This is used to map the EEPROM contents of the SFP
to how the PCS etc should be configured. So far, this has only been
used for speeds up to 10Gbps. This code is mostly used by SoCs, and at
the moment most SoCs inbuilt interfaces top out at 10G. fbnic is
pushing this core code to higher speeds.

You can easily hide speed declarations in firmware and still support
it because we are not talking about the ethtool API here. This is a
lower level. A FW driven device will have its own code for parsing the
SFP EEPROM and configuring the PCS etc, without needing anything from
Linux.

> In addition, it is unclear what the last sentence means. FBNIC has FW like
> any other device.

>From what i have seen, it has a small amount of firmware. However,
Linux is actually controlling most of the hardware. The PCS is
controlled by linux, the SFP will be controlled by linux, the GPIOs
and I2C bus for the SFP will be controlled by Linux, all very typical
for SoC class devices, but untypical for data centre class devices. It
is also not the only one, the wangxun txgbe is doing something
similar, but at slower speeds. There is potential here for cross
pollination between these two devices/drivers.

	Andrew

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ