Lines Matching refs:fdb
127 const struct net_bridge_fdb_entry *fdb, in br_switchdev_fdb_populate() argument
130 const struct net_bridge_port *p = READ_ONCE(fdb->dst); in br_switchdev_fdb_populate()
132 item->addr = fdb->key.addr.addr; in br_switchdev_fdb_populate()
133 item->vid = fdb->key.vlan_id; in br_switchdev_fdb_populate()
134 item->added_by_user = test_bit(BR_FDB_ADDED_BY_USER, &fdb->flags); in br_switchdev_fdb_populate()
135 item->offloaded = test_bit(BR_FDB_OFFLOADED, &fdb->flags); in br_switchdev_fdb_populate()
136 item->is_local = test_bit(BR_FDB_LOCAL, &fdb->flags); in br_switchdev_fdb_populate()
144 const struct net_bridge_fdb_entry *fdb, int type) in br_switchdev_fdb_notify() argument
148 if (test_bit(BR_FDB_LOCKED, &fdb->flags)) in br_switchdev_fdb_notify()
157 if (test_bit(BR_FDB_ADDED_BY_USER, &fdb->flags) && in br_switchdev_fdb_notify()
158 !test_bit(BR_FDB_STATIC, &fdb->flags) && in br_switchdev_fdb_notify()
159 !test_bit(BR_FDB_ADDED_BY_EXT_LEARN, &fdb->flags)) in br_switchdev_fdb_notify()
162 br_switchdev_fdb_populate(br, &item, fdb, NULL); in br_switchdev_fdb_notify()
301 const struct net_bridge_fdb_entry *fdb, in br_switchdev_fdb_replay_one() argument
307 br_switchdev_fdb_populate(br, &item, fdb, ctx); in br_switchdev_fdb_replay_one()
317 struct net_bridge_fdb_entry *fdb; in br_switchdev_fdb_replay() local
337 hlist_for_each_entry_rcu(fdb, &br->fdb_list, fdb_node) { in br_switchdev_fdb_replay()
338 err = br_switchdev_fdb_replay_one(br, nb, fdb, action, ctx); in br_switchdev_fdb_replay()