Home
last modified time | relevance | path

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

1234

/linux-6.1.9/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.c129 const struct net_bridge_fdb_entry *fdb, in br_switchdev_fdb_populate() argument
132 const struct net_bridge_port *p = READ_ONCE(fdb->dst); in br_switchdev_fdb_populate()
134 item->addr = fdb->key.addr.addr; in br_switchdev_fdb_populate()
135 item->vid = fdb->key.vlan_id; in br_switchdev_fdb_populate()
136 item->added_by_user = test_bit(BR_FDB_ADDED_BY_USER, &fdb->flags); in br_switchdev_fdb_populate()
137 item->offloaded = test_bit(BR_FDB_OFFLOADED, &fdb->flags); in br_switchdev_fdb_populate()
138 item->is_local = test_bit(BR_FDB_LOCAL, &fdb->flags); in br_switchdev_fdb_populate()
145 const struct net_bridge_fdb_entry *fdb, int type) in br_switchdev_fdb_notify() argument
149 br_switchdev_fdb_populate(br, &item, fdb, NULL); in br_switchdev_fdb_notify()
288 const struct net_bridge_fdb_entry *fdb, in br_switchdev_fdb_replay_one() argument
[all …]
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/esw/
Dvporttbl.c19 struct mlx5_flow_table *fdb; member
29 struct mlx5_flow_table *fdb; in esw_vport_tbl_create() local
38 fdb = mlx5_create_auto_grouped_flow_table(ns, &ft_attr); in esw_vport_tbl_create()
39 if (IS_ERR(fdb)) { in esw_vport_tbl_create()
41 PTR_ERR(fdb)); in esw_vport_tbl_create()
44 return fdb; in esw_vport_tbl_create()
77 struct mlx5_flow_table *fdb; in mlx5_esw_vporttbl_get() local
92 fdb = ERR_PTR(-ENOMEM); in mlx5_esw_vporttbl_get()
99 fdb = ERR_PTR(-ENOENT); in mlx5_esw_vporttbl_get()
103 fdb = esw_vport_tbl_create(esw, ns, attr->vport_ns); in mlx5_esw_vporttbl_get()
[all …]
Dlegacy.c27 struct mlx5_flow_table *fdb; in esw_create_legacy_vepa_table() local
40 fdb = mlx5_create_auto_grouped_flow_table(root_ns, &ft_attr); in esw_create_legacy_vepa_table()
41 if (IS_ERR(fdb)) { in esw_create_legacy_vepa_table()
42 err = PTR_ERR(fdb); in esw_create_legacy_vepa_table()
46 esw->fdb_table.legacy.vepa_fdb = fdb; in esw_create_legacy_vepa_table()
54 if (!esw->fdb_table.legacy.fdb) in esw_destroy_legacy_fdb_table()
63 mlx5_destroy_flow_table(esw->fdb_table.legacy.fdb); in esw_destroy_legacy_fdb_table()
65 esw->fdb_table.legacy.fdb = NULL; in esw_destroy_legacy_fdb_table()
78 struct mlx5_flow_table *fdb; in esw_create_legacy_fdb_table() local
101 fdb = mlx5_create_flow_table(root_ns, &ft_attr); in esw_create_legacy_fdb_table()
[all …]
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/esw/diag/
Dbridge_tracepoint.h14 TP_PROTO(const struct mlx5_esw_bridge_fdb_entry *fdb),
15 TP_ARGS(fdb),
25 netdev_name(fdb->dev),
27 memcpy(__entry->addr, fdb->key.addr, ETH_ALEN);
28 __entry->vid = fdb->key.vid;
29 __entry->flags = fdb->flags;
30 __entry->used = jiffies_to_msecs(jiffies - fdb->lastuse)
42 TP_PROTO(const struct mlx5_esw_bridge_fdb_entry *fdb),
43 TP_ARGS(fdb)
47 TP_PROTO(const struct mlx5_esw_bridge_fdb_entry *fdb),
[all …]
/linux-6.1.9/tools/testing/selftests/drivers/net/mlxsw/spectrum/
Dvxlan_flooding_ipv6.sh165 bridge fdb append 00:00:00:00:00:00 dev vxlan0 self \
239 bridge fdb del 00:00:00:00:00:00 dev vxlan0 self dst 2001:db8:2::12
240 bridge fdb del 00:00:00:00:00:00 dev vxlan0 self dst 2001:db8:2::13
241 bridge fdb del 00:00:00:00:00:00 dev vxlan0 self dst 2001:db8:2::14
242 bridge fdb del 00:00:00:00:00:00 dev vxlan0 self dst 2001:db8:2::15
243 bridge fdb del 00:00:00:00:00:00 dev vxlan0 self dst 2001:db8:2::16
253 bridge fdb del 00:00:00:00:00:00 dev vxlan0 self dst 2001:db8:2::2
254 bridge fdb del 00:00:00:00:00:00 dev vxlan0 self dst 2001:db8:2::3
255 bridge fdb del 00:00:00:00:00:00 dev vxlan0 self dst 2001:db8:2::4
256 bridge fdb del 00:00:00:00:00:00 dev vxlan0 self dst 2001:db8:2::5
[all …]
/linux-6.1.9/drivers/net/ethernet/ti/
Dam65-cpsw-switchdev.c371 struct switchdev_notifier_fdb_info *fdb; in am65_cpsw_switchdev_event_work() local
378 fdb = &switchdev_work->fdb_info; in am65_cpsw_switchdev_event_work()
381 fdb->addr, fdb->vid, fdb->added_by_user, in am65_cpsw_switchdev_event_work()
382 fdb->offloaded, port_id); in am65_cpsw_switchdev_event_work()
384 if (!fdb->added_by_user || fdb->is_local) in am65_cpsw_switchdev_event_work()
386 if (memcmp(port->slave.mac_addr, (u8 *)fdb->addr, ETH_ALEN) == 0) in am65_cpsw_switchdev_event_work()
389 cpsw_ale_add_ucast(cpsw->ale, (u8 *)fdb->addr, port_id, in am65_cpsw_switchdev_event_work()
390 fdb->vid ? ALE_VLAN : 0, fdb->vid); in am65_cpsw_switchdev_event_work()
391 am65_cpsw_fdb_offload_notify(port->ndev, fdb); in am65_cpsw_switchdev_event_work()
394 fdb = &switchdev_work->fdb_info; in am65_cpsw_switchdev_event_work()
[all …]
Dcpsw_switchdev.c381 struct switchdev_notifier_fdb_info *fdb; in cpsw_switchdev_event_work() local
388 fdb = &switchdev_work->fdb_info; in cpsw_switchdev_event_work()
391 fdb->addr, fdb->vid, fdb->added_by_user, in cpsw_switchdev_event_work()
392 fdb->offloaded, port); in cpsw_switchdev_event_work()
394 if (!fdb->added_by_user || fdb->is_local) in cpsw_switchdev_event_work()
396 if (memcmp(priv->mac_addr, (u8 *)fdb->addr, ETH_ALEN) == 0) in cpsw_switchdev_event_work()
399 cpsw_ale_add_ucast(cpsw->ale, (u8 *)fdb->addr, port, in cpsw_switchdev_event_work()
400 fdb->vid ? ALE_VLAN : 0, fdb->vid); in cpsw_switchdev_event_work()
401 cpsw_fdb_offload_notify(priv->ndev, fdb); in cpsw_switchdev_event_work()
404 fdb = &switchdev_work->fdb_info; in cpsw_switchdev_event_work()
[all …]
/linux-6.1.9/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/
Dvxlan_flooding_ipv6.sh176 bridge fdb append 00:00:00:00:00:00 dev vxlan0 self \
256 bridge fdb del 00:00:00:00:00:00 dev vxlan0 self dst 2001:db8:2::10
257 bridge fdb del 00:00:00:00:00:00 dev vxlan0 self dst 2001:db8:2::11
258 bridge fdb del 00:00:00:00:00:00 dev vxlan0 self dst 2001:db8:2::12
259 bridge fdb del 00:00:00:00:00:00 dev vxlan0 self dst 2001:db8:2::13
269 bridge fdb del 00:00:00:00:00:00 dev vxlan0 self dst 2001:db8:2::2
270 bridge fdb del 00:00:00:00:00:00 dev vxlan0 self dst 2001:db8:2::3
271 bridge fdb del 00:00:00:00:00:00 dev vxlan0 self dst 2001:db8:2::4
272 bridge fdb del 00:00:00:00:00:00 dev vxlan0 self dst 2001:db8:2::5
282 bridge fdb del 00:00:00:00:00:00 dev vxlan0 self dst 2001:db8:2::14
[all …]
/linux-6.1.9/tools/testing/selftests/net/forwarding/
Dvxlan_bridge_1q.sh190 bridge fdb append dev vx10 00:00:00:00:00:00 dst 192.0.2.34 self
191 bridge fdb append dev vx10 00:00:00:00:00:00 dst 192.0.2.50 self
193 bridge fdb append dev vx20 00:00:00:00:00:00 dst 192.0.2.34 self
194 bridge fdb append dev vx20 00:00:00:00:00:00 dst 192.0.2.50 self
199 bridge fdb del dev vx20 00:00:00:00:00:00 dst 192.0.2.50 self
200 bridge fdb del dev vx20 00:00:00:00:00:00 dst 192.0.2.34 self
202 bridge fdb del dev vx10 00:00:00:00:00:00 dst 192.0.2.50 self
203 bridge fdb del dev vx10 00:00:00:00:00:00 dst 192.0.2.34 self
277 bridge fdb append dev vx10 00:00:00:00:00:00 dst 192.0.2.17 self
278 bridge fdb append dev vx10 00:00:00:00:00:00 dst $other_in_addr self
[all …]
Dvxlan_bridge_1d.sh148 bridge fdb append dev vx1 00:00:00:00:00:00 dst 192.0.2.34 self
149 bridge fdb append dev vx1 00:00:00:00:00:00 dst 192.0.2.50 self
157 bridge fdb del dev vx1 00:00:00:00:00:00 dst 192.0.2.50 self
158 bridge fdb del dev vx1 00:00:00:00:00:00 dst 192.0.2.34 self
212 bridge fdb append dev vx2 00:00:00:00:00:00 dst 192.0.2.17 self
213 bridge fdb append dev vx2 00:00:00:00:00:00 dst $other_in_addr self
308 bridge fdb del dev vx1 00:00:00:00:00:00 dst 192.0.2.50 self
309 bridge fdb del dev vx1 00:00:00:00:00:00 dst 192.0.2.34 self
315 bridge fdb append dev vx1 00:00:00:00:00:00 dst 192.0.2.34 self
316 bridge fdb append dev vx1 00:00:00:00:00:00 dst 192.0.2.50 self
[all …]
Dbridge_vlan_aware.sh121 bridge fdb add de:ad:be:ef:13:37 dev $swp1 master extern_learn vlan 1
123 bridge fdb show brport $swp1 | grep -q de:ad:be:ef:13:37
131 bridge fdb show brport $swp1 | grep -q de:ad:be:ef:13:37
136 bridge fdb show brport $swp2 | grep -q de:ad:be:ef:13:37
141 bridge fdb del de:ad:be:ef:13:37 dev $swp2 master vlan 1 &> /dev/null
142 bridge fdb del de:ad:be:ef:13:37 dev $swp1 master vlan 1 &> /dev/null
Dvxlan_bridge_1q_ipv6.sh205 bridge fdb append dev vx10 00:00:00:00:00:00 dst 2001:db8:4::1 self
206 bridge fdb append dev vx10 00:00:00:00:00:00 dst 2001:db8:5::1 self
208 bridge fdb append dev vx20 00:00:00:00:00:00 dst 2001:db8:4::1 self
209 bridge fdb append dev vx20 00:00:00:00:00:00 dst 2001:db8:5::1 self
214 bridge fdb del dev vx20 00:00:00:00:00:00 dst 2001:db8:5::1 self
215 bridge fdb del dev vx20 00:00:00:00:00:00 dst 2001:db8:4::1 self
217 bridge fdb del dev vx10 00:00:00:00:00:00 dst 2001:db8:5::1 self
218 bridge fdb del dev vx10 00:00:00:00:00:00 dst 2001:db8:4::1 self
296 bridge fdb append dev vx10 00:00:00:00:00:00 dst 2001:db8:3::1 self
297 bridge fdb append dev vx10 00:00:00:00:00:00 dst $other_in_addr self
[all …]
Dbridge_locked_port.sh97 bridge fdb add `mac_get $h1` dev $swp1 master static
103 bridge fdb del `mac_get $h1` dev $swp1 master static
127 bridge fdb add `mac_get $h1` dev $swp1 vlan 100 master static
133 bridge fdb del `mac_get $h1` dev $swp1 vlan 100 master static
156 bridge fdb add `mac_get $h1` dev $swp1 master static
161 bridge fdb del `mac_get $h1` dev $swp1 master static
Dbridge_sticky_fdb.sh51 bridge fdb add $TEST_MAC dev $swp1 master static sticky
53 bridge fdb del $TEST_MAC dev $swp1 vlan 1 master static sticky
55 bridge -j fdb show br br0 brport $swp1\
/linux-6.1.9/tools/testing/selftests/drivers/net/mlxsw/
Dvxlan_flooding.sh164 bridge fdb append 00:00:00:00:00:00 dev vxlan0 self \
255 bridge fdb del 00:00:00:00:00:00 dev vxlan0 self dst 198.51.100.8
256 bridge fdb del 00:00:00:00:00:00 dev vxlan0 self dst 198.51.100.9
257 bridge fdb del 00:00:00:00:00:00 dev vxlan0 self dst 198.51.100.10
267 bridge fdb del 00:00:00:00:00:00 dev vxlan0 self dst 198.51.100.2
268 bridge fdb del 00:00:00:00:00:00 dev vxlan0 self dst 198.51.100.3
269 bridge fdb del 00:00:00:00:00:00 dev vxlan0 self dst 198.51.100.4
279 bridge fdb del 00:00:00:00:00:00 dev vxlan0 self dst 198.51.100.11
280 bridge fdb del 00:00:00:00:00:00 dev vxlan0 self dst 198.51.100.12
281 bridge fdb del 00:00:00:00:00:00 dev vxlan0 self dst 198.51.100.13
[all …]
Dvxlan_fdb_veto.sh67 bridge fdb add 01:02:03:04:05:06 dev vxlan0 self static \
71 bridge fdb add 01:02:03:04:05:06 dev vxlan0 self static \
82 bridge fdb add 00:01:02:03:04:05 dev vxlan0 self static \
86 bridge fdb replace 00:01:02:03:04:05 dev vxlan0 self static \
90 bridge fdb replace 00:01:02:03:04:05 dev vxlan0 self static \
102 bridge fdb add 00:00:00:00:00:00 dev vxlan0 self static \
106 bridge fdb append 00:00:00:00:00:00 dev vxlan0 self static \
110 bridge fdb append 00:00:00:00:00:00 dev vxlan0 self static \
Dvxlan.sh479 bridge fdb append 00:00:00:00:00:00 dev vxlan0 self dst $LOCAL_IP_2
482 bridge fdb show brport vxlan0
485 bridge fdb del 00:00:00:00:00:00 dev vxlan0 self
494 bridge fdb add de:ad:be:ef:13:37 dev vxlan0 self master static \
498 de:ad:be:ef:13:37 self bridge fdb show brport vxlan0
501 de:ad:be:ef:13:37 self -v bridge fdb show brport vxlan0
510 bridge fdb del de:ad:be:ef:13:37 dev vxlan0 master
512 de:ad:be:ef:13:37 self bridge fdb show brport vxlan0
521 bridge fdb add de:ad:be:ef:13:37 dev vxlan0 master static
523 de:ad:be:ef:13:37 self bridge fdb show brport vxlan0
[all …]
/linux-6.1.9/tools/testing/selftests/drivers/net/dsa/
Dbridge_vlan_aware.sh121 bridge fdb add de:ad:be:ef:13:37 dev $swp1 master extern_learn vlan 1
123 bridge fdb show brport $swp1 | grep -q de:ad:be:ef:13:37
131 bridge fdb show brport $swp1 | grep -q de:ad:be:ef:13:37
136 bridge fdb show brport $swp2 | grep -q de:ad:be:ef:13:37
141 bridge fdb del de:ad:be:ef:13:37 dev $swp2 master vlan 1 &> /dev/null
142 bridge fdb del de:ad:be:ef:13:37 dev $swp1 master vlan 1 &> /dev/null
Dbridge_locked_port.sh97 bridge fdb add `mac_get $h1` dev $swp1 master static
103 bridge fdb del `mac_get $h1` dev $swp1 master static
127 bridge fdb add `mac_get $h1` dev $swp1 vlan 100 master static
133 bridge fdb del `mac_get $h1` dev $swp1 vlan 100 master static
156 bridge fdb add `mac_get $h1` dev $swp1 master static
161 bridge fdb del `mac_get $h1` dev $swp1 master static
Dtest_bridge_fdb_stress.sh38 bridge fdb add 00:01:02:03:04:05 dev $eth master static
39 bridge fdb del 00:01:02:03:04:05 dev $eth master static
44 bridge fdb show > /dev/null
/linux-6.1.9/drivers/net/vxlan/
Dvxlan_private.h62 static inline struct vxlan_rdst *first_remote_rcu(struct vxlan_fdb *fdb) in first_remote_rcu() argument
64 if (rcu_access_pointer(fdb->nh)) in first_remote_rcu()
66 return list_entry_rcu(fdb->remotes.next, struct vxlan_rdst, list); in first_remote_rcu()
69 static inline struct vxlan_rdst *first_remote_rtnl(struct vxlan_fdb *fdb) in first_remote_rtnl() argument
71 if (rcu_access_pointer(fdb->nh)) in first_remote_rtnl()
73 return list_first_entry(&fdb->remotes, struct vxlan_rdst, list); in first_remote_rtnl()
116 u32 nhid, struct vxlan_fdb **fdb,
/linux-6.1.9/drivers/net/dsa/qca/
Dqca8k-common.c151 static int qca8k_fdb_read(struct qca8k_priv *priv, struct qca8k_fdb *fdb) in qca8k_fdb_read() argument
162 fdb->vid = FIELD_GET(QCA8K_ATU_VID_MASK, reg[2]); in qca8k_fdb_read()
164 fdb->aging = FIELD_GET(QCA8K_ATU_STATUS_MASK, reg[2]); in qca8k_fdb_read()
166 fdb->port_mask = FIELD_GET(QCA8K_ATU_PORT_MASK, reg[1]); in qca8k_fdb_read()
168 fdb->mac[0] = FIELD_GET(QCA8K_ATU_ADDR0_MASK, reg[1]); in qca8k_fdb_read()
169 fdb->mac[1] = FIELD_GET(QCA8K_ATU_ADDR1_MASK, reg[1]); in qca8k_fdb_read()
170 fdb->mac[2] = FIELD_GET(QCA8K_ATU_ADDR2_MASK, reg[0]); in qca8k_fdb_read()
171 fdb->mac[3] = FIELD_GET(QCA8K_ATU_ADDR3_MASK, reg[0]); in qca8k_fdb_read()
172 fdb->mac[4] = FIELD_GET(QCA8K_ATU_ADDR4_MASK, reg[0]); in qca8k_fdb_read()
173 fdb->mac[5] = FIELD_GET(QCA8K_ATU_ADDR5_MASK, reg[0]); in qca8k_fdb_read()
[all …]
/linux-6.1.9/tools/testing/selftests/net/
Dtest_vxlan_fdb_changelink.sh9 local N=$(bridge fdb sh dev vx | grep 00:00:00:00:00:00 | wc -l)
21 bridge fdb ap dev vx 00:00:00:00:00:00 dst 192.0.2.20 self permanent
22 bridge fdb ap dev vx 00:00:00:00:00:00 dst 192.0.2.30 self permanent
/linux-6.1.9/tools/testing/selftests/drivers/net/bonding/
Ddev_addr_lists.sh69 grep_bridge_fdb "$lacpdu_mc" bridge fdb show brport dummy1 >/dev/null
74 not grep_bridge_fdb "$lacpdu_mc" bridge fdb show brport dummy1 >/dev/null
79 grep_bridge_fdb "$lacpdu_mc" bridge fdb show brport dummy1 >/dev/null

1234