Home
last modified time | relevance | path

Searched refs:enc_opts (Results 1 – 5 of 5) sorted by relevance

/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtc_tun_vxlan.c116 struct flow_match_enc_opts enc_opts; in mlx5e_tc_tun_parse_vxlan_gbp_option() local
120 flow_rule_match_enc_opts(rule, &enc_opts); in mlx5e_tc_tun_parse_vxlan_gbp_option()
122 if (memchr_inv(&enc_opts.mask->data, 0, sizeof(enc_opts.mask->data)) && in mlx5e_tc_tun_parse_vxlan_gbp_option()
128 if (enc_opts.key->dst_opt_type != TUNNEL_VXLAN_OPT) { in mlx5e_tc_tun_parse_vxlan_gbp_option()
133 if (enc_opts.key->len != sizeof(*gbp) || in mlx5e_tc_tun_parse_vxlan_gbp_option()
134 enc_opts.mask->len != sizeof(*gbp_mask)) { in mlx5e_tc_tun_parse_vxlan_gbp_option()
139 gbp = (u32 *)&enc_opts.key->data[0]; in mlx5e_tc_tun_parse_vxlan_gbp_option()
140 gbp_mask = (u32 *)&enc_opts.mask->data[0]; in mlx5e_tc_tun_parse_vxlan_gbp_option()
Dtc_tun_geneve.c166 struct flow_match_enc_opts enc_opts; in mlx5e_tc_tun_parse_geneve_options() local
177 flow_rule_match_enc_opts(rule, &enc_opts); in mlx5e_tc_tun_parse_geneve_options()
179 if (memchr_inv(&enc_opts.mask->data, 0, sizeof(enc_opts.mask->data)) && in mlx5e_tc_tun_parse_geneve_options()
191 if (enc_opts.key->dst_opt_type != TUNNEL_GENEVE_OPT) { in mlx5e_tc_tun_parse_geneve_options()
199 if (enc_opts.mask->len && in mlx5e_tc_tun_parse_geneve_options()
214 if ((enc_opts.key->len / 4) > ((max_tlv_option_data_len + 1) * max_tlv_options)) { in mlx5e_tc_tun_parse_geneve_options()
219 enc_opts.key->len); in mlx5e_tc_tun_parse_geneve_options()
223 MLX5_SET(fte_match_set_misc, misc_c, geneve_opt_len, enc_opts.mask->len / 4); in mlx5e_tc_tun_parse_geneve_options()
224 MLX5_SET(fte_match_set_misc, misc_v, geneve_opt_len, enc_opts.key->len / 4); in mlx5e_tc_tun_parse_geneve_options()
227 option_key = (struct geneve_opt *)&enc_opts.key->data[0]; in mlx5e_tc_tun_parse_geneve_options()
[all …]
/Linux-v6.6/net/sched/
Dcls_flower.c68 struct flow_dissector_key_enc_opts enc_opts; member
1201 if (key->enc_opts.len > FLOW_DIS_TUN_OPTS_MAX - 4) in fl_set_geneve_opt()
1204 opt = (struct geneve_opt *)&key->enc_opts.data[key->enc_opts.len]; in fl_set_geneve_opt()
1241 int new_len = key->enc_opts.len; in fl_set_geneve_opt()
1285 md = (struct vxlan_metadata *)&key->enc_opts.data[key->enc_opts.len]; in fl_set_vxlan_opt()
1322 md = (struct erspan_metadata *)&key->enc_opts.data[key->enc_opts.len]; in fl_set_erspan_opt()
1385 u8 len = key->enc_opts.len; in fl_set_gtp_opt()
1388 sinfo = (struct gtp_pdu_session_info *)&key->enc_opts.data[len]; in fl_set_gtp_opt()
1456 if (key->enc_opts.dst_opt_type && in fl_set_enc_opt()
1457 key->enc_opts.dst_opt_type != TUNNEL_GENEVE_OPT) { in fl_set_enc_opt()
[all …]
/Linux-v6.6/drivers/net/ethernet/netronome/nfp/flower/
Doffload.c154 nfp_flower_calc_opt_layer(struct flow_dissector_key_enc_opts *enc_opts, in nfp_flower_calc_opt_layer() argument
158 if (enc_opts->len > NFP_FL_MAX_GENEVE_OPT_KEY || in nfp_flower_calc_opt_layer()
159 (ipv6 && enc_opts->len > NFP_FL_MAX_GENEVE_OPT_KEY_V6)) { in nfp_flower_calc_opt_layer()
164 if (enc_opts->len > 0) { in nfp_flower_calc_opt_layer()
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/
Den_tc.c5455 struct tunnel_match_enc_opts enc_opts = {}; in mlx5e_tc_restore_tunnel() local
5483 enc_opts_id, &enc_opts); in mlx5e_tc_restore_tunnel()
5498 enc_opts.key.len); in mlx5e_tc_restore_tunnel()
5505 enc_opts.key.len); in mlx5e_tc_restore_tunnel()
5521 if (enc_opts.key.len) in mlx5e_tc_restore_tunnel()
5523 enc_opts.key.data, in mlx5e_tc_restore_tunnel()
5524 enc_opts.key.len, in mlx5e_tc_restore_tunnel()
5525 enc_opts.key.dst_opt_type); in mlx5e_tc_restore_tunnel()