| /Linux-v6.1/tools/testing/selftests/bpf/progs/ |
| D | test_xdp_meta.c | 14 __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()
|
| D | test_xdp_context_test_run.c | 9 __u32 *metadata = (void *)(long)xdp->data_meta; in xdp_context()
|
| D | test_xdp_bpf2bpf.c | 26 void *data_meta; member
|
| D | test_xdp_do_redirect.c | 18 __u32 *metadata = (void *)(long)xdp->data_meta; in xdp_redirect()
|
| /Linux-v6.1/tools/testing/selftests/bpf/verifier/ |
| D | meta_access.c | 5 offsetof(struct xdp_md, data_meta)), 21 offsetof(struct xdp_md, data_meta)), 40 offsetof(struct xdp_md, data_meta)), 58 offsetof(struct xdp_md, data_meta)), 77 offsetof(struct xdp_md, data_meta)), 96 offsetof(struct xdp_md, data_meta)), 115 offsetof(struct xdp_md, data_meta)), 133 offsetof(struct xdp_md, data_meta)), 149 offsetof(struct xdp_md, data_meta)), 167 offsetof(struct xdp_md, data_meta)), [all …]
|
| D | xdp_direct_packet_access.c | 757 offsetof(struct xdp_md, data_meta)), 774 offsetof(struct xdp_md, data_meta)), 792 offsetof(struct xdp_md, data_meta)), 810 offsetof(struct xdp_md, data_meta)), 827 offsetof(struct xdp_md, data_meta)), 845 offsetof(struct xdp_md, data_meta)), 863 offsetof(struct xdp_md, data_meta)), 882 offsetof(struct xdp_md, data_meta)), 900 offsetof(struct xdp_md, data_meta)), 918 offsetof(struct xdp_md, data_meta)), [all …]
|
| D | cgroup_skb.c | 139 offsetof(struct __sk_buff, data_meta)),
|
| /Linux-v6.1/samples/bpf/ |
| D | xdp2skb_meta_kern.c | 53 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-v6.1/tools/testing/selftests/bpf/prog_tests/ |
| D | xdp_context_test_run.c | 7 __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-v6.1/include/net/ |
| D | xdp.h | 80 void *data_meta; member 130 xdp->data_meta = meta_valid ? data : data + 1; in xdp_prepare_buff() 254 xdp->data_meta = frame->data - frame->metasize; in xdp_convert_frame_to_buff() 267 metasize = xdp->data - xdp->data_meta; in xdp_update_frame_from_buff() 387 xdp->data_meta = xdp->data + 1; in xdp_set_data_meta_invalid() 393 return unlikely(xdp->data_meta > xdp->data); in xdp_data_meta_unsupported()
|
| D | xdp_sock_drv.h | 113 xdp->data_meta = xdp->data; in xsk_buff_set_size()
|
| /Linux-v6.1/net/bpf/ |
| D | test_run.c | 130 frm_len = orig_ctx->data_end - orig_ctx->data_meta; in xdp_test_run_init_page() 131 meta_len = orig_ctx->data - orig_ctx->data_meta; in xdp_test_run_init_page() 137 memcpy(data + headroom, orig_ctx->data_meta, frm_len); in xdp_test_run_init_page() 141 new_ctx->data = new_ctx->data_meta + meta_len; in xdp_test_run_init_page() 214 head->orig_ctx.data_meta != head->ctx.data_meta || in ctx_was_changed() 224 head->ctx.data_meta = head->orig_ctx.data_meta; in reset_ctx() 1255 xdp->data = xdp->data_meta + xdp_md->data; in xdp_convert_md_to_buff() 1268 xdp_md->data = xdp->data - xdp->data_meta; in xdp_convert_buff_to_md() 1269 xdp_md->data_end = xdp->data_end - xdp->data_meta; in xdp_convert_buff_to_md() 1316 if (ctx->data_meta || ctx->data_end != size || in bpf_prog_test_run_xdp() [all …]
|
| /Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/en/xsk/ |
| D | rx.c | 210 u32 totallen = xdp->data_end - xdp->data_meta; in mlx5e_xsk_construct_skb() 211 u32 metalen = xdp->data - xdp->data_meta; in mlx5e_xsk_construct_skb() 220 skb_put_data(skb, xdp->data_meta, totallen); in mlx5e_xsk_construct_skb()
|
| /Linux-v6.1/drivers/net/ethernet/intel/ixgbe/ |
| D | ixgbe_xsk.c | 216 unsigned int totalsize = xdp->data_end - xdp->data_meta; in ixgbe_construct_skb_zc() 217 unsigned int metasize = xdp->data - xdp->data_meta; in ixgbe_construct_skb_zc() 220 net_prefetch(xdp->data_meta); in ixgbe_construct_skb_zc() 228 memcpy(__skb_put(skb, totalsize), xdp->data_meta, in ixgbe_construct_skb_zc()
|
| /Linux-v6.1/drivers/net/ethernet/intel/i40e/ |
| D | i40e_xsk.c | 295 unsigned int totalsize = xdp->data_end - xdp->data_meta; in i40e_construct_skb_zc() 296 unsigned int metasize = xdp->data - xdp->data_meta; in i40e_construct_skb_zc() 299 net_prefetch(xdp->data_meta); in i40e_construct_skb_zc() 307 memcpy(__skb_put(skb, totalsize), xdp->data_meta, in i40e_construct_skb_zc()
|
| /Linux-v6.1/drivers/net/ethernet/intel/ice/ |
| D | ice_xsk.c | 566 unsigned int totalsize = xdp->data_end - xdp->data_meta; in ice_construct_skb_zc() 567 unsigned int metasize = xdp->data - xdp->data_meta; in ice_construct_skb_zc() 570 net_prefetch(xdp->data_meta); in ice_construct_skb_zc() 577 memcpy(__skb_put(skb, totalsize), xdp->data_meta, in ice_construct_skb_zc() 696 xdp->data_meta = NULL; in ice_clean_rx_irq_zc()
|
| D | ice_txrx.c | 935 u8 metasize = xdp->data - xdp->data_meta; in ice_build_skb() 950 net_prefetch(xdp->data_meta); in ice_build_skb() 987 unsigned int metasize = xdp->data - xdp->data_meta; in ice_construct_skb() 993 net_prefetch(xdp->data_meta); in ice_construct_skb() 1009 memcpy(__skb_put(skb, headlen + metasize), xdp->data_meta, in ice_construct_skb() 1184 xdp.data_meta = NULL; in ice_clean_rx_irq()
|
| /Linux-v6.1/net/core/ |
| D | xdp.c | 566 xdp->data - xdp->data_meta; in xdp_convert_zc_to_xdp_frame() 581 data_to_copy = metasize ? xdp->data_meta : xdp->data; in xdp_convert_zc_to_xdp_frame()
|
| D | filter.c | 3817 xdp->data - xdp->data_meta; in xdp_get_metalen() 3832 memmove(xdp->data_meta + offset, in BPF_CALL_2() 3833 xdp->data_meta, metalen); in BPF_CALL_2() 3834 xdp->data_meta += offset; in BPF_CALL_2() 4083 void *meta = xdp->data_meta + offset; in BPF_CALL_2() 4094 xdp->data_meta = meta; in BPF_CALL_2() 8256 case bpf_ctx_range(struct __sk_buff, data_meta): in bpf_skb_is_valid_access() 8304 case bpf_ctx_range(struct __sk_buff, data_meta): in sk_filter_is_valid_access() 8332 case bpf_ctx_range(struct __sk_buff, data_meta): in cg_skb_is_valid_access() 8377 case bpf_ctx_range(struct __sk_buff, data_meta): in lwt_is_valid_access() [all …]
|
| /Linux-v6.1/drivers/net/ethernet/intel/igc/ |
| D | igc_main.c | 1728 unsigned int metasize = xdp->data - xdp->data_meta; in igc_build_skb() 1732 net_prefetch(xdp->data_meta); in igc_build_skb() 1754 unsigned int metasize = xdp->data - xdp->data_meta; in igc_construct_skb() 1762 net_prefetch(xdp->data_meta); in igc_construct_skb() 1779 memcpy(__skb_put(skb, headlen + metasize), xdp->data_meta, in igc_construct_skb() 2490 unsigned int totalsize = xdp->data_end - xdp->data_meta; in igc_construct_skb_zc() 2491 unsigned int metasize = xdp->data - xdp->data_meta; in igc_construct_skb_zc() 2494 net_prefetch(xdp->data_meta); in igc_construct_skb_zc() 2501 memcpy(__skb_put(skb, totalsize), xdp->data_meta, in igc_construct_skb_zc() 2580 bi->xdp->data_meta += IGC_TS_HDR_LEN; in igc_clean_rx_irq_zc()
|
| /Linux-v6.1/drivers/net/ethernet/netronome/nfp/nfd3/ |
| D | xsk.c | 105 xrxbuf->xdp->data - xrxbuf->xdp->data_meta); in nfp_nfd3_xsk_rx_skb()
|
| /Linux-v6.1/Documentation/bpf/ |
| D | bpf_prog_run.rst | 114 pointers (``data``, ``data_end`` and ``data_meta``) in the context object will
|
| /Linux-v6.1/tools/include/uapi/linux/ |
| D | bpf.h | 5886 __u32 data_meta; member 6066 __u32 data_meta; member
|
| /Linux-v6.1/include/uapi/linux/ |
| D | bpf.h | 5886 __u32 data_meta; member 6066 __u32 data_meta; member
|
| /Linux-v6.1/net/xdp/ |
| D | xsk.c | 164 from_buf = from->data_meta; in xsk_copy_xdp() 165 metalen = from->data - from->data_meta; in xsk_copy_xdp()
|