From: Andrew Lunn <andrew@lunn.ch>
To: Ioana Ciornei <ioana.ciornei@nxp.com>
Cc: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org,
netdev@vger.kernel.org, davem@davemloft.net,
f.fainelli@gmail.com, jiri@mellanox.com
Subject: Re: [PATCH 0/5] staging: fsl-dpaa2/ethsw: add the .ndo_fdb_dump callback
Date: Mon, 29 Jul 2019 18:35:06 +0200 [thread overview]
Message-ID: <20190729163506.GJ4110@lunn.ch> (raw)
In-Reply-To: <1564416712-16946-1-git-send-email-ioana.ciornei@nxp.com>
On Mon, Jul 29, 2019 at 07:11:47PM +0300, Ioana Ciornei wrote:
> This patch set adds some features and small fixes in the
> FDB table manipulation area.
>
> First of all, we implement the .ndo_fdb_dump netdev callback so that all
> offloaded FDB entries, either static or learnt, are available to the user.
> This is necessary because the DPAA2 switch does not emit interrupts when a
> new FDB is learnt or deleted, thus we are not able to keep the software
> bridge state and the HW in sync by calling the switchdev notifiers.
>
> The patch set also adds the .ndo_fdb_[add|del] callbacks in order to
> facilitate adding FDB entries not associated with any master device.
>
> One interesting thing that I observed is that when adding an FDB entry
> associated with a bridge (ie using the 'master' keywork appended to the
> bridge command) and then dumping the FDB entries, there will be duplicates
> of the same entry: one listed by the bridge device and one by the
> driver's .ndo_fdb_dump).
> It raises the question whether this is the expected behavior or not.
DSA devices are the same, they don't provide an interrupt when a new
entry is added by the hardware. So we can have two entries, or just
the SW bridge entry, or just the HW entry, depending on ageing.
> Another concern is regarding the correct/desired machanism for drivers to
> signal errors back to switchdev on adding or deleting an FDB entry.
> In the switchdev documentation, there is a TODO in the place of this topic.
It used to be a two state prepare/commit transaction, but that was
changed a while back.
Maybe the DSA core code can give you ideas?
Andrew
next prev parent reply other threads:[~2019-07-29 16:35 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-29 16:11 Ioana Ciornei
2019-07-29 16:11 ` [PATCH 1/5] staging: fsl-dpaa2/ethsw: remove unused structure Ioana Ciornei
2019-07-29 16:11 ` [PATCH 2/5] staging: fsl-dpaa2/ethsw: notify switchdev of offloaded entry Ioana Ciornei
2019-07-29 16:11 ` [PATCH 3/5] staging: fsl-dpaa2/ethsw: add .ndo_fdb_dump callback Ioana Ciornei
2019-07-29 16:11 ` [PATCH 4/5] staging: fsl-dpaa2/ethsw: check added_by_user flag Ioana Ciornei
2019-07-29 16:11 ` [PATCH 5/5] staging: fsl-dpaa2/ethsw: add .ndo_fdb[add|del] callbacks Ioana Ciornei
2019-07-29 16:35 ` Andrew Lunn [this message]
2019-07-30 9:13 ` [PATCH 0/5] staging: fsl-dpaa2/ethsw: add the .ndo_fdb_dump callback Ioana Ciornei
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=20190729163506.GJ4110@lunn.ch \
--to=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=f.fainelli@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=ioana.ciornei@nxp.com \
--cc=jiri@mellanox.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/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
all inboxes | Powered by JetHome®