Lines Matching refs:ol_dev
12 mlxsw_sp_ipip_netdev_parms4(const struct net_device *ol_dev) in mlxsw_sp_ipip_netdev_parms4() argument
14 struct ip_tunnel *tun = netdev_priv(ol_dev); in mlxsw_sp_ipip_netdev_parms4()
20 mlxsw_sp_ipip_netdev_parms6(const struct net_device *ol_dev) in mlxsw_sp_ipip_netdev_parms6() argument
22 struct ip6_tnl *tun = netdev_priv(ol_dev); in mlxsw_sp_ipip_netdev_parms6()
97 const struct net_device *ol_dev) in mlxsw_sp_ipip_netdev_saddr() argument
104 parms4 = mlxsw_sp_ipip_netdev_parms4(ol_dev); in mlxsw_sp_ipip_netdev_saddr()
107 parms6 = mlxsw_sp_ipip_netdev_parms6(ol_dev); in mlxsw_sp_ipip_netdev_saddr()
115 static __be32 mlxsw_sp_ipip_netdev_daddr4(const struct net_device *ol_dev) in mlxsw_sp_ipip_netdev_daddr4() argument
118 struct ip_tunnel_parm parms4 = mlxsw_sp_ipip_netdev_parms4(ol_dev); in mlxsw_sp_ipip_netdev_daddr4()
125 const struct net_device *ol_dev) in mlxsw_sp_ipip_netdev_daddr() argument
132 parms4 = mlxsw_sp_ipip_netdev_parms4(ol_dev); in mlxsw_sp_ipip_netdev_daddr()
135 parms6 = mlxsw_sp_ipip_netdev_parms6(ol_dev); in mlxsw_sp_ipip_netdev_daddr()
151 mlxsw_sp_ipip_netdev_parms_init_gre4(const struct net_device *ol_dev) in mlxsw_sp_ipip_netdev_parms_init_gre4() argument
153 struct ip_tunnel_parm parms = mlxsw_sp_ipip_netdev_parms4(ol_dev); in mlxsw_sp_ipip_netdev_parms_init_gre4()
171 __be32 daddr4 = mlxsw_sp_ipip_netdev_daddr4(ipip_entry->ol_dev); in mlxsw_sp_ipip_nexthop_update_gre4()
197 parms = mlxsw_sp_ipip_netdev_parms4(ipip_entry->ol_dev); in mlxsw_sp_ipip_decap_config_gre4()
214 daddr4 = be32_to_cpu(mlxsw_sp_ipip_netdev_daddr4(ipip_entry->ol_dev)); in mlxsw_sp_ipip_decap_config_gre4()
223 const struct net_device *ol_dev) in mlxsw_sp_ipip_tunnel_complete() argument
225 union mlxsw_sp_l3addr saddr = mlxsw_sp_ipip_netdev_saddr(proto, ol_dev); in mlxsw_sp_ipip_tunnel_complete()
226 union mlxsw_sp_l3addr daddr = mlxsw_sp_ipip_netdev_daddr(proto, ol_dev); in mlxsw_sp_ipip_tunnel_complete()
238 const struct net_device *ol_dev) in mlxsw_sp_ipip_can_offload_gre4() argument
240 struct ip_tunnel *tunnel = netdev_priv(ol_dev); in mlxsw_sp_ipip_can_offload_gre4()
248 mlxsw_sp_ipip_tunnel_complete(MLXSW_SP_L3_PROTO_IPV4, ol_dev); in mlxsw_sp_ipip_can_offload_gre4()
253 const struct net_device *ol_dev) in mlxsw_sp_ipip_ol_loopback_config_gre4() argument
255 struct ip_tunnel_parm parms = mlxsw_sp_ipip_netdev_parms4(ol_dev); in mlxsw_sp_ipip_ol_loopback_config_gre4()
266 ol_dev), in mlxsw_sp_ipip_ol_loopback_config_gre4()
283 u16 ul_tb_id = mlxsw_sp_ipip_dev_ul_tb_id(ipip_entry->ol_dev); in mlxsw_sp_ipip_ol_netdev_change_gre()
333 new_parms = mlxsw_sp_ipip_netdev_parms_init_gre4(ipip_entry->ol_dev); in mlxsw_sp_ipip_ol_netdev_change_gre4()
366 mlxsw_sp_ipip_netdev_parms_init_gre6(const struct net_device *ol_dev) in mlxsw_sp_ipip_netdev_parms_init_gre6() argument
368 struct __ip6_tnl_parm parms = mlxsw_sp_ipip_netdev_parms6(ol_dev); in mlxsw_sp_ipip_netdev_parms_init_gre6()
411 parms = mlxsw_sp_ipip_netdev_parms6(ipip_entry->ol_dev); in mlxsw_sp_ipip_decap_config_gre6()
437 const struct net_device *ol_dev) in mlxsw_sp_ipip_can_offload_gre6() argument
439 struct __ip6_tnl_parm tparm = mlxsw_sp_ipip_netdev_parms6(ol_dev); in mlxsw_sp_ipip_can_offload_gre6()
447 mlxsw_sp_ipip_tunnel_complete(MLXSW_SP_L3_PROTO_IPV6, ol_dev); in mlxsw_sp_ipip_can_offload_gre6()
452 const struct net_device *ol_dev) in mlxsw_sp_ipip_ol_loopback_config_gre6() argument
454 struct __ip6_tnl_parm parms = mlxsw_sp_ipip_netdev_parms6(ol_dev); in mlxsw_sp_ipip_ol_loopback_config_gre6()
465 ol_dev), in mlxsw_sp_ipip_ol_loopback_config_gre6()
476 new_parms = mlxsw_sp_ipip_netdev_parms_init_gre6(ipip_entry->ol_dev); in mlxsw_sp_ipip_ol_netdev_change_gre6()
594 mlxsw_sp_ipip_netdev_ul_dev_get(const struct net_device *ol_dev) in mlxsw_sp_ipip_netdev_ul_dev_get() argument
596 struct net *net = dev_net(ol_dev); in mlxsw_sp_ipip_netdev_ul_dev_get()
600 switch (ol_dev->type) { in mlxsw_sp_ipip_netdev_ul_dev_get()
602 tun4 = netdev_priv(ol_dev); in mlxsw_sp_ipip_netdev_ul_dev_get()
605 tun6 = netdev_priv(ol_dev); in mlxsw_sp_ipip_netdev_ul_dev_get()