Home
last modified time | relevance | path

Searched refs:geneve_opt (Results 1 – 12 of 12) sorted by relevance

/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/lib/
Dgeneve.h17 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()
Dgeneve.c63 int mlx5_geneve_tlv_option_add(struct mlx5_geneve *geneve, struct geneve_opt *opt) in mlx5_geneve_tlv_option_add()
/linux-6.1.9/include/net/
Dgeneve.h26 struct geneve_opt { struct
62 struct geneve_opt options[]; argument
/linux-6.1.9/net/sched/
Dact_tunnel_key.c117 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()
Dcls_flower.c1144 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()
/linux-6.1.9/tools/testing/selftests/bpf/progs/
Dtest_tunnel_kern.c36 struct geneve_opt { struct
575 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()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtc_tun_geneve.c164 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()
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/flower/
Daction.c347 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()
/linux-6.1.9/net/netfilter/
Dnft_tunnel.c342 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()
/linux-6.1.9/net/ipv4/
Dip_tunnel_core.c492 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()
/linux-6.1.9/net/openvswitch/
Dflow_netlink.c2724 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()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/
Den_tc.c2045 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()