Skip to content

Commit 8e0d8ce

Browse files
idoschdavem330
authored andcommitted
selftests: mlxsw: Increase burst size for rate test
The current combination of rate and burst size does not adhere to Spectrum-{2,3} limitation which states that the minimum burst size should be 40% of the rate. Increase the burst size in order to honor above mentioned limitation and avoid intermittent failures of this test case on Spectrum-{2,3}. Signed-off-by: Ido Schimmel <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent f033ad8 commit 8e0d8ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/drivers/net/mlxsw/devlink_trap_policer.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ __rate_test()
207207

208208
RET=0
209209

210-
devlink trap policer set $DEVLINK_DEV policer $id rate 1000 burst 16
210+
devlink trap policer set $DEVLINK_DEV policer $id rate 1000 burst 512
211211
devlink trap group set $DEVLINK_DEV group l3_drops policer $id
212212

213213
# Send packets at highest possible rate and make sure they are dropped

0 commit comments

Comments
 (0)