From: Ido Schimmel <idosch@nvidia.com>
To: netdev@vger.kernel.org, bridge@lists.linux.dev
Cc: davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com,
edumazet@google.com, razor@blackwall.org, horms@kernel.org,
sdf@fomichev.me
Subject: Re: [PATCH net 3/3] selftests: rtnetlink: Add bridge promiscuity tests
Date: Wed, 27 May 2026 11:25:14 +0300 [thread overview]
Message-ID: <20260527082514.GA443143@shredder> (raw)
In-Reply-To: <20260526064818.272516-4-idosch@nvidia.com>
On Tue, May 26, 2026 at 09:48:18AM +0300, Ido Schimmel wrote:
> +# Test that changing bridge port flags via the netlink path does not sleep with
> +# the bridge spin lock held.
> +kci_test_bridge_promisc_netlink()
> +{
> + local dummy="test_dummy1"
> + local bridge="test_br1"
> + local team="test_team1"
> + local ret=0
> +
> + run_cmd ip link add $team up type team
> + run_cmd ip link add $bridge up type bridge vlan_filtering 1
> + run_cmd ip link add $dummy up type dummy
> + run_cmd ip link set $dummy master $bridge
> + run_cmd ip link set $team master $bridge
> +
> + # This causes the bridge driver to sync all the static FDB entries to
> + # the team device (which supports unicast filtering) and remove it from
> + # promiscuous mode. The call to dev_set_promiscuity() can sleep due to
> + # Rx mode inlining, which is a problem if the bridge spin lock is held.
> + run_cmd bridge link set dev $dummy flood off learning off
> +
> + run_cmd ip link del $dummy
> + run_cmd ip link del $bridge
> + run_cmd ip link del $team
> +
> + end_test "PASS: bridge_promisc_netlink"
> +}
Both Sashikos complain about this passing even we failed to create the
team device ("for example with CONFIG_NET_TEAM=n or an iproute2 build
without team support").
We have CONFIG_NET_TEAM=y in tools/testing/selftests/net/config and we
can't assume we are running with ancient iproute2.
prev parent reply other threads:[~2026-05-27 8:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-26 6:48 [PATCH net 0/3] bridge: Fix sleep in atomic context Ido Schimmel
2026-05-26 6:48 ` [PATCH net 1/3] bridge: Fix sleep in atomic context in netlink path Ido Schimmel
2026-05-26 6:48 ` [PATCH net 2/3] bridge: Fix sleep in atomic context in sysfs path Ido Schimmel
2026-05-26 6:48 ` [PATCH net 3/3] selftests: rtnetlink: Add bridge promiscuity tests Ido Schimmel
2026-05-27 8:25 ` Ido Schimmel [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=20260527082514.GA443143@shredder \
--to=idosch@nvidia.com \
--cc=bridge@lists.linux.dev \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=razor@blackwall.org \
--cc=sdf@fomichev.me \
/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