• Amit Cohen's avatar
    net: Handle bulk delete policy in bridge driver · 38985e8c
    Amit Cohen authored
    The merge commit 92716869 ("Merge branch 'br-flush-filtering'")
    added support for FDB flushing in bridge driver. The following patches
    will extend VXLAN driver to support FDB flushing as well. The netlink
    message for bulk delete is shared between the drivers. With the existing
    implementation, there is no way to prevent user from flushing with
    attributes that are not supported per driver. For example, when VNI will
    be added, user will not get an error for flush FDB entries in bridge
    with VNI, although this attribute is not relevant for bridge.
    
    As preparation for support of FDB flush in VXLAN driver, move the policy
    to be handled in bridge driver, later a new policy for VXLAN will be
    added in VXLAN driver. Do not pass 'vid' as part of ndo_fdb_del_bulk(),
    as this field is relevant only for bridge.
    Signed-off-by: default avatarAmit Cohen <amcohen@nvidia.com>
    Reviewed-by: default avatarIdo Schimmel <idosch@nvidia.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    38985e8c
br_fdb.c 38.1 KB