Home
last modified time | relevance | path

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

/net/core/
Ddst.c267 static void __metadata_dst_init(struct metadata_dst *md_dst, in __metadata_dst_init() argument
272 dst = &md_dst->dst; in __metadata_dst_init()
275 memset(dst + 1, 0, sizeof(*md_dst) + optslen - sizeof(*dst)); in __metadata_dst_init()
276 md_dst->type = type; in __metadata_dst_init()
282 struct metadata_dst *md_dst; in metadata_dst_alloc() local
284 md_dst = kmalloc(sizeof(*md_dst) + optslen, flags); in metadata_dst_alloc()
285 if (!md_dst) in metadata_dst_alloc()
288 __metadata_dst_init(md_dst, type, optslen); in metadata_dst_alloc()
290 return md_dst; in metadata_dst_alloc()
294 void metadata_dst_free(struct metadata_dst *md_dst) in metadata_dst_free() argument
[all …]
Dflow_dissector.c1052 struct metadata_dst *md_dst = skb_metadata_dst(skb); in __skb_flow_dissect() local
1059 (!md_dst || md_dst->type != METADATA_HW_PORT_MUX)) { in __skb_flow_dissect()
Dfilter.c4752 static struct metadata_dst __percpu *md_dst; variable
4757 struct metadata_dst *md = this_cpu_ptr(md_dst); in BPF_CALL_4()
4839 const struct metadata_dst *md = this_cpu_ptr(md_dst); in BPF_CALL_3()
4863 if (!md_dst) { in bpf_get_skb_set_tunnel_proto()
4871 if (cmpxchg(&md_dst, NULL, tmp)) in bpf_get_skb_set_tunnel_proto()
/net/xfrm/
Dxfrm_interface_bpf.c67 struct metadata_dst *md_dst; in bpf_skb_set_xfrm_info() local
82 md_dst = this_cpu_ptr(xfrm_bpf_md_dst); in bpf_skb_set_xfrm_info()
84 info = &md_dst->u.xfrm_info; in bpf_skb_set_xfrm_info()
91 dst_hold((struct dst_entry *)md_dst); in bpf_skb_set_xfrm_info()
92 skb_dst_set(skb, (struct dst_entry *)md_dst); in bpf_skb_set_xfrm_info()
Dxfrm_interface_core.c410 struct metadata_dst *md_dst; in xfrmi_rcv_cb() local
412 md_dst = metadata_dst_alloc(0, METADATA_XFRM, GFP_ATOMIC); in xfrmi_rcv_cb()
413 if (!md_dst) in xfrmi_rcv_cb()
416 md_dst->u.xfrm_info.if_id = x->if_id; in xfrmi_rcv_cb()
417 md_dst->u.xfrm_info.link = link; in xfrmi_rcv_cb()
418 skb_dst_set(skb, (struct dst_entry *)md_dst); in xfrmi_rcv_cb()
/net/dsa/
Dtag.c57 struct metadata_dst *md_dst = skb_metadata_dst(skb); in dsa_switch_rcv() local
71 if (md_dst && md_dst->type == METADATA_HW_PORT_MUX) { in dsa_switch_rcv()
72 unsigned int port = md_dst->u.port_info.port_id; in dsa_switch_rcv()