Home
last modified time | relevance | path

Searched refs:upper_dev (Results 1 – 25 of 35) sorted by relevance

12

/linux-6.1.9/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum.c4216 struct net_device *upper_dev; in mlxsw_sp_port_lag_uppers_cleanup() local
4222 netdev_for_each_upper_dev_rcu(lag_dev, upper_dev, iter) { in mlxsw_sp_port_lag_uppers_cleanup()
4223 if (!netif_is_bridge_port(upper_dev)) in mlxsw_sp_port_lag_uppers_cleanup()
4225 br_dev = netdev_master_upper_dev_get(upper_dev); in mlxsw_sp_port_lag_uppers_cleanup()
4226 mlxsw_sp_port_bridge_leave(mlxsw_sp_port, upper_dev, br_dev); in mlxsw_sp_port_lag_uppers_cleanup()
4665 struct net_device *upper_dev; in mlxsw_sp_netdevice_port_upper_event() local
4677 upper_dev = info->upper_dev; in mlxsw_sp_netdevice_port_upper_event()
4678 if (!is_vlan_dev(upper_dev) && in mlxsw_sp_netdevice_port_upper_event()
4679 !netif_is_lag_master(upper_dev) && in mlxsw_sp_netdevice_port_upper_event()
4680 !netif_is_bridge_master(upper_dev) && in mlxsw_sp_netdevice_port_upper_event()
[all …]
/linux-6.1.9/drivers/net/ethernet/microchip/lan966x/
Dlan966x_switchdev.c312 if (netif_is_bridge_master(info->upper_dev)) { in lan966x_port_changeupper()
315 info->upper_dev, in lan966x_port_changeupper()
318 lan966x_port_bridge_leave(port, info->upper_dev); in lan966x_port_changeupper()
321 if (netif_is_lag_master(info->upper_dev)) { in lan966x_port_changeupper()
323 err = lan966x_lag_port_join(port, info->upper_dev, in lan966x_port_changeupper()
324 info->upper_dev, in lan966x_port_changeupper()
327 lan966x_lag_port_leave(port, info->upper_dev); in lan966x_port_changeupper()
340 if (netif_is_bridge_master(info->upper_dev) && !info->linking) { in lan966x_port_prechangeupper()
345 if (netif_is_lag_master(info->upper_dev)) { in lan966x_port_prechangeupper()
419 return lan966x_foreign_bridging_check(info->upper_dev, in lan966x_bridge_check()
/linux-6.1.9/net/dsa/
Dslave.c553 struct net_device *upper_dev; in dsa_slave_vlan_check_for_8021q_uppers() local
556 netdev_for_each_upper_dev_rcu(slave, upper_dev, iter) { in dsa_slave_vlan_check_for_8021q_uppers()
559 if (!is_vlan_dev(upper_dev)) in dsa_slave_vlan_check_for_8021q_uppers()
562 vid = vlan_dev_vlan_id(upper_dev); in dsa_slave_vlan_check_for_8021q_uppers()
2603 if (netif_is_bridge_master(info->upper_dev)) { in dsa_slave_changeupper()
2605 err = dsa_port_bridge_join(dp, info->upper_dev, extack); in dsa_slave_changeupper()
2616 dsa_port_bridge_leave(dp, info->upper_dev); in dsa_slave_changeupper()
2619 } else if (netif_is_lag_master(info->upper_dev)) { in dsa_slave_changeupper()
2621 err = dsa_port_lag_join(dp, info->upper_dev, in dsa_slave_changeupper()
2630 dsa_port_lag_leave(dp, info->upper_dev); in dsa_slave_changeupper()
[all …]
Ddsa_priv.h353 struct net_device *upper_dev; in dsa_untag_bridge_pvid() local
395 upper_dev = __vlan_find_dev_deep_rcu(br, htons(proto), vid); in dsa_untag_bridge_pvid()
396 if (upper_dev) in dsa_untag_bridge_pvid()
Dport.c738 struct net_device *upper_dev, *slave = dp->slave; in dsa_port_can_apply_vlan_filtering() local
741 netdev_for_each_upper_dev_rcu(slave, upper_dev, iter) { in dsa_port_can_apply_vlan_filtering()
745 if (!is_vlan_dev(upper_dev)) in dsa_port_can_apply_vlan_filtering()
748 vid = vlan_dev_vlan_id(upper_dev); in dsa_port_can_apply_vlan_filtering()
/linux-6.1.9/drivers/net/ethernet/intel/ice/
Dice_lag.c143 struct net_device *netdev_tmp, *upper = info->upper_dev; in ice_lag_link()
180 struct net_device *netdev_tmp, *upper = info->upper_dev; in ice_lag_unlink()
259 if (!info->upper_dev) { in ice_lag_changeupper_event()
266 if (!netif_is_lag_master(info->upper_dev)) { in ice_lag_changeupper_event()
/linux-6.1.9/drivers/infiniband/core/
Droce_gid_mgmt.c685 cmds[0].ndev = changeupper_info->upper_dev; in ndev_event_unlink()
710 cmds[0].filter_ndev = changeupper_info->upper_dev; in ndev_event_link()
714 cmds[1].ndev = changeupper_info->upper_dev; in ndev_event_link()
715 cmds[1].filter_ndev = changeupper_info->upper_dev; in ndev_event_link()
719 cmds[2].ndev = changeupper_info->upper_dev; in ndev_event_link()
720 cmds[2].filter_ndev = changeupper_info->upper_dev; in ndev_event_link()
/linux-6.1.9/net/8021q/
Dvlan_core.c90 struct net_device *upper_dev; in __vlan_find_dev_deep_rcu() local
92 upper_dev = netdev_master_upper_dev_get_rcu(dev); in __vlan_find_dev_deep_rcu()
93 if (upper_dev) in __vlan_find_dev_deep_rcu()
94 return __vlan_find_dev_deep_rcu(upper_dev, in __vlan_find_dev_deep_rcu()
/linux-6.1.9/net/core/
Ddev.c6733 static int ____netdev_has_upper_dev(struct net_device *upper_dev, in ____netdev_has_upper_dev() argument
6738 return upper_dev == dev; in ____netdev_has_upper_dev()
6751 struct net_device *upper_dev) in netdev_has_upper_dev() argument
6754 .data = (void *)upper_dev, in netdev_has_upper_dev()
6775 struct net_device *upper_dev) in netdev_has_upper_dev_all_rcu() argument
6778 .data = (void *)upper_dev, in netdev_has_upper_dev_all_rcu()
7022 struct net_device *upper_dev) in __netdev_has_upper_dev() argument
7026 .data = (void *)upper_dev, in __netdev_has_upper_dev()
7554 struct net_device *upper_dev, in __netdev_adjacent_dev_link_lists() argument
7561 ret = __netdev_adjacent_dev_insert(dev, upper_dev, up_list, in __netdev_adjacent_dev_link_lists()
[all …]
Drtnetlink.c1569 const struct net_device *upper_dev; in put_master_ifindex() local
1574 upper_dev = netdev_master_upper_dev_get_rcu(dev); in put_master_ifindex()
1575 if (upper_dev) in put_master_ifindex()
1576 ret = nla_put_u32(skb, IFLA_MASTER, upper_dev->ifindex); in put_master_ifindex()
2555 struct net_device *upper_dev = netdev_master_upper_dev_get(dev); in do_set_master() local
2559 if (upper_dev) { in do_set_master()
2560 if (upper_dev->ifindex == ifindex) in do_set_master()
2562 ops = upper_dev->netdev_ops; in do_set_master()
2564 err = ops->ndo_del_slave(upper_dev, dev); in do_set_master()
2573 upper_dev = __dev_get_by_index(dev_net(dev), ifindex); in do_set_master()
[all …]
/linux-6.1.9/drivers/net/wireless/
Dvirt_wifi.c626 struct net_device *upper_dev; in virt_wifi_event() local
638 upper_dev = priv->upperdev; in virt_wifi_event()
640 upper_dev->rtnl_link_ops->dellink(upper_dev, &list_kill); in virt_wifi_event()
/linux-6.1.9/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-switch.c1985 struct net_device *upper_dev, in dpaa2_switch_port_bridge_join() argument
1996 netdev_for_each_lower_dev(upper_dev, other_dev, iter) { in dpaa2_switch_port_bridge_join()
2013 dpaa2_switch_port_set_fdb(port_priv, upper_dev); in dpaa2_switch_port_bridge_join()
2127 struct net_device *upper_dev; in dpaa2_switch_prevent_bridging_with_8021q_upper() local
2133 netdev_for_each_upper_dev_rcu(netdev, upper_dev, iter) in dpaa2_switch_prevent_bridging_with_8021q_upper()
2134 if (is_vlan_dev(upper_dev)) in dpaa2_switch_prevent_bridging_with_8021q_upper()
2142 struct net_device *upper_dev, in dpaa2_switch_prechangeupper_sanity_checks() argument
2147 if (!br_vlan_enabled(upper_dev)) { in dpaa2_switch_prechangeupper_sanity_checks()
2168 struct net_device *upper_dev; in dpaa2_switch_port_netdevice_event() local
2178 upper_dev = info->upper_dev; in dpaa2_switch_port_netdevice_event()
[all …]
/linux-6.1.9/drivers/net/ethernet/mscc/
Docelot_net.c1474 if (netif_is_bridge_master(info->upper_dev)) { in ocelot_netdevice_changeupper()
1477 info->upper_dev, in ocelot_netdevice_changeupper()
1481 info->upper_dev); in ocelot_netdevice_changeupper()
1483 if (netif_is_lag_master(info->upper_dev)) { in ocelot_netdevice_changeupper()
1485 err = ocelot_netdevice_lag_join(dev, info->upper_dev, in ocelot_netdevice_changeupper()
1488 ocelot_netdevice_lag_leave(dev, info->upper_dev); in ocelot_netdevice_changeupper()
1528 if (netif_is_bridge_master(info->upper_dev) && !info->linking) in ocelot_netdevice_prechangeupper()
1531 if (netif_is_lag_master(info->upper_dev) && !info->linking) in ocelot_netdevice_prechangeupper()
1532 ocelot_netdevice_pre_lag_leave(dev, info->upper_dev); in ocelot_netdevice_prechangeupper()
/linux-6.1.9/drivers/net/ethernet/microchip/sparx5/
Dsparx5_switchdev.c237 if (netif_is_bridge_master(info->upper_dev)) { in sparx5_port_changeupper()
239 err = sparx5_port_bridge_join(port, info->upper_dev, in sparx5_port_changeupper()
242 sparx5_port_bridge_leave(port, info->upper_dev); in sparx5_port_changeupper()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/rep/
Dbridge.c135 struct net_device *upper = info->upper_dev, *rep; in mlx5_esw_bridge_port_changeupper()
172 struct net_device *upper = info->upper_dev; in mlx5_esw_bridge_changeupper_validate_netdev()
Dbond.c257 lag_dev = info->upper_dev; in mlx5e_rep_changeupper_event()
/linux-6.1.9/drivers/net/
Damt.c3354 struct net_device *upper_dev; in amt_lookup_upper_dev() local
3357 for_each_netdev(dev_net(dev), upper_dev) { in amt_lookup_upper_dev()
3358 if (netif_is_amt(upper_dev)) { in amt_lookup_upper_dev()
3359 amt = netdev_priv(upper_dev); in amt_lookup_upper_dev()
3361 return upper_dev; in amt_lookup_upper_dev()
3372 struct net_device *upper_dev; in amt_device_event() local
3377 upper_dev = amt_lookup_upper_dev(dev); in amt_device_event()
3378 if (!upper_dev) in amt_device_event()
3380 amt = netdev_priv(upper_dev); in amt_device_event()
/linux-6.1.9/include/linux/
Dnetdevice.h2850 struct net_device *upper_dev; /* new upper dev */ member
4663 bool netdev_has_upper_dev(struct net_device *dev, struct net_device *upper_dev);
4675 int (*fn)(struct net_device *upper_dev,
4680 struct net_device *upper_dev);
4725 int netdev_upper_dev_link(struct net_device *dev, struct net_device *upper_dev,
4728 struct net_device *upper_dev,
4732 struct net_device *upper_dev);
/linux-6.1.9/drivers/net/ethernet/chelsio/cxgb3/
Dcxgb3_offload.c190 struct net_device *upper_dev; in get_iff_from_mac() local
192 while ((upper_dev = in get_iff_from_mac()
194 dev = upper_dev; in get_iff_from_mac()
/linux-6.1.9/drivers/net/ethernet/adi/
Dadin1110.c1185 if (netif_is_bridge_master(info->upper_dev)) { in adin1110_netdevice_event()
1187 ret = adin1110_port_bridge_join(port_priv, info->upper_dev); in adin1110_netdevice_event()
1189 ret = adin1110_port_bridge_leave(port_priv, info->upper_dev); in adin1110_netdevice_event()
/linux-6.1.9/net/bridge/
Dbr_vlan.c1668 struct net_device *upper_dev, in br_vlan_upper_change() argument
1673 if (!br_vlan_is_bind_vlan_dev(upper_dev)) in br_vlan_upper_change()
1677 br_vlan_set_vlan_dev_state(br, upper_dev); in br_vlan_upper_change()
1751 br_vlan_upper_change(dev, info->upper_dev, info->linking); in br_vlan_bridge_event()
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/flower/
Dlag_conf.c509 struct net_device *upper = info->upper_dev, *iter_netdev; in nfp_fl_lag_changeupper_event()
/linux-6.1.9/drivers/net/ethernet/marvell/prestera/
Dprestera_main.c1133 upper = cu_info->upper_dev; in prestera_netdev_port_event()
1165 upper = cu_info->upper_dev; in prestera_netdev_port_event()
/linux-6.1.9/net/ipv4/
Dfib_frontend.c1511 if (upper_info->upper_dev && in fib_netdev_event()
1512 netif_is_l3_master(upper_info->upper_dev)) in fib_netdev_event()
/linux-6.1.9/drivers/net/dsa/hirschmann/
Dhellcreek.c1519 if (!is_vlan_dev(info->upper_dev)) in hellcreek_port_prechangeupper()
1522 vid = vlan_dev_vlan_id(info->upper_dev); in hellcreek_port_prechangeupper()

12