Re: [PATCH net-next v3 4/8] net: bridge: fdb: add ndo_fdb_del_bulk

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 4/12/22 16:22, Nikolay Aleksandrov wrote:
Add a minimal ndo_fdb_del_bulk implementation which flushes all entries.
Support for more fine-grained filtering will be added in the following
patches.

Signed-off-by: Nikolay Aleksandrov <razor@xxxxxxxxxxxxx>
---
  net/bridge/br_device.c   |  1 +
  net/bridge/br_fdb.c      | 25 ++++++++++++++++++++++++-
  net/bridge/br_netlink.c  |  2 +-
  net/bridge/br_private.h  |  6 +++++-
  net/bridge/br_sysfs_br.c |  2 +-
  5 files changed, 32 insertions(+), 4 deletions(-)

diff --git a/net/bridge/br_device.c b/net/bridge/br_device.c
index 8d6bab244c4a..58a4f70e01e3 100644
--- a/net/bridge/br_device.c
+++ b/net/bridge/br_device.c
@@ -465,6 +465,7 @@ static const struct net_device_ops br_netdev_ops = {
  	.ndo_fix_features        = br_fix_features,
  	.ndo_fdb_add		 = br_fdb_add,
  	.ndo_fdb_del		 = br_fdb_delete,
+	.ndo_fdb_del_bulk	 = br_fdb_delete_bulk,
  	.ndo_fdb_dump		 = br_fdb_dump,
  	.ndo_fdb_get		 = br_fdb_get,
  	.ndo_bridge_getlink	 = br_getlink,
diff --git a/net/bridge/br_fdb.c b/net/bridge/br_fdb.c
index 6ccda68bd473..fd7012c32cd5 100644
--- a/net/bridge/br_fdb.c
+++ b/net/bridge/br_fdb.c
@@ -559,7 +559,7 @@ void br_fdb_cleanup(struct work_struct *work)
  }
/* Completely flush all dynamic entries in forwarding database.*/
-void br_fdb_flush(struct net_bridge *br)
+void __br_fdb_flush(struct net_bridge *br)

hmm, actually the rename is not really necessary with the new naming




[Index of Archives]     [Netdev]     [AoE Tools]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux