Home
last modified time | relevance | path

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

/linux-4.4.14/include/net/
Ddst_metadata.h17 struct metadata_dst *md_dst = (struct metadata_dst *) skb_dst(skb); in skb_metadata_dst() local
19 if (md_dst && md_dst->dst.flags & DST_METADATA) in skb_metadata_dst()
20 return md_dst; in skb_metadata_dst()
27 struct metadata_dst *md_dst = skb_metadata_dst(skb); in skb_tunnel_info() local
30 if (md_dst) in skb_tunnel_info()
31 return &md_dst->u.tun_info; in skb_tunnel_info()
83 struct metadata_dst *md_dst = skb_metadata_dst(skb); in tun_dst_unclone() local
87 if (!md_dst) in tun_dst_unclone()
90 md_size = md_dst->u.tun_info.options_len; in tun_dst_unclone()
95 memcpy(&new_md->u.tun_info, &md_dst->u.tun_info, in tun_dst_unclone()
/linux-4.4.14/net/core/
Ddst.c370 static void __metadata_dst_init(struct metadata_dst *md_dst, u8 optslen) in __metadata_dst_init() argument
374 dst = &md_dst->dst; in __metadata_dst_init()
381 memset(dst + 1, 0, sizeof(*md_dst) + optslen - sizeof(*dst)); in __metadata_dst_init()
386 struct metadata_dst *md_dst; in metadata_dst_alloc() local
388 md_dst = kmalloc(sizeof(*md_dst) + optslen, flags); in metadata_dst_alloc()
389 if (!md_dst) in metadata_dst_alloc()
392 __metadata_dst_init(md_dst, optslen); in metadata_dst_alloc()
394 return md_dst; in metadata_dst_alloc()
401 struct metadata_dst __percpu *md_dst; in metadata_dst_alloc_percpu() local
403 md_dst = __alloc_percpu_gfp(sizeof(struct metadata_dst) + optslen, in metadata_dst_alloc_percpu()
[all …]
Dfilter.c1587 static struct metadata_dst __percpu *md_dst; variable
1593 struct metadata_dst *md = this_cpu_ptr(md_dst); in bpf_skb_set_tunnel_key()
1624 if (!md_dst) { in bpf_get_skb_set_tunnel_key_proto()
1628 md_dst = metadata_dst_alloc_percpu(0, GFP_KERNEL); in bpf_get_skb_set_tunnel_key_proto()
1629 if (!md_dst) in bpf_get_skb_set_tunnel_key_proto()