Lines Matching refs:xdp
175 struct xdp_buff xdp = {}; in bpf_prog_test_run_xdp() local
184 xdp.data_hard_start = data; in bpf_prog_test_run_xdp()
185 xdp.data = data + XDP_PACKET_HEADROOM + NET_IP_ALIGN; in bpf_prog_test_run_xdp()
186 xdp.data_meta = xdp.data; in bpf_prog_test_run_xdp()
187 xdp.data_end = xdp.data + size; in bpf_prog_test_run_xdp()
190 xdp.rxq = &rxqueue->xdp_rxq; in bpf_prog_test_run_xdp()
192 retval = bpf_test_run(prog, &xdp, repeat, &duration); in bpf_prog_test_run_xdp()
193 if (xdp.data != data + XDP_PACKET_HEADROOM + NET_IP_ALIGN || in bpf_prog_test_run_xdp()
194 xdp.data_end != xdp.data + size) in bpf_prog_test_run_xdp()
195 size = xdp.data_end - xdp.data; in bpf_prog_test_run_xdp()
196 ret = bpf_test_finish(kattr, uattr, xdp.data, size, retval, duration); in bpf_prog_test_run_xdp()