]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'net-bridge-fdb-activity-tracking'
authorDavid S. Miller <davem@davemloft.net>
Wed, 24 Jun 2020 21:36:33 +0000 (14:36 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Jun 2020 21:36:33 +0000 (14:36 -0700)
commit2ad7fac45e85d9f4a52a2d87d107f40a126879b6
tree7e31ce30ef4d4a24db01d59cfbf7660a887d7ba3
parente79eebdb5516571cb7bb0b6e12b43e72d4a96d4e
parentf0ff2e74637dc99fa613b49c5acb5f41af011d2c
Merge branch 'net-bridge-fdb-activity-tracking'

Nikolay Aleksandrov says:

====================
net: bridge: fdb activity tracking

This set adds extensions needed for EVPN multi-homing proper and
efficient mac sync. User-space (e.g. FRR) needs to be able to track
non-dynamic entry activity on per-fdb basis depending if a tracked fdb is
currently peer active or locally active and needs to be able to add new
peer active fdb (static + track + inactive) without refreshing it to get
real activity tracking. Patch 02 adds a new NDA attribute - NDA_FDB_EXT_ATTRS
to avoid future pollution of NDA attributes by bridge or vxlan. New
bridge/vxlan specific fdb attributes are embedded in NDA_FDB_EXT_ATTRS,
which is used in patch 03 to pass the new NFEA_ACTIVITY_NOTIFY attribute
which controls if an fdb should be tracked and also reflects its current
state when dumping. It is treated as a bitfield, current valid bits are:
 1 - mark an entry for activity tracking
 2 - mark an entry as inactive to avoid multiple notifications and
     reflect state properly

Patch 04 adds the ability to avoid refreshing an entry when changing it
via the NFEA_DONT_REFRESH flag. That allows user-space to mark a static
entry for tracking and keep its real activity unchanged.
The set has been extensively tested with FRR and those changes will
be upstreamed if/after it gets accepted.
====================

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