linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] staging: fsl-dpaa2/ethsw: add the .ndo_fdb_dump callback
@ 2019-07-29 16:11 Ioana Ciornei
  2019-07-29 16:11 ` [PATCH 1/5] staging: fsl-dpaa2/ethsw: remove unused structure Ioana Ciornei
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Ioana Ciornei @ 2019-07-29 16:11 UTC (permalink / raw)
  To: gregkh, linux-kernel
  Cc: netdev, davem, andrew, f.fainelli, jiri, Ioana Ciornei

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.

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.

Ioana Ciornei (5):
  staging: fsl-dpaa2/ethsw: remove unused structure
  staging: fsl-dpaa2/ethsw: notify switchdev of offloaded entry
  staging: fsl-dpaa2/ethsw: add .ndo_fdb_dump callback
  staging: fsl-dpaa2/ethsw: check added_by_user flag
  staging: fsl-dpaa2/ethsw: add .ndo_fdb[add|del] callbacks

 drivers/staging/fsl-dpaa2/ethsw/TODO       |   1 -
 drivers/staging/fsl-dpaa2/ethsw/dpsw-cmd.h |  15 ++-
 drivers/staging/fsl-dpaa2/ethsw/dpsw.c     |  51 +++++++++
 drivers/staging/fsl-dpaa2/ethsw/dpsw.h     |  56 ++++-----
 drivers/staging/fsl-dpaa2/ethsw/ethsw.c    | 178 ++++++++++++++++++++++++++++-
 5 files changed, 265 insertions(+), 36 deletions(-)

-- 
1.9.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-07-30  9:13 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-29 16:11 [PATCH 0/5] staging: fsl-dpaa2/ethsw: add the .ndo_fdb_dump callback 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 ` [PATCH 0/5] staging: fsl-dpaa2/ethsw: add the .ndo_fdb_dump callback Andrew Lunn
2019-07-30  9:13   ` Ioana Ciornei

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).