Lines Matching refs:xdp
348 struct xdp_buff xdp = {}; in bpf_prog_test_run_xdp() local
360 xdp.data_hard_start = data; in bpf_prog_test_run_xdp()
361 xdp.data = data + XDP_PACKET_HEADROOM + NET_IP_ALIGN; in bpf_prog_test_run_xdp()
362 xdp.data_meta = xdp.data; in bpf_prog_test_run_xdp()
363 xdp.data_end = xdp.data + size; in bpf_prog_test_run_xdp()
366 xdp.rxq = &rxqueue->xdp_rxq; in bpf_prog_test_run_xdp()
368 ret = bpf_test_run(prog, &xdp, repeat, &retval, &duration); in bpf_prog_test_run_xdp()
371 if (xdp.data != data + XDP_PACKET_HEADROOM + NET_IP_ALIGN || in bpf_prog_test_run_xdp()
372 xdp.data_end != xdp.data + size) in bpf_prog_test_run_xdp()
373 size = xdp.data_end - xdp.data; in bpf_prog_test_run_xdp()
374 ret = bpf_test_finish(kattr, uattr, xdp.data, size, retval, duration); in bpf_prog_test_run_xdp()