]> www.infradead.org Git - users/dwmw2/linux.git/commit
net: Handle bulk delete policy in bridge driver
authorAmit Cohen <amcohen@nvidia.com>
Mon, 9 Oct 2023 10:06:08 +0000 (13:06 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Oct 2023 09:00:30 +0000 (10:00 +0100)
commit38985e8c278b82e6d4d62d4acd57c761cc23ce63
tree1807ffd14de9116890e1b3216eade803e682ad95
parent0e6bb5b7f4c8e6665e76bdafce37ad4a8daf83c5
net: Handle bulk delete policy in bridge driver

The merge commit 92716869375b ("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: Amit Cohen <amcohen@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
net/bridge/br_fdb.c
net/bridge/br_private.h
net/core/rtnetlink.c