diff options
| author | Aleksei Sviridkin <f@lex.la> | 2026-09-03 12:36:52 +0000 |
|---|---|---|
| committer | Paolo Abeni <pabeni@redhat.com> | 2026-09-08 11:46:34 +0200 |
| commit | 2b6c0e25a3d713c4032e45f212bdd9e14c50f8a0 (patch) | |
| tree | eac8811ca75a3423526328531f7f6686135a805a /scripts/basic | |
| parent | 0523d5c52a450590bf5992bd6925394f3cc403e8 (diff) | |
| download | linux-2b6c0e25a3d713c4032e45f212bdd9e14c50f8a0.tar.gz linux-2b6c0e25a3d713c4032e45f212bdd9e14c50f8a0.zip | |
net: macb: reject an unknown link speed in the taprio setup
speed is a u32, so SPEED_UNKNOWN arrives as 0xffffffff and passes the
"speed <= 0" check, which only ever catches zero. That is what an
autonegotiating link reports while it is down: the limit derived from
the speed collapses to a nanosecond at most and the first entry fails
with a misleading "exceeds hardware limit". Zero stays covered, it is
what an interface that was never opened reports, and
enst_max_hw_interval() divides by it. Say which case it was in the
error.
Fixes: 89934dbf169e ("net: macb: Add TAPRIO traffic scheduling support")
Assisted-by: LLM
Signed-off-by: Aleksei Sviridkin <f@lex.la>
Link: https://patch.msgid.link/20260903123652.23900-3-f@lex.la
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions
