• Petr Machata's avatar
    selftests: mlxsw: Add a RIF counter scale test · be00853b
    Petr Machata authored
    This tests creates as many RIFs as possible, ideally more than there can be
    RIF counters (though that is currently only possible on Spectrum-1). It
    then tries to enable L3 HW stats on each of the RIFs. It also contains the
    traffic test, which tries to run traffic through a log2 of those counters
    and checks that the traffic is shown in the counter values.
    
    Like with tc_flower traffic test, take a log2 subset of rules. The logic
    behind picking log2 rules is that then every bit of the instantiated item's
    number is exercised. This should catch issues whether they happen at the
    high end, low end, or somewhere in between.
    Signed-off-by: default avatarPetr Machata <petrm@nvidia.com>
    Reviewed-by: default avatarAmit Cohen <amcohen@nvidia.com>
    Signed-off-by: default avatarIdo Schimmel <idosch@nvidia.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    be00853b
resource_scale.sh 1.59 KB