Lines Matching full:headroom
133 u32 headroom = XDP_PACKET_HEADROOM; in xdp_test_run_init_page() local
142 headroom -= meta_len; in xdp_test_run_init_page()
147 memcpy(data + headroom, orig_ctx->data_meta, frm_len); in xdp_test_run_init_page()
150 xdp_prepare_buff(new_ctx, data, headroom, frm_len, true); in xdp_test_run_init_page()
628 u32 size, u32 headroom, u32 tailroom) in BTF_ID_FLAGS()
633 if (size < ETH_HLEN || size > PAGE_SIZE - headroom - tailroom) in BTF_ID_FLAGS()
640 data = kzalloc(size + headroom + tailroom, GFP_USER); in BTF_ID_FLAGS()
644 if (copy_from_user(data + headroom, data_in, user_size)) { in BTF_ID_FLAGS()
1153 u32 headroom = XDP_PACKET_HEADROOM; in bpf_prog_test_run_xdp() local
1178 headroom += sizeof(struct xdp_page_head); in bpf_prog_test_run_xdp()
1194 /* Meta data is allocated from the headroom */ in bpf_prog_test_run_xdp()
1195 headroom -= ctx->data; in bpf_prog_test_run_xdp()
1198 max_data_sz = 4096 - headroom - tailroom; in bpf_prog_test_run_xdp()
1206 data = bpf_test_init(kattr, size, max_data_sz, headroom, tailroom); in bpf_prog_test_run_xdp()
1213 rxqueue->xdp_rxq.frag_size = headroom + max_data_sz + tailroom; in bpf_prog_test_run_xdp()
1215 xdp_prepare_buff(&xdp, data, headroom, size, true); in bpf_prog_test_run_xdp()