OSDN Git Service

Merge branch 'bridge-mdb'
authorDavid S. Miller <davem@davemloft.net>
Sat, 17 Aug 2019 19:36:57 +0000 (12:36 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 17 Aug 2019 19:36:57 +0000 (12:36 -0700)
commitf77508308fa76d0efc60ebf3c906f467feb062cb
treefccde8ba8ab57d8c3a471f78a55f10399a62dd08
parent59d0f749bf3e6fea1ba3f9860ccf8b9ae7b3bb0e
parent1bc844ee0faa1b92e3ede00bdd948021c78d7088
Merge branch 'bridge-mdb'

Nikolay Aleksandrov says:

====================
net: bridge: mdb: allow dump/add/del of host-joined entries

This set makes the bridge dump host-joined mdb entries, they should be
treated as normal entries since they take a slot and are aging out.
We already have notifications for them but we couldn't dump them until
now so they remained hidden. We dump them similar to how they're
notified, in order to keep user-space compatibility with the dumped
objects (e.g. iproute2 dumps mdbs in a format which can be fed into
add/del commands) we allow host-joined groups also to be added/deleted via
mdb commands. That can later be used for L2 mcast MAC manipulation as
was recently discussed. Note that iproute2 changes are not necessary,
this set will work with the current user-space mdb code.

Patch 01 - a trivial comment move
Patch 02 - factors out the mdb filling code so it can be
           re-used for the host-joined entries
Patch 03 - dumps host-joined entries
Patch 04 - allows manipulation of host-joined entries via standard mdb
           calls

v3: fix compiler warning in patch 04 (DaveM)
v2: change patch 04 to avoid double notification and improve host group
    manual removal if no ports are present in the group
====================

Signed-off-by: David S. Miller <davem@davemloft.net>