Lines Matching refs:ipip_entry
171 struct mlxsw_sp_ipip_entry *ipip_entry, in mlxsw_sp_ipip_nexthop_update_gre4() argument
174 u16 rif_index = mlxsw_sp_ipip_lb_rif_index(ipip_entry->ol_lb); in mlxsw_sp_ipip_nexthop_update_gre4()
175 __be32 daddr4 = mlxsw_sp_ipip_netdev_daddr4(ipip_entry->ol_dev); in mlxsw_sp_ipip_nexthop_update_gre4()
189 struct mlxsw_sp_ipip_entry *ipip_entry, in mlxsw_sp_ipip_decap_config_gre4() argument
192 u16 rif_index = mlxsw_sp_ipip_lb_rif_index(ipip_entry->ol_lb); in mlxsw_sp_ipip_decap_config_gre4()
193 u16 ul_rif_id = mlxsw_sp_ipip_lb_ul_rif_id(ipip_entry->ol_lb); in mlxsw_sp_ipip_decap_config_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()
279 struct mlxsw_sp_ipip_entry *ipip_entry, in mlxsw_sp_ipip_ol_netdev_change_gre() argument
283 const struct mlxsw_sp_ipip_parms *old_parms = &ipip_entry->parms; in mlxsw_sp_ipip_ol_netdev_change_gre()
290 u16 ul_tb_id = mlxsw_sp_ipip_dev_ul_tb_id(ipip_entry->ol_dev); in mlxsw_sp_ipip_ol_netdev_change_gre()
299 ipip_entry)) { in mlxsw_sp_ipip_ol_netdev_change_gre()
300 mlxsw_sp_ipip_entry_demote_tunnel(mlxsw_sp, ipip_entry); in mlxsw_sp_ipip_ol_netdev_change_gre()
315 err = __mlxsw_sp_ipip_entry_update_tunnel(mlxsw_sp, ipip_entry, in mlxsw_sp_ipip_ol_netdev_change_gre()
319 err = __mlxsw_sp_ipip_entry_update_tunnel(mlxsw_sp, ipip_entry, in mlxsw_sp_ipip_ol_netdev_change_gre()
323 err = __mlxsw_sp_ipip_entry_update_tunnel(mlxsw_sp, ipip_entry, in mlxsw_sp_ipip_ol_netdev_change_gre()
329 ipip_entry->parms = *new_parms; in mlxsw_sp_ipip_ol_netdev_change_gre()
335 struct mlxsw_sp_ipip_entry *ipip_entry, in mlxsw_sp_ipip_ol_netdev_change_gre4() argument
340 new_parms = mlxsw_sp_ipip_netdev_parms_init_gre4(ipip_entry->ol_dev); in mlxsw_sp_ipip_ol_netdev_change_gre4()
341 return mlxsw_sp_ipip_ol_netdev_change_gre(mlxsw_sp, ipip_entry, in mlxsw_sp_ipip_ol_netdev_change_gre4()
347 struct mlxsw_sp_ipip_entry *ipip_entry) in mlxsw_sp_ipip_rem_addr_set_gre4() argument
354 const struct mlxsw_sp_ipip_entry *ipip_entry) in mlxsw_sp_ipip_rem_addr_unset_gre4() argument
389 struct mlxsw_sp_ipip_entry *ipip_entry, in mlxsw_sp_ipip_nexthop_update_gre6() argument
392 u16 rif_index = mlxsw_sp_ipip_lb_rif_index(ipip_entry->ol_lb); in mlxsw_sp_ipip_nexthop_update_gre6()
400 ipip_entry->dip_kvdl_index); in mlxsw_sp_ipip_nexthop_update_gre6()
407 struct mlxsw_sp_ipip_entry *ipip_entry, in mlxsw_sp_ipip_decap_config_gre6() argument
410 u16 rif_index = mlxsw_sp_ipip_lb_rif_index(ipip_entry->ol_lb); in mlxsw_sp_ipip_decap_config_gre6()
411 u16 ul_rif_id = mlxsw_sp_ipip_lb_ul_rif_id(ipip_entry->ol_lb); in mlxsw_sp_ipip_decap_config_gre6()
418 parms = mlxsw_sp_ipip_netdev_parms6(ipip_entry->ol_dev); in mlxsw_sp_ipip_decap_config_gre6()
438 ipip_entry->dip_kvdl_index, ikey); in mlxsw_sp_ipip_decap_config_gre6()
481 struct mlxsw_sp_ipip_entry *ipip_entry, in mlxsw_sp_ipip_ol_netdev_change_gre6() argument
484 u32 new_kvdl_index, old_kvdl_index = ipip_entry->dip_kvdl_index; in mlxsw_sp_ipip_ol_netdev_change_gre6()
485 struct in6_addr old_addr6 = ipip_entry->parms.daddr.addr6; in mlxsw_sp_ipip_ol_netdev_change_gre6()
489 new_parms = mlxsw_sp_ipip_netdev_parms_init_gre6(ipip_entry->ol_dev); in mlxsw_sp_ipip_ol_netdev_change_gre6()
496 ipip_entry->dip_kvdl_index = new_kvdl_index; in mlxsw_sp_ipip_ol_netdev_change_gre6()
498 err = mlxsw_sp_ipip_ol_netdev_change_gre(mlxsw_sp, ipip_entry, in mlxsw_sp_ipip_ol_netdev_change_gre6()
508 ipip_entry->dip_kvdl_index = old_kvdl_index; in mlxsw_sp_ipip_ol_netdev_change_gre6()
515 struct mlxsw_sp_ipip_entry *ipip_entry) in mlxsw_sp_ipip_rem_addr_set_gre6() argument
518 &ipip_entry->parms.daddr.addr6, in mlxsw_sp_ipip_rem_addr_set_gre6()
519 &ipip_entry->dip_kvdl_index); in mlxsw_sp_ipip_rem_addr_set_gre6()
524 const struct mlxsw_sp_ipip_entry *ipip_entry) in mlxsw_sp_ipip_rem_addr_unset_gre6() argument
526 mlxsw_sp_ipv6_addr_put(mlxsw_sp, &ipip_entry->parms.daddr.addr6); in mlxsw_sp_ipip_rem_addr_unset_gre6()