Vladimir Oltean [off-list ref] writes:
On Wed, Sep 14, 2022 at 04:00:07PM -0700, Vinicius Costa Gomes wrote:
quoted
Hm, I just noticed something.
During parse the user only sets the max-sdu for the traffic classes she
is interested on. During dump you are showing all of them, the unset
ones will be shown as zero, that seems a bit confusing, which could mean
that you would have to add some checks anyway.
For the offload side, you could just document that U32_MAX means unset.
Yes, choosing '0' rather than other value, to mean 'default to port MTU'
was intentional. It is also in line with what other places, like the
YANG models, expect to see:
https://github.com/YangModels/yang/blob/main/standard/ieee/draft/802.1/Qcw/ieee802-dot1q-sched.yang#L128
Oh, I see. My bad. So, only that comment about thinking about making the
comparison simpler is still valid.
Cheers,
--
Vinicius