opnsense-src/sys/dev/axgbe
Stephan de Wit 445bed5c4d axgbe: Various link stability and module compatibilty improvements
Move the phy_stop() routine to if_detach() to prevent link interruptions
when configuring the interface. Accompanying this is a sanity check
using phy_started, which was already there but remained unused. We do
not move phy_start(), as the logic there is needed for any init routine,
be it attach or start.

Also bring in the linux PMA_PLL change which addresses the flapping of
back-to-back fiber connections.

Use miibus for SFP PHYs up to 1G copper. We retry in cases where the PHY
is not directly reachable.  Set the correct IFM_100_SGMII flag when the
phy speed has been set to 100. We remove xgbe_phy_start_aneg() since
it's handled by miibus.

Add support for 100 and 1000 BASE-BX fiber modules

Add support for 25G multirate DACs which are capable of 10G.

While here, also fixup the LINK_ERR state. It was impossible to recover
from this previously.

[[ Note: light style fixes by imp, slight commit message adjustment,
   and a warning that I don't have the hardware to validate, but
   the changes do track the commit message and seem otherwise OK ]]

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/768
2024-02-02 12:21:00 -07:00
..
if_axgbe.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
if_axgbe_pci.c axgbe: Various link stability and module compatibilty improvements 2024-02-02 12:21:00 -07:00
xgbe-common.h axgbe: Various link stability and module compatibilty improvements 2024-02-02 12:21:00 -07:00
xgbe-dcb.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
xgbe-desc.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
xgbe-dev.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
xgbe-drv.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
xgbe-i2c.c axgbe: Various link stability and module compatibilty improvements 2024-02-02 12:21:00 -07:00
xgbe-mdio.c axgbe: Various link stability and module compatibilty improvements 2024-02-02 12:21:00 -07:00
xgbe-phy-v1.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
xgbe-phy-v2.c axgbe: Various link stability and module compatibilty improvements 2024-02-02 12:21:00 -07:00
xgbe-ptp.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
xgbe-sysctl.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
xgbe-txrx.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
xgbe.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
xgbe_osdep.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
xgbe_osdep.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00