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()
627 u32 size, u32 headroom, u32 tailroom) in BTF_ID_FLAGS()
632 if (size < ETH_HLEN || size > PAGE_SIZE - headroom - tailroom) in BTF_ID_FLAGS()
639 data = kzalloc(size + headroom + tailroom, GFP_USER); in BTF_ID_FLAGS()
643 if (copy_from_user(data + headroom, data_in, user_size)) { in BTF_ID_FLAGS()
1146 u32 headroom = XDP_PACKET_HEADROOM; in bpf_prog_test_run_xdp() local
1171 headroom += sizeof(struct xdp_page_head); in bpf_prog_test_run_xdp()
1187 /* Meta data is allocated from the headroom */ in bpf_prog_test_run_xdp()
1188 headroom -= ctx->data; in bpf_prog_test_run_xdp()
1191 max_data_sz = 4096 - headroom - tailroom; in bpf_prog_test_run_xdp()
1199 data = bpf_test_init(kattr, size, max_data_sz, headroom, tailroom); in bpf_prog_test_run_xdp()
1206 rxqueue->xdp_rxq.frag_size = headroom + max_data_sz + tailroom; in bpf_prog_test_run_xdp()
1208 xdp_prepare_buff(&xdp, data, headroom, size, true); in bpf_prog_test_run_xdp()