Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dtc_tun_geneve.c167 struct flow_match_enc_opts enc_opts; in mlx5e_tc_tun_parse_geneve_options() local
178 flow_rule_match_enc_opts(rule, &enc_opts); in mlx5e_tc_tun_parse_geneve_options()
180 if (memchr_inv(&enc_opts.mask->data, 0, sizeof(enc_opts.mask->data)) && in mlx5e_tc_tun_parse_geneve_options()
192 if (enc_opts.key->dst_opt_type != IP_TUNNEL_GENEVE_OPT_BIT) { in mlx5e_tc_tun_parse_geneve_options()
200 if (enc_opts.mask->len && in mlx5e_tc_tun_parse_geneve_options()
215 if ((enc_opts.key->len / 4) > ((max_tlv_option_data_len + 1) * max_tlv_options)) { in mlx5e_tc_tun_parse_geneve_options()
220 enc_opts.key->len); in mlx5e_tc_tun_parse_geneve_options()
224 MLX5_SET(fte_match_set_misc, misc_c, geneve_opt_len, enc_opts.mask->len / 4); in mlx5e_tc_tun_parse_geneve_options()
225 MLX5_SET(fte_match_set_misc, misc_v, geneve_opt_len, enc_opts.key->len / 4); in mlx5e_tc_tun_parse_geneve_options()
228 option_key = (struct geneve_opt *)&enc_opts.key->data[0]; in mlx5e_tc_tun_parse_geneve_options()
[all …]
H A 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 != IP_TUNNEL_VXLAN_OPT_BIT) { 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()
/linux/net/sched/
H A Dcls_flower.c75 struct flow_dissector_key_enc_opts enc_opts;
1246 if (key->enc_opts.len > FLOW_DIS_TUN_OPTS_MAX - 4) in fl_set_geneve_opt()
1249 opt = (struct geneve_opt *)&key->enc_opts.data[key->enc_opts.len]; in fl_set_geneve_opt()
1286 int new_len = key->enc_opts.len; in fl_set_geneve_opt()
1330 md = (struct vxlan_metadata *)&key->enc_opts.data[key->enc_opts.len]; in fl_set_vxlan_opt()
1367 md = (struct erspan_metadata *)&key->enc_opts.data[key->enc_opts.len]; in fl_set_erspan_opt()
1431 u8 len = key->enc_opts in fl_set_gtp_opt()
79 struct flow_dissector_key_enc_opts enc_opts; global() member
3163 fl_dump_key_geneve_opt(struct sk_buff * skb,struct flow_dissector_key_enc_opts * enc_opts) fl_dump_key_geneve_opt() argument
3197 fl_dump_key_vxlan_opt(struct sk_buff * skb,struct flow_dissector_key_enc_opts * enc_opts) fl_dump_key_vxlan_opt() argument
3219 fl_dump_key_erspan_opt(struct sk_buff * skb,struct flow_dissector_key_enc_opts * enc_opts) fl_dump_key_erspan_opt() argument
3252 fl_dump_key_gtp_opt(struct sk_buff * skb,struct flow_dissector_key_enc_opts * enc_opts) fl_dump_key_gtp_opt() argument
3280 fl_dump_key_pfcp_opt(struct sk_buff * skb,struct flow_dissector_key_enc_opts * enc_opts) fl_dump_key_pfcp_opt() argument
3377 fl_dump_key_options(struct sk_buff * skb,int enc_opt_type,struct flow_dissector_key_enc_opts * enc_opts) fl_dump_key_options() argument
[all...]
/linux/drivers/net/ethernet/netronome/nfp/flower/
H A 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()