Lines Matching refs:upper_dev
4560 struct net_device *upper_dev; in mlxsw_sp_netdevice_port_upper_event() local
4571 upper_dev = info->upper_dev; in mlxsw_sp_netdevice_port_upper_event()
4572 if (!is_vlan_dev(upper_dev) && in mlxsw_sp_netdevice_port_upper_event()
4573 !netif_is_lag_master(upper_dev) && in mlxsw_sp_netdevice_port_upper_event()
4574 !netif_is_bridge_master(upper_dev) && in mlxsw_sp_netdevice_port_upper_event()
4575 !netif_is_ovs_master(upper_dev) && in mlxsw_sp_netdevice_port_upper_event()
4576 !netif_is_macvlan(upper_dev)) { in mlxsw_sp_netdevice_port_upper_event()
4582 if (netdev_has_any_upper_dev(upper_dev) && in mlxsw_sp_netdevice_port_upper_event()
4583 (!netif_is_bridge_master(upper_dev) || in mlxsw_sp_netdevice_port_upper_event()
4585 upper_dev))) { in mlxsw_sp_netdevice_port_upper_event()
4589 if (netif_is_lag_master(upper_dev) && in mlxsw_sp_netdevice_port_upper_event()
4590 !mlxsw_sp_master_lag_check(mlxsw_sp, upper_dev, in mlxsw_sp_netdevice_port_upper_event()
4593 if (netif_is_lag_master(upper_dev) && vlan_uses_dev(dev)) { in mlxsw_sp_netdevice_port_upper_event()
4597 if (netif_is_lag_port(dev) && is_vlan_dev(upper_dev) && in mlxsw_sp_netdevice_port_upper_event()
4598 !netif_is_lag_master(vlan_dev_real_dev(upper_dev))) { in mlxsw_sp_netdevice_port_upper_event()
4602 if (netif_is_macvlan(upper_dev) && in mlxsw_sp_netdevice_port_upper_event()
4607 if (netif_is_ovs_master(upper_dev) && vlan_uses_dev(dev)) { in mlxsw_sp_netdevice_port_upper_event()
4611 if (netif_is_ovs_port(dev) && is_vlan_dev(upper_dev)) { in mlxsw_sp_netdevice_port_upper_event()
4615 if (is_vlan_dev(upper_dev) && in mlxsw_sp_netdevice_port_upper_event()
4616 vlan_dev_vlan_id(upper_dev) == 1) { in mlxsw_sp_netdevice_port_upper_event()
4622 upper_dev = info->upper_dev; in mlxsw_sp_netdevice_port_upper_event()
4623 if (netif_is_bridge_master(upper_dev)) { in mlxsw_sp_netdevice_port_upper_event()
4627 upper_dev, in mlxsw_sp_netdevice_port_upper_event()
4632 upper_dev); in mlxsw_sp_netdevice_port_upper_event()
4633 } else if (netif_is_lag_master(upper_dev)) { in mlxsw_sp_netdevice_port_upper_event()
4636 upper_dev); in mlxsw_sp_netdevice_port_upper_event()
4639 upper_dev); in mlxsw_sp_netdevice_port_upper_event()
4640 } else if (netif_is_ovs_master(upper_dev)) { in mlxsw_sp_netdevice_port_upper_event()
4645 } else if (netif_is_macvlan(upper_dev)) { in mlxsw_sp_netdevice_port_upper_event()
4647 mlxsw_sp_rif_macvlan_del(mlxsw_sp, upper_dev); in mlxsw_sp_netdevice_port_upper_event()
4724 struct net_device *upper_dev; in mlxsw_sp_netdevice_port_vlan_event() local
4731 upper_dev = info->upper_dev; in mlxsw_sp_netdevice_port_vlan_event()
4732 if (!netif_is_bridge_master(upper_dev) && in mlxsw_sp_netdevice_port_vlan_event()
4733 !netif_is_macvlan(upper_dev)) { in mlxsw_sp_netdevice_port_vlan_event()
4739 if (netdev_has_any_upper_dev(upper_dev) && in mlxsw_sp_netdevice_port_vlan_event()
4740 (!netif_is_bridge_master(upper_dev) || in mlxsw_sp_netdevice_port_vlan_event()
4742 upper_dev))) { in mlxsw_sp_netdevice_port_vlan_event()
4746 if (netif_is_macvlan(upper_dev) && in mlxsw_sp_netdevice_port_vlan_event()
4753 upper_dev = info->upper_dev; in mlxsw_sp_netdevice_port_vlan_event()
4754 if (netif_is_bridge_master(upper_dev)) { in mlxsw_sp_netdevice_port_vlan_event()
4758 upper_dev, in mlxsw_sp_netdevice_port_vlan_event()
4763 upper_dev); in mlxsw_sp_netdevice_port_vlan_event()
4764 } else if (netif_is_macvlan(upper_dev)) { in mlxsw_sp_netdevice_port_vlan_event()
4766 mlxsw_sp_rif_macvlan_del(mlxsw_sp, upper_dev); in mlxsw_sp_netdevice_port_vlan_event()
4822 struct net_device *upper_dev; in mlxsw_sp_netdevice_bridge_event() local
4831 upper_dev = info->upper_dev; in mlxsw_sp_netdevice_bridge_event()
4832 if (!is_vlan_dev(upper_dev) && !netif_is_macvlan(upper_dev)) { in mlxsw_sp_netdevice_bridge_event()
4838 if (netif_is_macvlan(upper_dev) && in mlxsw_sp_netdevice_bridge_event()
4845 upper_dev = info->upper_dev; in mlxsw_sp_netdevice_bridge_event()
4848 if (is_vlan_dev(upper_dev)) in mlxsw_sp_netdevice_bridge_event()
4849 mlxsw_sp_rif_destroy_by_dev(mlxsw_sp, upper_dev); in mlxsw_sp_netdevice_bridge_event()
4850 if (netif_is_macvlan(upper_dev)) in mlxsw_sp_netdevice_bridge_event()
4851 mlxsw_sp_rif_macvlan_del(mlxsw_sp, upper_dev); in mlxsw_sp_netdevice_bridge_event()
4882 return netif_is_l3_master(info->upper_dev); in mlxsw_sp_is_vrf_event()