• Nikolay Aleksandrov's avatar
    net: bridge: fdb: add support for fine-grained flushing · 1f78ee14
    Nikolay Aleksandrov authored
    Add the ability to specify exactly which fdbs to be flushed. They are
    described by a new structure - net_bridge_fdb_flush_desc. Currently it
    can match on port/bridge ifindex, vlan id and fdb flags. It is used to
    describe the existing dynamic fdb flush operation. Note that this flush
    operation doesn't treat permanent entries in a special way (fdb_delete vs
    fdb_delete_local), it will delete them regardless if any port is using
    them, so currently it can't directly replace deletes which need to handle
    that case, although we can extend it later for that too.
    Signed-off-by: default avatarNikolay Aleksandrov <razor@blackwall.org>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    1f78ee14
br_sysfs_br.c 29.6 KB