mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
selftests: net: forwarding: bridge_vlan_mcast: Allow default startup query interval to vary by HZ
The mcast_startup_query_interval default value is calculated as 125 * HZ / 4. With CONFIG_HZ=250, this results in 3124 instead of 3125 due to integer truncation. The test currently hardcodes 3125, which fails on kernels built with CONFIG_HZ=250. Allow a +/- 1 tolerance for the default value check to account for this rounding, while still catching genuine regressions in the default value. Signed-off-by: Jin Li <jinli@lanxincomputing.com> Reviewed-by: Ido Schimmel <idosch@nvidia.com> Link: https://patch.msgid.link/20261022103023.834927-1-jinli@lanxincomputing.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
b88b826ec5
commit
9e2ba4a177
|
|
@ -383,7 +383,8 @@ vlmc_startup_query_test()
|
|||
|
||||
echo -n $goutput |
|
||||
jq -e ".[].vlans[] | select(.vlan == 10 and \
|
||||
.mcast_startup_query_interval == 3125) " &>/dev/null
|
||||
.mcast_startup_query_interval >= 3124 and \
|
||||
.mcast_startup_query_interval <= 3126) " &>/dev/null
|
||||
check_err $? "Wrong default mcast_startup_query_interval global vlan option value"
|
||||
log_test "Vlan mcast_startup_query_interval global option default value"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user