diff options
| author | Petr Machata <[email protected]> | 2022-06-16 13:42:42 +0300 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2022-06-17 10:31:33 +0100 |
| commit | 35d5829e86c29892136ca96bd4d809d4429f1510 (patch) | |
| tree | 26d91ed6aef734b256ac407c81150d01d4ebc134 /net/ipv4/tcp.c | |
| parent | 8cad339db339a39cb82b1188e4be4070a433abac (diff) | |
selftests: mlxsw: resource_scale: Pass target count to cleanup
The scale tests are verifying behavior of mlxsw when number of instances of
some resource reaches the ASIC capacity. The number of instances is
referred to as "target" number.
No scale tests so far needed to know this target number to clean up. E.g.
the tc_flower simply removes the clsact qdisc that all the tested filters
are hooked onto, and that takes care of collecting all the filters.
However, for the RIF counter test, which is being added in a future patch,
VLAN netdevices are created. These are created as part of the test, but of
course the cleanup needs to undo them again. For that it needs to know how
many there were. To support this usage, pass the target number to the
cleanup callback.
Signed-off-by: Petr Machata <[email protected]>
Reviewed-by: Amit Cohen <[email protected]>
Signed-off-by: Ido Schimmel <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/tcp.c')
0 files changed, 0 insertions, 0 deletions