Searched refs:geneve_opt (Results 1 – 12 of 12) sorted by relevance
17 int mlx5_geneve_tlv_option_add(struct mlx5_geneve *geneve, struct geneve_opt *opt);27 mlx5_geneve_tlv_option_add(struct mlx5_geneve *geneve, struct geneve_opt *opt) { return 0; } in mlx5_geneve_tlv_option_add()
63 int mlx5_geneve_tlv_option_add(struct mlx5_geneve *geneve, struct geneve_opt *opt) in mlx5_geneve_tlv_option_add()
26 struct geneve_opt { struct62 struct geneve_opt options[]; argument
117 opt_len = sizeof(struct geneve_opt) + data_len; in tunnel_key_copy_geneve_opt()119 struct geneve_opt *opt = dst; in tunnel_key_copy_geneve_opt()578 struct geneve_opt *opt = (struct geneve_opt *)src; in tunnel_key_geneve_opts_dump()590 len -= sizeof(struct geneve_opt) + opt->length * 4; in tunnel_key_geneve_opts_dump()591 src += sizeof(struct geneve_opt) + opt->length * 4; in tunnel_key_geneve_opts_dump()
1144 struct geneve_opt *opt; in fl_set_geneve_opt()1147 if (option_len > sizeof(struct geneve_opt)) in fl_set_geneve_opt()1148 data_len = option_len - sizeof(struct geneve_opt); in fl_set_geneve_opt()1150 opt = (struct geneve_opt *)&key->enc_opts.data[key->enc_opts.len]; in fl_set_geneve_opt()1159 return sizeof(struct geneve_opt) + data_len; in fl_set_geneve_opt()1200 new_len += sizeof(struct geneve_opt) + data_len; in fl_set_geneve_opt()1220 return sizeof(struct geneve_opt) + data_len; in fl_set_geneve_opt()2842 struct geneve_opt *opt; in fl_dump_key_geneve_opt()2851 opt = (struct geneve_opt *)&enc_opts->data[opt_off]; in fl_dump_key_geneve_opt()2863 opt_off += sizeof(struct geneve_opt) + opt->length * 4; in fl_dump_key_geneve_opt()
36 struct geneve_opt { struct575 struct geneve_opt gopt; in geneve_set_tunnel()613 struct geneve_opt gopt; in geneve_get_tunnel()634 struct geneve_opt gopt; in ip6geneve_set_tunnel()672 struct geneve_opt gopt; in ip6geneve_get_tunnel()
164 struct geneve_opt *option_key, *option_mask; 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()228 option_mask = (struct geneve_opt *)&enc_opts.mask->data[0]; in mlx5e_tc_tun_parse_geneve_options()
347 struct geneve_opt *opt = (struct geneve_opt *)src; in nfp_fl_push_geneve_options()362 opt_len -= sizeof(struct geneve_opt) + opt->length * 4; in nfp_fl_push_geneve_options()363 src += sizeof(struct geneve_opt) + opt->length * 4; in nfp_fl_push_geneve_options()375 struct geneve_opt *opt = (struct geneve_opt *)src; in nfp_fl_push_geneve_options()393 src += sizeof(struct geneve_opt) + opt->length * 4; in nfp_fl_push_geneve_options()
342 struct geneve_opt *opt = (struct geneve_opt *)opts->u.data + opts->len; in nft_tunnel_obj_geneve_init()617 struct geneve_opt *opt; in nft_tunnel_opts_dump()624 opt = (struct geneve_opt *)opts->u.data + offset; in nft_tunnel_opts_dump()
492 struct geneve_opt *opt = ip_tunnel_info_opts(info) + opts_len; in ip_tun_parse_opts_geneve()503 return sizeof(struct geneve_opt) + data_len; in ip_tun_parse_opts_geneve()733 struct geneve_opt *opt; in ip_tun_fill_encap_opts_geneve()865 struct geneve_opt *opt; in ip_tun_opts_nlsize()
2724 struct geneve_opt *option; in validate_geneve_opts()2728 option = (struct geneve_opt *)TUN_METADATA_OPTS(key, key->tun_opts_len); in validate_geneve_opts()2741 option = (struct geneve_opt *)((u8 *)option + len); in validate_geneve_opts()
2045 struct geneve_opt *opt; in enc_opts_is_dont_care_or_full_match()2051 opt = (struct geneve_opt *)&opts->data[off]; in enc_opts_is_dont_care_or_full_match()2067 off += sizeof(struct geneve_opt) + opt->length * 4; in enc_opts_is_dont_care_or_full_match()