Lines Matching refs:upper_dev

3408 	struct net_device *upper_dev;  in mlxsw_sp_port_lag_uppers_cleanup()  local
3414 netdev_for_each_upper_dev_rcu(lag_dev, upper_dev, iter) { in mlxsw_sp_port_lag_uppers_cleanup()
3415 if (!netif_is_bridge_port(upper_dev)) in mlxsw_sp_port_lag_uppers_cleanup()
3417 br_dev = netdev_master_upper_dev_get(upper_dev); in mlxsw_sp_port_lag_uppers_cleanup()
3418 mlxsw_sp_port_bridge_leave(mlxsw_sp_port, upper_dev, br_dev); in mlxsw_sp_port_lag_uppers_cleanup()
3840 struct net_device *upper_dev; in mlxsw_sp_netdevice_port_upper_event() local
3851 upper_dev = info->upper_dev; in mlxsw_sp_netdevice_port_upper_event()
3852 if (!is_vlan_dev(upper_dev) && in mlxsw_sp_netdevice_port_upper_event()
3853 !netif_is_lag_master(upper_dev) && in mlxsw_sp_netdevice_port_upper_event()
3854 !netif_is_bridge_master(upper_dev) && in mlxsw_sp_netdevice_port_upper_event()
3855 !netif_is_ovs_master(upper_dev) && in mlxsw_sp_netdevice_port_upper_event()
3856 !netif_is_macvlan(upper_dev)) { in mlxsw_sp_netdevice_port_upper_event()
3862 if (netif_is_bridge_master(upper_dev) && in mlxsw_sp_netdevice_port_upper_event()
3863 !mlxsw_sp_bridge_device_is_offloaded(mlxsw_sp, upper_dev) && in mlxsw_sp_netdevice_port_upper_event()
3864 mlxsw_sp_bridge_has_vxlan(upper_dev) && in mlxsw_sp_netdevice_port_upper_event()
3865 !mlxsw_sp_bridge_vxlan_is_valid(upper_dev, extack)) in mlxsw_sp_netdevice_port_upper_event()
3867 if (netdev_has_any_upper_dev(upper_dev) && in mlxsw_sp_netdevice_port_upper_event()
3868 (!netif_is_bridge_master(upper_dev) || in mlxsw_sp_netdevice_port_upper_event()
3870 upper_dev))) { in mlxsw_sp_netdevice_port_upper_event()
3874 if (netif_is_lag_master(upper_dev) && in mlxsw_sp_netdevice_port_upper_event()
3875 !mlxsw_sp_master_lag_check(mlxsw_sp, upper_dev, in mlxsw_sp_netdevice_port_upper_event()
3878 if (netif_is_lag_master(upper_dev) && vlan_uses_dev(dev)) { in mlxsw_sp_netdevice_port_upper_event()
3882 if (netif_is_lag_port(dev) && is_vlan_dev(upper_dev) && in mlxsw_sp_netdevice_port_upper_event()
3883 !netif_is_lag_master(vlan_dev_real_dev(upper_dev))) { in mlxsw_sp_netdevice_port_upper_event()
3887 if (netif_is_macvlan(upper_dev) && in mlxsw_sp_netdevice_port_upper_event()
3892 if (netif_is_ovs_master(upper_dev) && vlan_uses_dev(dev)) { in mlxsw_sp_netdevice_port_upper_event()
3896 if (netif_is_ovs_port(dev) && is_vlan_dev(upper_dev)) { in mlxsw_sp_netdevice_port_upper_event()
3902 upper_dev = info->upper_dev; in mlxsw_sp_netdevice_port_upper_event()
3903 if (netif_is_bridge_master(upper_dev)) { in mlxsw_sp_netdevice_port_upper_event()
3907 upper_dev, in mlxsw_sp_netdevice_port_upper_event()
3912 upper_dev); in mlxsw_sp_netdevice_port_upper_event()
3913 } else if (netif_is_lag_master(upper_dev)) { in mlxsw_sp_netdevice_port_upper_event()
3916 upper_dev); in mlxsw_sp_netdevice_port_upper_event()
3920 upper_dev); in mlxsw_sp_netdevice_port_upper_event()
3922 } else if (netif_is_ovs_master(upper_dev)) { in mlxsw_sp_netdevice_port_upper_event()
3927 } else if (netif_is_macvlan(upper_dev)) { in mlxsw_sp_netdevice_port_upper_event()
3929 mlxsw_sp_rif_macvlan_del(mlxsw_sp, upper_dev); in mlxsw_sp_netdevice_port_upper_event()
3930 } else if (is_vlan_dev(upper_dev)) { in mlxsw_sp_netdevice_port_upper_event()
3933 if (!netif_is_bridge_port(upper_dev)) in mlxsw_sp_netdevice_port_upper_event()
3937 br_dev = netdev_master_upper_dev_get(upper_dev); in mlxsw_sp_netdevice_port_upper_event()
3938 mlxsw_sp_port_bridge_leave(mlxsw_sp_port, upper_dev, in mlxsw_sp_netdevice_port_upper_event()
4016 struct net_device *upper_dev; in mlxsw_sp_netdevice_port_vlan_event() local
4023 upper_dev = info->upper_dev; in mlxsw_sp_netdevice_port_vlan_event()
4024 if (!netif_is_bridge_master(upper_dev) && in mlxsw_sp_netdevice_port_vlan_event()
4025 !netif_is_macvlan(upper_dev)) { in mlxsw_sp_netdevice_port_vlan_event()
4031 if (netif_is_bridge_master(upper_dev) && in mlxsw_sp_netdevice_port_vlan_event()
4032 !mlxsw_sp_bridge_device_is_offloaded(mlxsw_sp, upper_dev) && in mlxsw_sp_netdevice_port_vlan_event()
4033 mlxsw_sp_bridge_has_vxlan(upper_dev) && in mlxsw_sp_netdevice_port_vlan_event()
4034 !mlxsw_sp_bridge_vxlan_is_valid(upper_dev, extack)) in mlxsw_sp_netdevice_port_vlan_event()
4036 if (netdev_has_any_upper_dev(upper_dev) && in mlxsw_sp_netdevice_port_vlan_event()
4037 (!netif_is_bridge_master(upper_dev) || in mlxsw_sp_netdevice_port_vlan_event()
4039 upper_dev))) { in mlxsw_sp_netdevice_port_vlan_event()
4043 if (netif_is_macvlan(upper_dev) && in mlxsw_sp_netdevice_port_vlan_event()
4050 upper_dev = info->upper_dev; in mlxsw_sp_netdevice_port_vlan_event()
4051 if (netif_is_bridge_master(upper_dev)) { in mlxsw_sp_netdevice_port_vlan_event()
4055 upper_dev, in mlxsw_sp_netdevice_port_vlan_event()
4060 upper_dev); in mlxsw_sp_netdevice_port_vlan_event()
4061 } else if (netif_is_macvlan(upper_dev)) { in mlxsw_sp_netdevice_port_vlan_event()
4063 mlxsw_sp_rif_macvlan_del(mlxsw_sp, upper_dev); in mlxsw_sp_netdevice_port_vlan_event()
4104 struct net_device *upper_dev; in mlxsw_sp_netdevice_bridge_vlan_event() local
4113 upper_dev = info->upper_dev; in mlxsw_sp_netdevice_bridge_vlan_event()
4114 if (!netif_is_macvlan(upper_dev)) { in mlxsw_sp_netdevice_bridge_vlan_event()
4120 if (netif_is_macvlan(upper_dev) && in mlxsw_sp_netdevice_bridge_vlan_event()
4127 upper_dev = info->upper_dev; in mlxsw_sp_netdevice_bridge_vlan_event()
4130 if (netif_is_macvlan(upper_dev)) in mlxsw_sp_netdevice_bridge_vlan_event()
4131 mlxsw_sp_rif_macvlan_del(mlxsw_sp, upper_dev); in mlxsw_sp_netdevice_bridge_vlan_event()
4164 struct net_device *upper_dev; in mlxsw_sp_netdevice_bridge_event() local
4173 upper_dev = info->upper_dev; in mlxsw_sp_netdevice_bridge_event()
4174 if (!is_vlan_dev(upper_dev) && !netif_is_macvlan(upper_dev)) { in mlxsw_sp_netdevice_bridge_event()
4180 if (netif_is_macvlan(upper_dev) && in mlxsw_sp_netdevice_bridge_event()
4187 upper_dev = info->upper_dev; in mlxsw_sp_netdevice_bridge_event()
4190 if (is_vlan_dev(upper_dev)) in mlxsw_sp_netdevice_bridge_event()
4191 mlxsw_sp_rif_destroy_by_dev(mlxsw_sp, upper_dev); in mlxsw_sp_netdevice_bridge_event()
4192 if (netif_is_macvlan(upper_dev)) in mlxsw_sp_netdevice_bridge_event()
4193 mlxsw_sp_rif_macvlan_del(mlxsw_sp, upper_dev); in mlxsw_sp_netdevice_bridge_event()
4224 return netif_is_l3_master(info->upper_dev); in mlxsw_sp_is_vrf_event()
4234 struct net_device *upper_dev; in mlxsw_sp_netdevice_vxlan_event() local
4243 upper_dev = cu_info->upper_dev; in mlxsw_sp_netdevice_vxlan_event()
4244 if (!netif_is_bridge_master(upper_dev)) in mlxsw_sp_netdevice_vxlan_event()
4246 if (!mlxsw_sp_lower_get(upper_dev)) in mlxsw_sp_netdevice_vxlan_event()
4248 if (!mlxsw_sp_bridge_vxlan_is_valid(upper_dev, extack)) in mlxsw_sp_netdevice_vxlan_event()
4257 if (br_vlan_enabled(upper_dev)) in mlxsw_sp_netdevice_vxlan_event()
4259 return mlxsw_sp_bridge_vxlan_join(mlxsw_sp, upper_dev, in mlxsw_sp_netdevice_vxlan_event()
4265 if (br_vlan_enabled(upper_dev)) in mlxsw_sp_netdevice_vxlan_event()
4271 upper_dev = netdev_master_upper_dev_get(dev); in mlxsw_sp_netdevice_vxlan_event()
4272 if (!upper_dev) in mlxsw_sp_netdevice_vxlan_event()
4274 if (!netif_is_bridge_master(upper_dev)) in mlxsw_sp_netdevice_vxlan_event()
4276 if (!mlxsw_sp_lower_get(upper_dev)) in mlxsw_sp_netdevice_vxlan_event()
4278 return mlxsw_sp_bridge_vxlan_join(mlxsw_sp, upper_dev, dev, 0, in mlxsw_sp_netdevice_vxlan_event()
4281 upper_dev = netdev_master_upper_dev_get(dev); in mlxsw_sp_netdevice_vxlan_event()
4282 if (!upper_dev) in mlxsw_sp_netdevice_vxlan_event()
4284 if (!netif_is_bridge_master(upper_dev)) in mlxsw_sp_netdevice_vxlan_event()
4286 if (!mlxsw_sp_lower_get(upper_dev)) in mlxsw_sp_netdevice_vxlan_event()