Searched refs:md_dst (Results 1 – 2 of 2) sorted by relevance
258 static void __metadata_dst_init(struct metadata_dst *md_dst, in __metadata_dst_init() argument264 dst = &md_dst->dst; in __metadata_dst_init()271 memset(dst + 1, 0, sizeof(*md_dst) + optslen - sizeof(*dst)); in __metadata_dst_init()272 md_dst->type = type; in __metadata_dst_init()278 struct metadata_dst *md_dst; in metadata_dst_alloc() local280 md_dst = kmalloc(sizeof(*md_dst) + optslen, flags); in metadata_dst_alloc()281 if (!md_dst) in metadata_dst_alloc()284 __metadata_dst_init(md_dst, type, optslen); in metadata_dst_alloc()286 return md_dst; in metadata_dst_alloc()290 void metadata_dst_free(struct metadata_dst *md_dst) in metadata_dst_free() argument[all …]
3959 static struct metadata_dst __percpu *md_dst; variable3964 struct metadata_dst *md = this_cpu_ptr(md_dst); in BPF_CALL_4()4038 const struct metadata_dst *md = this_cpu_ptr(md_dst); in BPF_CALL_3()4062 if (!md_dst) { in bpf_get_skb_set_tunnel_proto()4070 if (cmpxchg(&md_dst, NULL, tmp)) in bpf_get_skb_set_tunnel_proto()