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_sp1_ipip_netdev_parms_init_gre6(const struct net_device *ol_dev) in mlxsw_sp1_ipip_netdev_parms_init_gre6() argument
393 const struct net_device *ol_dev) in mlxsw_sp1_ipip_can_offload_gre6() argument
400 const struct net_device *ol_dev) in mlxsw_sp1_ipip_ol_loopback_config_gre6() argument
452 mlxsw_sp2_ipip_netdev_parms_init_gre6(const struct net_device *ol_dev) in mlxsw_sp2_ipip_netdev_parms_init_gre6() argument
454 struct __ip6_tnl_parm parms = mlxsw_sp_ipip_netdev_parms6(ol_dev); in mlxsw_sp2_ipip_netdev_parms_init_gre6()
497 parms = mlxsw_sp_ipip_netdev_parms6(ipip_entry->ol_dev); in mlxsw_sp2_ipip_decap_config_gre6()
523 const struct net_device *ol_dev) in mlxsw_sp2_ipip_can_offload_gre6() argument
525 struct __ip6_tnl_parm tparm = mlxsw_sp_ipip_netdev_parms6(ol_dev); in mlxsw_sp2_ipip_can_offload_gre6()
533 mlxsw_sp_ipip_tunnel_complete(MLXSW_SP_L3_PROTO_IPV6, ol_dev); in mlxsw_sp2_ipip_can_offload_gre6()
538 const struct net_device *ol_dev) in mlxsw_sp2_ipip_ol_loopback_config_gre6() argument
540 struct __ip6_tnl_parm parms = mlxsw_sp_ipip_netdev_parms6(ol_dev); in mlxsw_sp2_ipip_ol_loopback_config_gre6()
551 ol_dev), in mlxsw_sp2_ipip_ol_loopback_config_gre6()
562 new_parms = mlxsw_sp2_ipip_netdev_parms_init_gre6(ipip_entry->ol_dev); in mlxsw_sp2_ipip_ol_netdev_change_gre6()
660 mlxsw_sp_ipip_netdev_ul_dev_get(const struct net_device *ol_dev) in mlxsw_sp_ipip_netdev_ul_dev_get() argument
662 struct net *net = dev_net(ol_dev); in mlxsw_sp_ipip_netdev_ul_dev_get()
666 switch (ol_dev->type) { in mlxsw_sp_ipip_netdev_ul_dev_get()
668 tun4 = netdev_priv(ol_dev); in mlxsw_sp_ipip_netdev_ul_dev_get()
671 tun6 = netdev_priv(ol_dev); in mlxsw_sp_ipip_netdev_ul_dev_get()