public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: Jakub Kicinski <kuba@kernel.org>
To: nikolay@nvidia.com
Cc: Jakub Kicinski <kuba@kernel.org>,
	syzbot+d5d1b7343531d17bd3c5@syzkaller.appspotmail.com,
	davem@davemloft.net, edumazet@google.com, horms@kernel.org,
	pabeni@redhat.com, netdev@vger.kernel.org, petrm@nvidia.com,
	bridge@lists.linux.dev, idosch@nvidia.com
Subject: Re: [net,2/2] selftests: forwarding: bridge_mdb_max: add tests for mdb_n_entries warning
Date: Thu, 12 Feb 2026 19:04:12 -0800	[thread overview]
Message-ID: <20260213030412.1483679-1-kuba@kernel.org> (raw)
In-Reply-To: <20260210144812.1056554-3-nikolay@nvidia.com>

This is an AI-generated review of your patch. The human sending this
email has considered the AI review valid, or at least plausible.

For local reproduction steps see https://netdev-ai.bots.linux.dev/ai-local.html
---
selftests: forwarding: bridge_mdb_max: add tests for mdb_n_entries warning

This commit adds tests to exercise different ways which used to trigger a
warning in the mdb_n_entries counting code.

> diff --git a/tools/testing/selftests/net/forwarding/bridge_mdb_max.sh b/tools/testing/selftests/net/forwarding/bridge_mdb_max.sh
> index 3da9d93ab36f..59d2fa3953ea 100755
> --- a/tools/testing/selftests/net/forwarding/bridge_mdb_max.sh
> +++ b/tools/testing/selftests/net/forwarding/bridge_mdb_max.sh

[ ... ]

> @@ -106,6 +105,7 @@ switch_create_8021q()
>
>  switch_create_8021qvs()
>  {
> +	log_info "802.1q mcast_vlan_snoopping 1 tests"
                                     ^^^^^^^^

There's a typo: 'snoopping' should be 'snooping'.

>  	switch_create_8021q "mcast_vlan_snooping 1"
>  	bridge vlan global set dev br0 vid 10 mcast_igmp_version 3
>  	bridge vlan global set dev br0 vid 10 mcast_mld_version 2

[ ... ]

> @@ -1334,6 +1405,21 @@ test_8021qvs()
>  	switch_destroy
>  }
>
> +test_mdb_count_warning()
> +{
> +	# Tests for mdb_n_count warning

Should this comment say 'mdb_n_entries' instead of 'mdb_n_count' to match the
terminology used in the commit message?

> +
> +	log_info "MDB count warning tests"
> +	switch_create_8021q
> +	setup_wait
> +
> +	test_mdb_count_mcast_vlan_snooping_flush
> +	test_mdb_count_mcast_snooping_flush
> +	test_mdb_count_vlan_state_flush
> +
> +	switch_destroy
> +}
> +

[ ... ]
-- 
pw-bot: cr

      reply	other threads:[~2026-02-13  3:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-10 14:48 [PATCH net 0/2] net: bridge: mcast: fix mdb_n_entries counting warning Nikolay Aleksandrov
2026-02-10 14:48 ` [PATCH net 1/2] net: bridge: mcast: always update mdb_n_entries for vlan contexts Nikolay Aleksandrov
2026-02-10 14:48 ` [PATCH net 2/2] selftests: forwarding: bridge_mdb_max: add tests for mdb_n_entries warning Nikolay Aleksandrov
2026-02-13  3:04   ` Jakub Kicinski [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260213030412.1483679-1-kuba@kernel.org \
    --to=kuba@kernel.org \
    --cc=bridge@lists.linux.dev \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=horms@kernel.org \
    --cc=idosch@nvidia.com \
    --cc=netdev@vger.kernel.org \
    --cc=nikolay@nvidia.com \
    --cc=pabeni@redhat.com \
    --cc=petrm@nvidia.com \
    --cc=syzbot+d5d1b7343531d17bd3c5@syzkaller.appspotmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox