• Nikolay Aleksandrov's avatar
    net: bridge: add option to allow activity notifications for any fdb entries · 31cbc39b
    Nikolay Aleksandrov authored
    This patch adds the ability to notify about activity of any entries
    (static, permanent or ext_learn). EVPN multihoming peers need it to
    properly and efficiently handle mac sync (peer active/locally active).
    We add a new NFEA_ACTIVITY_NOTIFY attribute which is used to dump the
    current activity state and to control if static entries should be monitored
    at all. We use 2 bits - one to activate fdb entry tracking (disabled by
    default) and the second to denote that an entry is inactive. We need
    the second bit in order to avoid multiple notifications of inactivity.
    Obviously this makes no difference for dynamic entries since at the time
    of inactivity they get deleted, while the tracked non-dynamic entries get
    the inactive bit set and get a notification.
    Signed-off-by: default avatarNikolay Aleksandrov <nikolay@cumulusnetworks.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    31cbc39b
br_fdb.c 32.1 KB