aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/btf_write.c
diff options
context:
space:
mode:
authorIdo Schimmel <idosch@nvidia.com>2022-06-16 13:42:39 +0300
committerDavid S. Miller <davem@davemloft.net>2022-06-17 10:31:33 +0100
commitd3ffeb2dba633b99ef2602019f61a97e0163a756 (patch)
tree32f1cbf87dd6035f2530759262c88b97c9575ca6 /tools/testing/selftests/bpf/prog_tests/btf_write.c
parentselftests: mirror_gre_bridge_1q_lag: Enslave port to bridge before other configurations (diff)
downloadlinux-dev-d3ffeb2dba633b99ef2602019f61a97e0163a756.tar.xz
linux-dev-d3ffeb2dba633b99ef2602019f61a97e0163a756.zip
selftests: mlxsw: resource_scale: Update scale target after test setup
The scale of each resource is tested in the following manner: 1. The scale target is queried. 2. The test setup is prepared. 3. The test is invoked. In some cases, the occupancy of a resource changes as part of the second step, requiring the test to return a scale target that takes this change into account. Make this more robust by re-querying the scale target after the second step. Another possible solution is to swap the first and second steps, but when a test needs to be skipped (i.e., scale target is zero), the setup would have been in vain. Signed-off-by: Ido Schimmel <idosch@nvidia.com> Reviewed-by: Petr Machata <petrm@nvidia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/btf_write.c')
0 files changed, 0 insertions, 0 deletions