Thread View: linux.kernel.netdev
2 messages
2 total messages
Started by "Jin Li"
Thu, 22 Oct 2026 10:30
[PATCH net-next v2] selftests: net: forwarding: bridge_vlan_mcast: Allow default startup query interval to vary by HZ
Author: "Jin Li"
Date: Thu, 22 Oct 2026 10:30
Date: Thu, 22 Oct 2026 10:30
31 lines
10224 bytes
10224 bytes
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> --- tools/testing/selftests/net/forwarding/bridge_vlan_mcast.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/net/forwarding/bridge_vlan_mcast.sh b/tools/testing/selftests/net/forwarding/bridge_vlan_mcast.sh index c4cd2078a8db..c07c2af5df94 100755 --- a/tools/testing/selftests/net/forwarding/bridge_vlan_mcast.sh +++ b/tools/testing/selftests/net/forwarding/bridge_vlan_mcast.sh @@ -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" -- 2.53.0
Re: [PATCH net-next v2] selftests: net: forwarding: bridge_vlan_mcast: Allow default startup query interval to vary by HZ
Author: patchwork-bot+netdevbpf
Date: Tue, 27 Oct 2026 01:40
Date: Tue, 27 Oct 2026 01:40
26 lines
8872 bytes
8872 bytes
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Thu, 22 Oct 2026 18:30:22 +0800 you wrote:
> 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.
>
> [...]
Here is the summary with links:
- [net-next,v2] selftests: net: forwarding: bridge_vlan_mcast: Allow default startup query interval to vary by HZ
https://git.kernel.org/netdev/net/c/9e2ba4a17735
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads