Lines Matching refs:l3_dev

7845 					       struct net_device *l3_dev)  in mlxsw_sp_rif_alloc()  argument
7855 if (l3_dev) { in mlxsw_sp_rif_alloc()
7856 ether_addr_copy(rif->addr, l3_dev->dev_addr); in mlxsw_sp_rif_alloc()
7857 rif->mtu = l3_dev->mtu; in mlxsw_sp_rif_alloc()
7858 rif->dev = l3_dev; in mlxsw_sp_rif_alloc()
8468 struct net_device *l3_dev, in __mlxsw_sp_port_vlan_router_join() argument
8474 .dev = l3_dev, in __mlxsw_sp_port_vlan_router_join()
8536 struct net_device *l3_dev, in mlxsw_sp_port_vlan_router_join() argument
8544 rif = mlxsw_sp_rif_find_by_dev(mlxsw_sp, l3_dev); in mlxsw_sp_port_vlan_router_join()
8548 err = __mlxsw_sp_port_vlan_router_join(mlxsw_sp_port_vlan, l3_dev, in mlxsw_sp_port_vlan_router_join()
8565 static int mlxsw_sp_inetaddr_port_vlan_event(struct net_device *l3_dev, in mlxsw_sp_inetaddr_port_vlan_event() argument
8580 l3_dev, extack); in mlxsw_sp_inetaddr_port_vlan_event()
8600 static int __mlxsw_sp_inetaddr_lag_event(struct net_device *l3_dev, in __mlxsw_sp_inetaddr_lag_event() argument
8611 err = mlxsw_sp_inetaddr_port_vlan_event(l3_dev, in __mlxsw_sp_inetaddr_lag_event()
8635 struct net_device *l3_dev, in mlxsw_sp_inetaddr_bridge_event() argument
8640 .dev = l3_dev, in mlxsw_sp_inetaddr_bridge_event()
8646 if (netif_is_bridge_master(l3_dev) && br_vlan_enabled(l3_dev)) { in mlxsw_sp_inetaddr_bridge_event()
8649 br_vlan_get_proto(l3_dev, &proto); in mlxsw_sp_inetaddr_bridge_event()
8660 rif = mlxsw_sp_rif_find_by_dev(mlxsw_sp, l3_dev); in mlxsw_sp_inetaddr_bridge_event()
9172 struct net_device *l3_dev, in mlxsw_sp_port_vrf_join() argument
9180 rif = mlxsw_sp_rif_find_by_dev(mlxsw_sp, l3_dev); in mlxsw_sp_port_vrf_join()
9182 __mlxsw_sp_inetaddr_event(mlxsw_sp, l3_dev, NETDEV_DOWN, in mlxsw_sp_port_vrf_join()
9185 return __mlxsw_sp_inetaddr_event(mlxsw_sp, l3_dev, NETDEV_UP, extack); in mlxsw_sp_port_vrf_join()
9189 struct net_device *l3_dev) in mlxsw_sp_port_vrf_leave() argument
9193 rif = mlxsw_sp_rif_find_by_dev(mlxsw_sp, l3_dev); in mlxsw_sp_port_vrf_leave()
9196 __mlxsw_sp_inetaddr_event(mlxsw_sp, l3_dev, NETDEV_DOWN, NULL); in mlxsw_sp_port_vrf_leave()
9209 mlxsw_sp_netdevice_vrf_event(struct net_device *l3_dev, unsigned long event, in mlxsw_sp_netdevice_vrf_event() argument
9212 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_lower_get(l3_dev); in mlxsw_sp_netdevice_vrf_event()
9218 if (!mlxsw_sp || netif_is_macvlan(l3_dev)) in mlxsw_sp_netdevice_vrf_event()
9229 err = mlxsw_sp_port_vrf_join(mlxsw_sp, l3_dev, extack); in mlxsw_sp_netdevice_vrf_event()
9231 mlxsw_sp_port_vrf_leave(mlxsw_sp, l3_dev); in mlxsw_sp_netdevice_vrf_event()