• Amit Cohen's avatar
    selftests: mlxsw: Use shapers in QOS tests instead of forcing speed · 9e7aaa7c
    Amit Cohen authored
    QOS tests create congestion and verify the switch behavior. To create
    congestion, they need to have more traffic than the port can handle, so
    some of them force 1Gbps speed.
    
    The tests assume that 1Gbps speed is supported, otherwise, they will fail.
    Spectrum-4 ASIC will not support this speed in all ports, so to be able
    to run QOS tests there, some adjustments are required. Use shapers to
    limit the traffic instead of forcing speed. Note that for several ports,
    the speed configuration is just for autoneg issues, so shaper is not needed
    instead.
    
    In tests that already use shapers, set the existing shaper to be a child of
    a new TBF shaper which is added as a root qdisc and acts as a port shaper.
    Signed-off-by: default avatarAmit Cohen <amcohen@nvidia.com>
    Reviewed-by: default avatarPetr Machata <petrm@nvidia.com>
    Signed-off-by: default avatarPetr Machata <petrm@nvidia.com>
    Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
    9e7aaa7c
sch_ets.sh 2.28 KB