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()
99 const struct net_device *ol_dev) in mlxsw_sp_ipip_netdev_saddr() argument
106 parms4 = mlxsw_sp_ipip_netdev_parms4(ol_dev); in mlxsw_sp_ipip_netdev_saddr()
109 parms6 = mlxsw_sp_ipip_netdev_parms6(ol_dev); in mlxsw_sp_ipip_netdev_saddr()
117 static __be32 mlxsw_sp_ipip_netdev_daddr4(const struct net_device *ol_dev) in mlxsw_sp_ipip_netdev_daddr4() argument
122 parms4 = mlxsw_sp_ipip_netdev_parms4(ol_dev); in mlxsw_sp_ipip_netdev_daddr4()
129 const struct net_device *ol_dev) in mlxsw_sp_ipip_netdev_daddr() argument
136 parms4 = mlxsw_sp_ipip_netdev_parms4(ol_dev); in mlxsw_sp_ipip_netdev_daddr()
139 parms6 = mlxsw_sp_ipip_netdev_parms6(ol_dev); in mlxsw_sp_ipip_netdev_daddr()
155 mlxsw_sp_ipip_netdev_parms_init_gre4(const struct net_device *ol_dev) in mlxsw_sp_ipip_netdev_parms_init_gre4() argument
157 struct ip_tunnel_parm_kern parms = mlxsw_sp_ipip_netdev_parms4(ol_dev); in mlxsw_sp_ipip_netdev_parms_init_gre4()
175 __be32 daddr4 = mlxsw_sp_ipip_netdev_daddr4(ipip_entry->ol_dev); in mlxsw_sp_ipip_nexthop_update_gre4()
201 parms = mlxsw_sp_ipip_netdev_parms4(ipip_entry->ol_dev); in mlxsw_sp_ipip_decap_config_gre4()
218 daddr4 = be32_to_cpu(mlxsw_sp_ipip_netdev_daddr4(ipip_entry->ol_dev)); in mlxsw_sp_ipip_decap_config_gre4()
227 const struct net_device *ol_dev) in mlxsw_sp_ipip_tunnel_complete() argument
229 union mlxsw_sp_l3addr saddr = mlxsw_sp_ipip_netdev_saddr(proto, ol_dev); in mlxsw_sp_ipip_tunnel_complete()
230 union mlxsw_sp_l3addr daddr = mlxsw_sp_ipip_netdev_daddr(proto, ol_dev); in mlxsw_sp_ipip_tunnel_complete()
242 const struct net_device *ol_dev) in mlxsw_sp_ipip_can_offload_gre4() argument
244 struct ip_tunnel *tunnel = netdev_priv(ol_dev); in mlxsw_sp_ipip_can_offload_gre4()
255 mlxsw_sp_ipip_tunnel_complete(MLXSW_SP_L3_PROTO_IPV4, ol_dev); in mlxsw_sp_ipip_can_offload_gre4()
260 const struct net_device *ol_dev) in mlxsw_sp_ipip_ol_loopback_config_gre4() argument
262 struct ip_tunnel_parm_kern parms = mlxsw_sp_ipip_netdev_parms4(ol_dev); in mlxsw_sp_ipip_ol_loopback_config_gre4()
273 ol_dev), in mlxsw_sp_ipip_ol_loopback_config_gre4()
290 u16 ul_tb_id = mlxsw_sp_ipip_dev_ul_tb_id(ipip_entry->ol_dev); in mlxsw_sp_ipip_ol_netdev_change_gre()
340 new_parms = mlxsw_sp_ipip_netdev_parms_init_gre4(ipip_entry->ol_dev); in mlxsw_sp_ipip_ol_netdev_change_gre4()
373 mlxsw_sp_ipip_netdev_parms_init_gre6(const struct net_device *ol_dev) in mlxsw_sp_ipip_netdev_parms_init_gre6() argument
375 struct __ip6_tnl_parm parms = mlxsw_sp_ipip_netdev_parms6(ol_dev); in mlxsw_sp_ipip_netdev_parms_init_gre6()
418 parms = mlxsw_sp_ipip_netdev_parms6(ipip_entry->ol_dev); in mlxsw_sp_ipip_decap_config_gre6()
444 const struct net_device *ol_dev) in mlxsw_sp_ipip_can_offload_gre6() argument
446 struct __ip6_tnl_parm tparm = mlxsw_sp_ipip_netdev_parms6(ol_dev); in mlxsw_sp_ipip_can_offload_gre6()
457 mlxsw_sp_ipip_tunnel_complete(MLXSW_SP_L3_PROTO_IPV6, ol_dev); in mlxsw_sp_ipip_can_offload_gre6()
462 const struct net_device *ol_dev) in mlxsw_sp_ipip_ol_loopback_config_gre6() argument
464 struct __ip6_tnl_parm parms = mlxsw_sp_ipip_netdev_parms6(ol_dev); in mlxsw_sp_ipip_ol_loopback_config_gre6()
475 ol_dev), in mlxsw_sp_ipip_ol_loopback_config_gre6()
489 new_parms = mlxsw_sp_ipip_netdev_parms_init_gre6(ipip_entry->ol_dev); in mlxsw_sp_ipip_ol_netdev_change_gre6()
626 mlxsw_sp_ipip_netdev_ul_dev_get(const struct net_device *ol_dev) in mlxsw_sp_ipip_netdev_ul_dev_get() argument
628 struct net *net = dev_net(ol_dev); in mlxsw_sp_ipip_netdev_ul_dev_get()
632 switch (ol_dev->type) { in mlxsw_sp_ipip_netdev_ul_dev_get()
634 tun4 = netdev_priv(ol_dev); in mlxsw_sp_ipip_netdev_ul_dev_get()
637 tun6 = netdev_priv(ol_dev); in mlxsw_sp_ipip_netdev_ul_dev_get()