From 6317ffc9bdd0594fcada1a065539ebf5b928746c Mon Sep 17 00:00:00 2001 From: Nikolay Aleksandrov Date: Mon, 5 Oct 2026 17:39:33 +0300 Subject: [PATCH] net: bridge: fdb: update the comment for br_fdb_cleanup_by_dst Update the comment for br_fdb_cleanup_by_dst to better reflect what it is doing after the recent changes. Signed-off-by: Nikolay Aleksandrov Reviewed-by: Ido Schimmel Link: https://patch.msgid.link/20261005143937.877466-3-razor@blackwall.org Signed-off-by: Jakub Kicinski --- net/bridge/br_fdb.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/net/bridge/br_fdb.c b/net/bridge/br_fdb.c index 730b178cf6c4..ce09e3fbc58b 100644 --- a/net/bridge/br_fdb.c +++ b/net/bridge/br_fdb.c @@ -868,9 +868,11 @@ int br_fdb_delete_bulk(struct nlmsghdr *nlh, struct net_device *dev, return 0; } -/* Clean up all entries referring to a specific destination. - * if do_all is set also flush static entries - * if vid is set delete all entries that match the vlan_id +/* Clean up entries referring to cleanup_dst's port. + * If do_all is set ignore vid and entry flags. Otherwise vid selects + * the VLAN (0 means all), keeping static and non-offloaded ext learned entries. + * For a port-VLAN dst, vid must match its VLAN ID. Always clean up its local + * entry unless user-added and fall back to the port dst for retained entries. */ void br_fdb_cleanup_by_dst(struct net_bridge *br, struct net_bridge_dst cleanup_dst, u16 vid,