• Home
  • Raw
  • Download

Lines Matching refs:config

95 				      struct mlxsw_sp_nve_config *config)  in mlxsw_sp_nve_vxlan_config()  argument
100 config->type = MLXSW_SP_NVE_TYPE_VXLAN; in mlxsw_sp_nve_vxlan_config()
101 config->ttl = cfg->ttl; in mlxsw_sp_nve_vxlan_config()
102 config->flowlabel = cfg->label; in mlxsw_sp_nve_vxlan_config()
103 config->learning_en = cfg->flags & VXLAN_F_LEARN ? 1 : 0; in mlxsw_sp_nve_vxlan_config()
104 config->ul_tb_id = RT_TABLE_MAIN; in mlxsw_sp_nve_vxlan_config()
105 config->ul_proto = MLXSW_SP_L3_PROTO_IPV4; in mlxsw_sp_nve_vxlan_config()
106 config->ul_sip.addr4 = cfg->saddr.sin.sin_addr.s_addr; in mlxsw_sp_nve_vxlan_config()
107 config->udp_dport = cfg->dst_port; in mlxsw_sp_nve_vxlan_config()
112 const struct mlxsw_sp_nve_config *config) in mlxsw_sp_nve_vxlan_config_prepare() argument
117 config->ttl); in mlxsw_sp_nve_vxlan_config_prepare()
125 mlxsw_reg_tngcr_usipv4_set(tngcr_pl, be32_to_cpu(config->ul_sip.addr4)); in mlxsw_sp_nve_vxlan_config_prepare()
130 const struct mlxsw_sp_nve_config *config) in mlxsw_sp1_nve_vxlan_config_set() argument
136 err = mlxsw_sp_router_tb_id_vr_id(mlxsw_sp, config->ul_tb_id, in mlxsw_sp1_nve_vxlan_config_set()
141 mlxsw_sp_nve_vxlan_config_prepare(tngcr_pl, config); in mlxsw_sp1_nve_vxlan_config_set()
142 mlxsw_reg_tngcr_learn_enable_set(tngcr_pl, config->learning_en); in mlxsw_sp1_nve_vxlan_config_set()
168 const struct mlxsw_sp_nve_config *config) in mlxsw_sp1_nve_vxlan_init() argument
173 err = mlxsw_sp_parsing_vxlan_udp_dport_set(mlxsw_sp, config->udp_dport); in mlxsw_sp1_nve_vxlan_init()
181 err = mlxsw_sp1_nve_vxlan_config_set(mlxsw_sp, config); in mlxsw_sp1_nve_vxlan_init()
189 err = mlxsw_sp_router_nve_promote_decap(mlxsw_sp, config->ul_tb_id, in mlxsw_sp1_nve_vxlan_init()
190 config->ul_proto, in mlxsw_sp1_nve_vxlan_init()
191 &config->ul_sip, in mlxsw_sp1_nve_vxlan_init()
210 struct mlxsw_sp_nve_config *config = &nve->config; in mlxsw_sp1_nve_vxlan_fini() local
213 mlxsw_sp_router_nve_demote_decap(mlxsw_sp, config->ul_tb_id, in mlxsw_sp1_nve_vxlan_fini()
214 config->ul_proto, &config->ul_sip); in mlxsw_sp1_nve_vxlan_fini()
272 const struct mlxsw_sp_nve_config *config) in mlxsw_sp2_nve_vxlan_config_set() argument
279 err = mlxsw_sp_router_ul_rif_get(mlxsw_sp, config->ul_tb_id, in mlxsw_sp2_nve_vxlan_config_set()
285 err = mlxsw_sp2_nve_vxlan_learning_set(mlxsw_sp, config->learning_en); in mlxsw_sp2_nve_vxlan_config_set()
289 mlxsw_sp_nve_vxlan_config_prepare(tngcr_pl, config); in mlxsw_sp2_nve_vxlan_config_set()
349 const struct mlxsw_sp_nve_config *config) in mlxsw_sp2_nve_vxlan_init() argument
354 err = mlxsw_sp_parsing_vxlan_udp_dport_set(mlxsw_sp, config->udp_dport); in mlxsw_sp2_nve_vxlan_init()
362 err = mlxsw_sp2_nve_vxlan_config_set(mlxsw_sp, config); in mlxsw_sp2_nve_vxlan_init()
371 err = mlxsw_sp_router_nve_promote_decap(mlxsw_sp, config->ul_tb_id, in mlxsw_sp2_nve_vxlan_init()
372 config->ul_proto, in mlxsw_sp2_nve_vxlan_init()
373 &config->ul_sip, in mlxsw_sp2_nve_vxlan_init()
392 struct mlxsw_sp_nve_config *config = &nve->config; in mlxsw_sp2_nve_vxlan_fini() local
395 mlxsw_sp_router_nve_demote_decap(mlxsw_sp, config->ul_tb_id, in mlxsw_sp2_nve_vxlan_fini()
396 config->ul_proto, &config->ul_sip); in mlxsw_sp2_nve_vxlan_fini()