Skip to content

net: stmmac: only use MAC loopback for selftests

Maxime Chevallier linux-arm-kernel lkml netdev 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2net: stmmac: Don't use PHY loopback for selftestsdrivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c+9 -1031 replyApplied
2/2net: stmmac: Don't rely on the PHY for flow-control testingdrivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c+2 -31 replyApplied

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchOleksij Rempel
1/2
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net-next 0/2] net: stmmac: only use MAC loopback for selftests

stmmac selftests currently use PHY loopback when a PHY is attached, and fallback to MAC loopback otherwise. PHY loopback however isn't ideal nor necessary for the tests we are running, that only stress the internal stmmac features.

Some PHYs bring the carrier state down when in loopback mode, which will prevent any packet transmission even for ourselves, making selftests fail for non-stmmac related reasons.

Let's rely only on MAC-side loopback for selftests, making it clear that any problem found with stmmac selftests are indeed caused by the stmmac driver, and not external factors.

This was tested on :

- Cyclone V with RGMII link to KSZ9031
- Cyclone V with 1000BaseX
- imx8mp with RGMII link to KSZ9131
- stm32mp157& with RGMII link to RTL8211F
- Allwinner H2+ with an internal PHY

Maxime Chevallier (2):
net: stmmac: Don't use PHY loopback for selftests
net: stmmac: Don't rely on the PHY for flow-control testing

 .../stmicro/stmmac/stmmac_selftests.c         | 117 ++----------------
 1 file changed, 11 insertions(+), 106 deletions(-)
Signature · 1 line
2.55.0