Netdev List
 help / color / mirror / Atom feed
* [BUG] mlxsw: Driver/Firmware disagreement about max headroom size
@ 2026-05-17  2:46 Keno Fischer
  2026-05-18 16:09 ` Petr Machata
  0 siblings, 1 reply; 2+ messages in thread
From: Keno Fischer @ 2026-05-17  2:46 UTC (permalink / raw)
  To: netdev; +Cc: Ido Schimmel, Petr Machata, mlxsw

Hello mlxsw maintainers,

I don't think this bug is particularly consequential, but there appears to be a
disagreement between the driver and the firmware regarding the proper max
headroom size. On my SN3800, I see the following:

 ```
$ tc qdisc replace dev swp1 root handle 1: prio bands 8 priomap 0 1 2 3 4 5 6 7
$ tc qdisc replace dev swp2 root handle 1: prio bands 8 priomap 0 1 2 3 4 5 6 7
$ dcb buffer set dev swp1 \
      buffer-size all:0 0:1219K \
      prio-buffer 0:0 1:0 2:0 3:0 4:0 5:0 6:0 7:0
Attribute write: No buffer space available
$ dcb buffer set dev swp2 \
      buffer-size all:0 0:1219K \
      prio-buffer 0:0 1:0 2:0 3:0 4:0 5:0 6:0 7:0
[78711.680961] mlxsw_spectrum2 0000:07:00.0: EMAD reg access failed
(tid=43b7c51f003ef26e,reg_id=500c(pbmc),type=write,status=7(bad
parameter))
Attribute write: I/O error
```

I don't know why this differs between the two switch ports, but since
the driver goes through a lot of effort to calculate the max value
and return a nice error (as shown in the first command), it seems
like a bug that it wouldn't do so on the second port.

As an aside, as a novice to this area, it wasn't clear to me from the
docs (https://github.com/Mellanox/mlxsw/wiki/Quality-of-Service),
whether the headroom buffer is a separate piece of memory or
whether it steals part of the shared buffer memory space, which
is what prompted me to just try various values here. It also wasn't
clear to me whether the headroom config did anything for lossy PGs.
Hope my naive view can help improve the page :).

Thanks,
Keno

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-05-18 17:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-17  2:46 [BUG] mlxsw: Driver/Firmware disagreement about max headroom size Keno Fischer
2026-05-18 16:09 ` Petr Machata

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox