Lines Matching defs:config
133 struct mlxsw_sp_nve_config *config)
137 config->ul_proto = MLXSW_SP_L3_PROTO_IPV4;
138 config->ul_sip.addr4 = cfg->saddr.sin.sin_addr.s_addr;
141 config->ul_proto = MLXSW_SP_L3_PROTO_IPV6;
142 config->ul_sip.addr6 = cfg->saddr.sin6.sin6_addr;
149 struct mlxsw_sp_nve_config *config)
154 config->type = MLXSW_SP_NVE_TYPE_VXLAN;
155 config->ttl = cfg->ttl;
156 config->flowlabel = cfg->label;
157 config->learning_en = cfg->flags & VXLAN_F_LEARN ? 1 : 0;
158 config->ul_tb_id = RT_TABLE_MAIN;
159 mlxsw_sp_nve_vxlan_ul_proto_sip_config(cfg, config);
160 config->udp_dport = cfg->dst_port;
165 const struct mlxsw_sp_nve_config *config)
171 config->ttl);
180 switch (config->ul_proto) {
183 be32_to_cpu(config->ul_sip.addr4));
186 addr6 = config->ul_sip.addr6;
195 const struct mlxsw_sp_nve_config *config)
201 err = mlxsw_sp_router_tb_id_vr_id(mlxsw_sp, config->ul_tb_id,
206 mlxsw_sp_nve_vxlan_config_prepare(tngcr_pl, config);
207 mlxsw_reg_tngcr_learn_enable_set(tngcr_pl, config->learning_en);
233 const struct mlxsw_sp_nve_config *config)
238 err = mlxsw_sp_parsing_vxlan_udp_dport_set(mlxsw_sp, config->udp_dport);
246 err = mlxsw_sp1_nve_vxlan_config_set(mlxsw_sp, config);
254 err = mlxsw_sp_router_nve_promote_decap(mlxsw_sp, config->ul_tb_id,
255 config->ul_proto,
256 &config->ul_sip,
275 struct mlxsw_sp_nve_config *config = &nve->config;
278 mlxsw_sp_router_nve_demote_decap(mlxsw_sp, config->ul_tb_id,
279 config->ul_proto, &config->ul_sip);
337 const struct mlxsw_sp_nve_config *config)
344 err = mlxsw_sp_router_ul_rif_get(mlxsw_sp, config->ul_tb_id,
350 err = mlxsw_sp2_nve_vxlan_learning_set(mlxsw_sp, config->learning_en);
354 mlxsw_sp_nve_vxlan_config_prepare(tngcr_pl, config);
414 const struct mlxsw_sp_nve_config *config)
419 err = mlxsw_sp_parsing_vxlan_udp_dport_set(mlxsw_sp, config->udp_dport);
427 err = mlxsw_sp2_nve_vxlan_config_set(mlxsw_sp, config);
436 err = mlxsw_sp_router_nve_promote_decap(mlxsw_sp, config->ul_tb_id,
437 config->ul_proto,
438 &config->ul_sip,
457 struct mlxsw_sp_nve_config *config = &nve->config;
460 mlxsw_sp_router_nve_demote_decap(mlxsw_sp, config->ul_tb_id,
461 config->ul_proto, &config->ul_sip);