Home
last modified time | relevance | path

Searched refs:fdb (Results 1 – 3 of 3) sorted by relevance

/net/bridge/
Dbr_fdb.c72 const struct net_bridge_fdb_entry *fdb) in has_expired() argument
74 return !test_bit(BR_FDB_STATIC, &fdb->flags) && in has_expired()
75 !test_bit(BR_FDB_ADDED_BY_EXT_LEARN, &fdb->flags) && in has_expired()
76 time_before_eq(fdb->updated + hold_time(br), jiffies); in has_expired()
87 const struct net_bridge_fdb_entry *fdb) in fdb_to_nud() argument
89 if (test_bit(BR_FDB_LOCAL, &fdb->flags)) in fdb_to_nud()
91 else if (test_bit(BR_FDB_STATIC, &fdb->flags)) in fdb_to_nud()
93 else if (has_expired(br, fdb)) in fdb_to_nud()
100 const struct net_bridge_fdb_entry *fdb, in fdb_fill_info() argument
103 const struct net_bridge_port *dst = READ_ONCE(fdb->dst); in fdb_fill_info()
[all …]
Dbr_switchdev.c127 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()
[all …]
Dbr_private.h2144 const struct net_bridge_fdb_entry *fdb, int type);
2241 const struct net_bridge_fdb_entry *fdb, int type) in br_switchdev_fdb_notify() argument