Lines Matching refs:ol_dev
1070 u32 mlxsw_sp_ipip_dev_ul_tb_id(const struct net_device *ol_dev) in mlxsw_sp_ipip_dev_ul_tb_id() argument
1076 d = mlxsw_sp_ipip_netdev_ul_dev_get(ol_dev); in mlxsw_sp_ipip_dev_ul_tb_id()
1149 struct net_device *ol_dev, in mlxsw_sp_ipip_ol_ipip_lb_create() argument
1158 .common.dev = ol_dev, in mlxsw_sp_ipip_ol_ipip_lb_create()
1161 .lb_config = ipip_ops->ol_loopback_config(mlxsw_sp, ol_dev), in mlxsw_sp_ipip_ol_ipip_lb_create()
1173 struct net_device *ol_dev) in mlxsw_sp_ipip_entry_alloc() argument
1186 ol_dev, NULL); in mlxsw_sp_ipip_entry_alloc()
1193 ipip_entry->ol_dev = ol_dev; in mlxsw_sp_ipip_entry_alloc()
1194 ipip_entry->parms = ipip_ops->parms_init(ol_dev); in mlxsw_sp_ipip_entry_alloc()
1229 u32 tun_ul_tb_id = mlxsw_sp_ipip_dev_ul_tb_id(ipip_entry->ol_dev); in mlxsw_sp_ipip_entry_saddr_matches()
1236 tun_saddr = mlxsw_sp_ipip_netdev_saddr(ul_proto, ipip_entry->ol_dev); in mlxsw_sp_ipip_entry_saddr_matches()
1404 ul_tb_id = mlxsw_sp_ipip_dev_ul_tb_id(ipip_entry->ol_dev); in mlxsw_sp_ipip_entry_find_decap()
1411 ipip_entry->ol_dev); in mlxsw_sp_ipip_entry_find_decap()
1442 struct net_device *ol_dev) in mlxsw_sp_ipip_entry_create() argument
1446 ipip_entry = mlxsw_sp_ipip_entry_alloc(mlxsw_sp, ipipt, ol_dev); in mlxsw_sp_ipip_entry_create()
1539 const struct net_device *ol_dev) in mlxsw_sp_ipip_entry_find_by_ol_dev() argument
1545 if (ipip_entry->ol_dev == ol_dev) in mlxsw_sp_ipip_entry_find_by_ol_dev()
1562 struct net_device *ol_dev = ipip_entry->ol_dev; in mlxsw_sp_ipip_entry_find_by_ul_dev() local
1566 ipip_ul_dev = mlxsw_sp_ipip_netdev_ul_dev_get(ol_dev); in mlxsw_sp_ipip_entry_find_by_ul_dev()
1583 const struct net_device *ol_dev, in mlxsw_sp_netdevice_ipip_can_offload() argument
1589 return ops->can_offload(mlxsw_sp, ol_dev); in mlxsw_sp_netdevice_ipip_can_offload()
1593 struct net_device *ol_dev) in mlxsw_sp_netdevice_ipip_ol_reg_event() argument
1601 mlxsw_sp_netdev_ipip_type(mlxsw_sp, ol_dev, &ipipt); in mlxsw_sp_netdevice_ipip_ol_reg_event()
1602 if (mlxsw_sp_netdevice_ipip_can_offload(mlxsw_sp, ol_dev, ipipt)) { in mlxsw_sp_netdevice_ipip_ol_reg_event()
1603 ul_tb_id = mlxsw_sp_ipip_dev_ul_tb_id(ol_dev); in mlxsw_sp_netdevice_ipip_ol_reg_event()
1605 saddr = mlxsw_sp_ipip_netdev_saddr(ul_proto, ol_dev); in mlxsw_sp_netdevice_ipip_ol_reg_event()
1610 ol_dev); in mlxsw_sp_netdevice_ipip_ol_reg_event()
1620 struct net_device *ol_dev) in mlxsw_sp_netdevice_ipip_ol_unreg_event() argument
1624 ipip_entry = mlxsw_sp_ipip_entry_find_by_ol_dev(mlxsw_sp, ol_dev); in mlxsw_sp_netdevice_ipip_ol_unreg_event()
1681 struct net_device *ol_dev) in mlxsw_sp_netdevice_ipip_ol_update_mtu() argument
1687 ipip_entry = mlxsw_sp_ipip_entry_find_by_ol_dev(mlxsw_sp, ol_dev); in mlxsw_sp_netdevice_ipip_ol_update_mtu()
1694 lb_rif->common.mtu = ol_dev->mtu; in mlxsw_sp_netdevice_ipip_ol_update_mtu()
1702 struct net_device *ol_dev) in mlxsw_sp_netdevice_ipip_ol_up_event() argument
1706 ipip_entry = mlxsw_sp_ipip_entry_find_by_ol_dev(mlxsw_sp, ol_dev); in mlxsw_sp_netdevice_ipip_ol_up_event()
1720 struct net_device *ol_dev) in mlxsw_sp_netdevice_ipip_ol_down_event() argument
1724 ipip_entry = mlxsw_sp_ipip_entry_find_by_ol_dev(mlxsw_sp, ol_dev); in mlxsw_sp_netdevice_ipip_ol_down_event()
1763 ipip_entry->ol_dev, in mlxsw_sp_ipip_entry_ol_lb_update()
1815 if (ipip_entry->ol_dev->flags & IFF_UP) in __mlxsw_sp_ipip_entry_update_tunnel()
1822 struct net_device *ol_dev, in mlxsw_sp_netdevice_ipip_ol_vrf_event() argument
1826 mlxsw_sp_ipip_entry_find_by_ol_dev(mlxsw_sp, ol_dev); in mlxsw_sp_netdevice_ipip_ol_vrf_event()
1850 saddr = mlxsw_sp_ipip_netdev_saddr(ul_proto, ipip_entry->ol_dev); in mlxsw_sp_netdevice_ipip_ul_vrf_event()
1886 struct net_device *ol_dev, in mlxsw_sp_netdevice_ipip_ol_change_event() argument
1893 ipip_entry = mlxsw_sp_ipip_entry_find_by_ol_dev(mlxsw_sp, ol_dev); in mlxsw_sp_netdevice_ipip_ol_change_event()
1902 if (!mlxsw_sp_netdevice_ipip_can_offload(mlxsw_sp, ol_dev, in mlxsw_sp_netdevice_ipip_ol_change_event()
1916 struct net_device *ol_dev = ipip_entry->ol_dev; in mlxsw_sp_ipip_entry_demote_tunnel() local
1918 if (ol_dev->flags & IFF_UP) in mlxsw_sp_ipip_entry_demote_tunnel()
1958 struct net_device *ol_dev = ipip_entry->ol_dev; in mlxsw_sp_ipip_demote_tunnel_by_ul_netdev() local
1962 ipip_ul_dev = mlxsw_sp_ipip_netdev_ul_dev_get(ol_dev); in mlxsw_sp_ipip_demote_tunnel_by_ul_netdev()
1970 struct net_device *ol_dev, in mlxsw_sp_netdevice_ipip_ol_event() argument
1980 err = mlxsw_sp_netdevice_ipip_ol_reg_event(mlxsw_sp, ol_dev); in mlxsw_sp_netdevice_ipip_ol_event()
1983 mlxsw_sp_netdevice_ipip_ol_unreg_event(mlxsw_sp, ol_dev); in mlxsw_sp_netdevice_ipip_ol_event()
1986 mlxsw_sp_netdevice_ipip_ol_up_event(mlxsw_sp, ol_dev); in mlxsw_sp_netdevice_ipip_ol_event()
1989 mlxsw_sp_netdevice_ipip_ol_down_event(mlxsw_sp, ol_dev); in mlxsw_sp_netdevice_ipip_ol_event()
1996 ol_dev, in mlxsw_sp_netdevice_ipip_ol_event()
2002 ol_dev, extack); in mlxsw_sp_netdevice_ipip_ol_event()
2005 err = mlxsw_sp_netdevice_ipip_ol_update_mtu(mlxsw_sp, ol_dev); in mlxsw_sp_netdevice_ipip_ol_event()
4476 static bool mlxsw_sp_ipip_netdev_ul_up(struct net_device *ol_dev) in mlxsw_sp_ipip_netdev_ul_up() argument
4482 ul_dev = mlxsw_sp_ipip_netdev_ul_dev_get(ol_dev); in mlxsw_sp_ipip_netdev_ul_up()
4499 crif = mlxsw_sp_crif_lookup(mlxsw_sp->router, ipip_entry->ol_dev); in mlxsw_sp_nexthop_ipip_init()
4504 removing = !mlxsw_sp_ipip_netdev_ul_up(ipip_entry->ol_dev); in mlxsw_sp_nexthop_ipip_init()
6409 if (ipip_entry && ipip_entry->ol_dev->flags & IFF_UP) { in mlxsw_sp_fib4_entry_type_set()
7316 if (ipip_entry && ipip_entry->ol_dev->flags & IFF_UP) { in mlxsw_sp_fib6_entry_type_set_local()