🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #1179

[PATCH] selftests: net: forwarding: bridge_vlan_mcast: Allow default startup query interval to vary by HZ

#1179
From: "Jin Li"
Date: Fri, 09 Oct 2026 10:41
30 lines
7440 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 | 2 +-
 1 file changed, 1 insertion(+), 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..e72680869721 100755
--- a/tools/testing/selftests/net/forwarding/bridge_vlan_mcast.sh
+++ b/tools/testing/selftests/net/forwarding/bridge_vlan_mcast.sh
@@ -383,7 +383,7 @@ 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
Technical Details
Message-ID: <20261009104109.754133-1-jinli@lanxincomputing.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-343584-linux-kernel-netdev=dewy.ru

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-343584-linux-kernel-netdev=dewy.ru
From: jinli@lanxincomputing.com ("Jin Li")
Newsgroups: linux.kernel.netdev
Subject: [PATCH] selftests: net: forwarding: bridge_vlan_mcast: Allow default startup query interval to vary by HZ
Date: Fri,  9 Oct 2026 10:41:09 +0000
Organization: Usenet Network
Message-ID: <20261009104109.754133-1-jinli@lanxincomputing.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="1086062"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:14AzdFly+Wz2TJaVkN+D+kKbY6k= sha256:4Iq3DxmOFUW3rvJZPYgFmxdogN4Ch/j9siG+a7hTB1o=
	sha1:GYzmZ1Vr8NgaCP2KONyl/8RBWQU= sha256:3WaUW9LghYdsxUaYrVy7dLX67LhbXr46K4Gh+KwcVHA=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 7CB7210F5AC; Fri,  9 Oct 2026 13:46:02 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -0.751
X-Spam-Status: No, score=-0.751 tagged_above=-9999 required=6.31
	tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1,
	SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=lanxincomputing-com.20200927.dkim.feishu.cn
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id EDpTIWpEGt0E;
	Fri,  9 Oct 2026 13:45:54 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-343584-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=lanxincomputing.com
X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id 65CBC10F64A; Fri,  9 Oct 2026 13:45:47 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by sto.lore.kernel.org (Postfix) with ESMTP id AA90360A824; Fri,  9 Oct 2026 10:42:21 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 8145E426694;
	Fri,  9 Oct 2026 10:41:55 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=lanxincomputing-com.20200927.dkim.feishu.cn header.i=@lanxincomputing-com.20200927.dkim.feishu.cn header.b="bTxFwom7"
X-Received: from va-2-53.ptr.blmpb.com (va-2-53.ptr.blmpb.com [209.127.231.53])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1E5EA3DAABE
	for <netdev@vger.kernel.org>; Fri,  9 Oct 2026 10:41:42 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.127.231.53
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1791542515; cv=none; b=gDqhHgEsgE5KyMaYcce79Mrn1874VWM1S9UjG2X+FytiibR/kJB4zNtK/DtmP0Ie2h0YlooVSoIlzWKNQ31lJ8tCOZwRzi1hzzMk7oI95r+6OMW2nwF8ixHpcLx8XbkroGgm2v8AUbTvz9BcSJ1JVgG+tByROBkjP04wdkz1b/Y=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1791542515; c=relaxed/simple;
	bh=EMVL+vtprNX6/nb1cKg8CTGnpBwi4mL9PY0tVfV+wHw=;
	h=Cc:From:Subject:Mime-Version:To:Message-Id:Date:Content-Type; b=jResxQK2Y0dJOEDF7V5IsUg5PweZv+KVHjB5eZDkOS4pwnSNYaSKC+GJsxA/s4PcK/p8GI/46ONGMAyXjWekG4UUmlPQXJQLp1kIthfqrMiRpUwmSuqcCls27etQJJM2LQaBsCA9puwLu4bu3zVyyrhsiDKn/2qxytYSxgBbD9g=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lanxincomputing.com; spf=pass smtp.mailfrom=lanxincomputing.com; dkim=pass (2048-bit key) header.d=lanxincomputing-com.20200927.dkim.feishu.cn header.i=@lanxincomputing-com.20200927.dkim.feishu.cn header.b=bTxFwom7; arc=none smtp.client-ip=209.127.231.53
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lanxincomputing.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lanxincomputing.com
X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
 s=s1; d=lanxincomputing-com.20200927.dkim.feishu.cn; t=1791542492;
  h=from:subject:mime-version:from:date:message-id:subject:to:cc:
 reply-to:content-type:mime-version:in-reply-to:message-id;
 bh=CEJbbbhuXHgrYs6t3WPjEtu9JKVxoeLA7pFn71Sz5a4=;
 b=bTxFwom7nw/ai03UEjIoUvLYMzReOVEaIvlywfP8G6LrIHLfnPDq/iUGImplw+9DZ7tF4y
 tzpGx2IIWEYKFUsLPDczL8RXVeleH3TwWWl05qByhuudXkxAyb9fax/9+ldp7mcClNCH6q
 GygogY/+iZe8ioIP4HCA/bziup4CsFmLJGZgMy09kWZ/FZ9jpY/YLDX+w6cOR8fZbxMcc6
 WvQw29xR8Zr4oq2nmnfIgT+vRldSn4YjyEVyNWVMvakTN5oXXPUVy5+8ohVvKGBs/8AAwK
 fQAg+6szagJEXTUC52GI3mbU+weoZy8fsqDMOyaIq05VYxfvfTHopGkib3aK8Q==
X-Mailer: git-send-email 2.53.0
X-Original-From: Jin Li <jinli@lanxincomputing.com>
X-Cc: "David S . Miller" <davem@davemloft.net>, 
	"Eric Dumazet" <edumazet@google.com>, "Jakub Kicinski" <kuba@kernel.org>, 
	"Paolo Abeni" <pabeni@redhat.com>, "Simon Horman" <horms@kernel.org>, 
	<netdev@vger.kernel.org>, <linux-kselftest@vger.kernel.org>, 
	<linux-kernel@vger.kernel.org>, "Jin Li" <jinli@lanxincomputing.com>
X-Precedence: bulk
X-Mailing-List: netdev@vger.kernel.org
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-Received: from ubuntu ([123.120.5.129]) by smtp.feishu.cn with ESMTPS; Fri, 09 Oct 2026 18:41:29 +0800
X-Lms-Return-Path: <lba+26ac8c4da+802424+vger.kernel.org+jinli@lanxincomputing.com>