Home
last modified time | relevance | path

Searched refs:data_meta (Results 1 – 25 of 42) sorted by relevance

12

/linux/tools/testing/selftests/bpf/progs/
H A Dtest_xdp_meta.c14 __u8 *data, *data_meta, *data_end; in ing_cls() local
17 data_meta = ctx_ptr(ctx, data_meta); in ing_cls()
22 data_meta + round_up(ETH_ALEN, 4) > data) in ing_cls()
25 diff |= ((__u32 *)data_meta)[0] ^ ((__u32 *)data)[0]; in ing_cls()
26 diff |= ((__u16 *)data_meta)[2] ^ ((__u16 *)data)[2]; in ing_cls()
34 __u8 *data, *data_meta, *data_end; in ing_xdp() local
41 data_meta = ctx_ptr(ctx, data_meta); in ing_xdp()
46 data_meta + round_up(ETH_ALEN, 4) > data) in ing_xdp()
49 __builtin_memcpy(data_meta, data, ETH_ALEN); in ing_xdp()
H A Dverifier_meta_access.c24 __imm_const(xdp_md_data_meta, offsetof(struct xdp_md, data_meta)) in meta_access_test1()
46 __imm_const(xdp_md_data_meta, offsetof(struct xdp_md, data_meta)) in meta_access_test2()
66 __imm_const(xdp_md_data_meta, offsetof(struct xdp_md, data_meta)) in meta_access_test3()
88 __imm_const(xdp_md_data_meta, offsetof(struct xdp_md, data_meta)) in meta_access_test4()
111 __imm_const(xdp_md_data_meta, offsetof(struct xdp_md, data_meta)) in meta_access_test5()
133 __imm_const(xdp_md_data_meta, offsetof(struct xdp_md, data_meta)) in meta_access_test6()
155 __imm_const(xdp_md_data_meta, offsetof(struct xdp_md, data_meta)) in meta_access_test7()
175 __imm_const(xdp_md_data_meta, offsetof(struct xdp_md, data_meta)) in meta_access_test8()
196 __imm_const(xdp_md_data_meta, offsetof(struct xdp_md, data_meta)) in meta_access_test9()
226 __imm_const(xdp_md_data_meta, offsetof(struct xdp_md, data_meta)) in meta_access_test10()
[all …]
H A Dverifier_xdp_direct_packet_access.c902 __imm_const(xdp_md_data_meta, offsetof(struct xdp_md, data_meta)) in __flag()
923 __imm_const(xdp_md_data_meta, offsetof(struct xdp_md, data_meta)) in __flag()
944 __imm_const(xdp_md_data_meta, offsetof(struct xdp_md, data_meta)) in __flag()
964 __imm_const(xdp_md_data_meta, offsetof(struct xdp_md, data_meta)) in __flag()
985 __imm_const(xdp_md_data_meta, offsetof(struct xdp_md, data_meta)) in __flag()
1006 __imm_const(xdp_md_data_meta, offsetof(struct xdp_md, data_meta)) in __flag()
1028 __imm_const(xdp_md_data_meta, offsetof(struct xdp_md, data_meta)) in __flag()
1049 __imm_const(xdp_md_data_meta, offsetof(struct xdp_md, data_meta)) in __flag()
1070 __imm_const(xdp_md_data_meta, offsetof(struct xdp_md, data_meta)) in __flag()
1091 __imm_const(xdp_md_data_meta, offsetof(struct xdp_md, data_meta)) in __flag()
[all …]
H A Dxsk_xdp_progs.c35 void *data, *data_meta; in xsk_xdp_populate_metadata() local
45 data_meta = (void *)(long)xdp->data_meta; in xsk_xdp_populate_metadata()
47 if (data_meta + sizeof(struct xdp_info) > data) in xsk_xdp_populate_metadata()
50 meta = data_meta; in xsk_xdp_populate_metadata()
H A Dxdp_metadata.c33 void *data, *data_meta, *data_end; in rx() local
74 data_meta = (void *)(long)ctx->data_meta; in rx()
76 if (data_meta + sizeof(struct xdp_meta) > data) in rx()
79 meta = data_meta; in rx()
H A Dxdp_hw_metadata.c30 void *data, *data_meta, *data_end; in rx() local
82 data_meta = (void *)(long)ctx->data_meta; in rx()
83 meta = data_meta; in rx()
H A Dverifier_ldsx.c185 : __imm_const(xdp_md_data_meta, offsetof(struct xdp_md, data_meta)) in ldsx_ctx_3()
227 : __imm_const(sk_buff_data_meta, offsetof(struct __sk_buff, data_meta)) in ldsx_ctx_6()
H A Dtest_xdp_context_test_run.c9 __u32 *metadata = (void *)(long)xdp->data_meta; in xdp_context()
H A Dtest_xdp_bpf2bpf.c26 void *data_meta; member
H A Dtest_xdp_do_redirect.c31 __u32 *metadata = (void *)(long)xdp->data_meta; in xdp_redirect()
H A Dverifier_cgroup_skb.c161 : __imm_const(__sk_buff_data_meta, offsetof(struct __sk_buff, data_meta)) in data_meta_for_cgroup_skb()
/linux/samples/bpf/
H A Dxdp2skb_meta_kern.c53 meta = (void *)(unsigned long)ctx->data_meta; in _xdp_mark()
67 void *data_meta = (void *)(unsigned long)ctx->data_meta; in _tc_mark() local
68 struct meta_info *meta = data_meta; in _tc_mark()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dxdp_context_test_run.c7 __u32 data_meta, __u32 data, __u32 data_end, in test_xdp_context_error() argument
14 .data_meta = data_meta, in test_xdp_context_error()
61 ctx_in.data_meta = 0; in test_xdp_context_test_run()
69 ASSERT_EQ(ctx_out.data_meta, 0, "valid-datameta"); in test_xdp_context_test_run()
/linux/include/net/
H A Dxdp.h83 void *data_meta; member
133 xdp->data_meta = meta_valid ? data : data + 1; in xdp_prepare_buff()
257 xdp->data_meta = frame->data - frame->metasize; in xdp_convert_frame_to_buff()
270 metasize = xdp->data - xdp->data_meta; in xdp_update_frame_from_buff()
361 xdp->data_meta = xdp->data + 1; in xdp_set_data_meta_invalid()
367 return unlikely(xdp->data_meta > xdp->data); in xdp_data_meta_unsupported()
H A Dxdp_sock_drv.h182 xdp->data_meta = xdp->data; in xsk_buff_set_size()
/linux/net/bpf/
H A Dtest_run.c142 frm_len = orig_ctx->data_end - orig_ctx->data_meta; in xdp_test_run_init_page()
143 meta_len = orig_ctx->data - orig_ctx->data_meta; in xdp_test_run_init_page()
149 memcpy(data + headroom, orig_ctx->data_meta, frm_len); in xdp_test_run_init_page()
153 new_ctx->data = new_ctx->data_meta + meta_len; in xdp_test_run_init_page()
236 head->orig_ctx.data_meta != head->ctx.data_meta || in ctx_was_changed()
246 head->ctx.data_meta = head->orig_ctx.data_meta; in reset_ctx()
1181 xdp->data = xdp->data_meta + xdp_md->data; in xdp_convert_md_to_buff()
1194 xdp_md->data = xdp->data - xdp->data_meta; in xdp_convert_buff_to_md()
1195 xdp_md->data_end = xdp->data_end - xdp->data_meta; in xdp_convert_buff_to_md()
1245 if (ctx->data_meta || ctx->data_end != size || in bpf_prog_test_run_xdp()
[all …]
/linux/Documentation/networking/
H A Dxdp-rx-metadata.rst50 xdp_buff->data_meta xdp_buff->data
52 An XDP program can store individual metadata items into this ``data_meta``
70 Here is the ``AF_XDP`` consumer layout (note missing ``data_meta`` pointer)::
88 the ``data_meta`` pointer.
/linux/drivers/net/ethernet/intel/ice/
H A Dice_xsk.c551 unsigned int totalsize = xdp->data_end - xdp->data_meta; in ice_construct_skb_zc()
552 unsigned int metasize = xdp->data - xdp->data_meta; in ice_construct_skb_zc()
561 net_prefetch(xdp->data_meta); in ice_construct_skb_zc()
567 memcpy(__skb_put(skb, totalsize), xdp->data_meta, in ice_construct_skb_zc()
/linux/net/core/
H A Dxdp.c550 xdp->data - xdp->data_meta; in xdp_convert_zc_to_xdp_frame()
565 data_to_copy = metasize ? xdp->data_meta : xdp->data; in xdp_convert_zc_to_xdp_frame()
H A Dfilter.c3927 xdp->data - xdp->data_meta; in xdp_get_metalen()
3942 memmove(xdp->data_meta + offset, in BPF_CALL_2()
3943 xdp->data_meta, metalen); in BPF_CALL_2()
3944 xdp->data_meta += offset; in BPF_CALL_2()
4229 void *meta = xdp->data_meta + offset; in BPF_CALL_2()
4240 xdp->data_meta = meta; in BPF_CALL_2()
8595 case bpf_ctx_range(struct __sk_buff, data_meta): in bpf_skb_is_valid_access()
8650 case bpf_ctx_range(struct __sk_buff, data_meta): in sk_filter_is_valid_access()
8678 case bpf_ctx_range(struct __sk_buff, data_meta): in cg_skb_is_valid_access()
8723 case bpf_ctx_range(struct __sk_buff, data_meta): in lwt_is_valid_access()
[all …]
/linux/Documentation/bpf/
H A Dbpf_prog_run.rst114 pointers (``data``, ``data_end`` and ``data_meta``) in the context object will
/linux/drivers/net/ethernet/intel/igc/
H A Digc_main.c1943 unsigned int metasize = xdp->data - xdp->data_meta; in igc_build_skb()
1947 net_prefetch(xdp->data_meta); in igc_build_skb()
1969 unsigned int metasize = xdp->data - xdp->data_meta; in igc_construct_skb()
1977 net_prefetch(xdp->data_meta); in igc_construct_skb()
1996 memcpy(__skb_put(skb, headlen + metasize), xdp->data_meta, in igc_construct_skb()
2712 unsigned int totalsize = xdp->data_end - xdp->data_meta; in igc_construct_skb_zc()
2713 unsigned int metasize = xdp->data - xdp->data_meta; in igc_construct_skb_zc()
2716 net_prefetch(xdp->data_meta); in igc_construct_skb_zc()
2722 memcpy(__skb_put(skb, totalsize), xdp->data_meta, in igc_construct_skb_zc()
2814 bi->xdp->data_meta += IGC_TS_HDR_LEN; in igc_clean_rx_irq_zc()
/linux/tools/include/uapi/linux/
H A Dbpf.h6260 __u32 data_meta; member
6453 __u32 data_meta; member
/linux/include/uapi/linux/
H A Dbpf.h6260 __u32 data_meta; member
6453 __u32 data_meta; member
/linux/include/linux/
H A Dfilter.h734 void *data_meta; member
880 cb->data_meta = skb->data - skb_metadata_len(skb); in bpf_compute_data_pointers()

12