staging: rtl8192u: remove redundant assignment to pointer crypt
[linux/fpc-iii.git] / tools / testing / selftests / bpf / prog_tests / pkt_md_access.c
blobac0d434358061a57eccd854fa1d1ad0c752d451c
1 // SPDX-License-Identifier: GPL-2.0
2 #include <test_progs.h>
4 void test_pkt_md_access(void)
6 const char *file = "./test_pkt_md_access.o";
7 struct bpf_object *obj;
8 __u32 duration, retval;
9 int err, prog_fd;
11 err = bpf_prog_load(file, BPF_PROG_TYPE_SCHED_CLS, &obj, &prog_fd);
12 if (err) {
13 error_cnt++;
14 return;
17 err = bpf_prog_test_run(prog_fd, 10, &pkt_v4, sizeof(pkt_v4),
18 NULL, NULL, &retval, &duration);
19 CHECK(err || retval, "",
20 "err %d errno %d retval %d duration %d\n",
21 err, errno, retval, duration);
23 bpf_object__close(obj);