Home
last modified time | relevance | path

Searched refs:md_dst (Results 1 – 2 of 2) sorted by relevance

/net/core/
Ddst.c375 static void __metadata_dst_init(struct metadata_dst *md_dst, u8 optslen) in __metadata_dst_init() argument
379 dst = &md_dst->dst; in __metadata_dst_init()
386 memset(dst + 1, 0, sizeof(*md_dst) + optslen - sizeof(*dst)); in __metadata_dst_init()
391 struct metadata_dst *md_dst; in metadata_dst_alloc() local
393 md_dst = kmalloc(sizeof(*md_dst) + optslen, flags); in metadata_dst_alloc()
394 if (!md_dst) in metadata_dst_alloc()
397 __metadata_dst_init(md_dst, optslen); in metadata_dst_alloc()
399 return md_dst; in metadata_dst_alloc()
403 void metadata_dst_free(struct metadata_dst *md_dst) in metadata_dst_free() argument
406 dst_cache_destroy(&md_dst->u.tun_info.dst_cache); in metadata_dst_free()
[all …]
Dfilter.c2365 static struct metadata_dst __percpu *md_dst; variable
2370 struct metadata_dst *md = this_cpu_ptr(md_dst); in BPF_CALL_4()
2441 const struct metadata_dst *md = this_cpu_ptr(md_dst); in BPF_CALL_3()
2465 if (!md_dst) { in bpf_get_skb_set_tunnel_proto()
2469 md_dst = metadata_dst_alloc_percpu(IP_TUNNEL_OPTS_MAX, in bpf_get_skb_set_tunnel_proto()
2471 if (!md_dst) in bpf_get_skb_set_tunnel_proto()