From: Ido Schimmel <idosch@nvidia.com>
To: Vladimir Oltean <vladimir.oltean@nxp.com>
Cc: netdev@vger.kernel.org, Jakub Kicinski <kuba@kernel.org>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Paolo Abeni <pabeni@redhat.com>,
"Hans J. Schultz" <netdev@kapio-technology.com>,
Roopa Prabhu <roopa@nvidia.com>,
Nikolay Aleksandrov <razor@blackwall.org>,
Ivan Vecera <ivecera@redhat.com>, Jiri Pirko <jiri@resnulli.us>,
Jesse Brandeburg <jesse.brandeburg@intel.com>,
bridge@lists.linux-foundation.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 net] net: bridge: switchdev: don't notify FDB entries with "master dynamic"
Date: Wed, 19 Apr 2023 15:49:44 +0300 [thread overview]
Message-ID: <ZD/jaASktd2cBlnI@shredder> (raw)
In-Reply-To: <20230418155902.898627-1-vladimir.oltean@nxp.com>
On Tue, Apr 18, 2023 at 06:59:02PM +0300, Vladimir Oltean wrote:
> diff --git a/net/bridge/br_switchdev.c b/net/bridge/br_switchdev.c
> index de18e9c1d7a7..ba95c4d74a60 100644
> --- a/net/bridge/br_switchdev.c
> +++ b/net/bridge/br_switchdev.c
> @@ -148,6 +148,17 @@ br_switchdev_fdb_notify(struct net_bridge *br,
> if (test_bit(BR_FDB_LOCKED, &fdb->flags))
> return;
Thanks for the patch. Ran a few tests and looks fine. Will report full
results tomorrow morning.
>
> + /* Entries with these flags were created using ndm_state == NUD_REACHABLE,
> + * ndm_flags == NTF_MASTER( | NTF_STICKY), ext_flags == 0 by something
> + * equivalent to 'bridge fdb add ... master dynamic (sticky)'.
> + * Drivers don't know how to deal with these, so don't notify them to
> + * avoid confusing them.
> + */
> + if (test_bit(BR_FDB_ADDED_BY_USER, &fdb->flags) &&
> + !test_bit(BR_FDB_STATIC, &fdb->flags) &&
> + !test_bit(BR_FDB_ADDED_BY_EXT_LEARN, &fdb->flags))
> + return;
> +
> br_switchdev_fdb_populate(br, &item, fdb, NULL);
>
> switch (type) {
> --
> 2.34.1
>
next prev parent reply other threads:[~2023-04-19 12:50 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-18 15:59 [PATCH v2 net] net: bridge: switchdev: don't notify FDB entries with "master dynamic" Vladimir Oltean
2023-04-19 12:49 ` Ido Schimmel [this message]
2023-04-20 6:23 ` Ido Schimmel
2023-04-20 7:50 ` patchwork-bot+netdevbpf
2023-04-23 8:47 ` Hans Schultz
2023-04-24 12:26 ` Vladimir Oltean
2023-04-24 15:33 ` Hans Schultz
2023-04-24 15:37 ` Hans Schultz
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=ZD/jaASktd2cBlnI@shredder \
--to=idosch@nvidia.com \
--cc=bridge@lists.linux-foundation.org \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=ivecera@redhat.com \
--cc=jesse.brandeburg@intel.com \
--cc=jiri@resnulli.us \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@kapio-technology.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=razor@blackwall.org \
--cc=roopa@nvidia.com \
--cc=vladimir.oltean@nxp.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;
as well as URLs for NNTP newsgroup(s).