Lines Matching refs:prog_id
9 __u32 len = sizeof(struct bpf_prog_info), duration = 0, prog_id; in serial_test_xdp_info() local
18 err = bpf_xdp_query_id(IFINDEX_LO, 0, &prog_id); in serial_test_xdp_info()
21 if (CHECK(prog_id, "prog_id_none", "unexpected prog_id=%u\n", prog_id)) in serial_test_xdp_info()
24 err = bpf_xdp_query_id(IFINDEX_LO, XDP_FLAGS_SKB_MODE, &prog_id); in serial_test_xdp_info()
27 if (CHECK(prog_id, "prog_id_none_skb", "unexpected prog_id=%u\n", in serial_test_xdp_info()
28 prog_id)) in serial_test_xdp_info()
47 err = bpf_xdp_query_id(IFINDEX_LO, 0, &prog_id); in serial_test_xdp_info()
50 if (CHECK(prog_id != info.id, "prog_id", "prog_id not available\n")) in serial_test_xdp_info()
53 err = bpf_xdp_query_id(IFINDEX_LO, XDP_FLAGS_SKB_MODE, &prog_id); in serial_test_xdp_info()
56 if (CHECK(prog_id != info.id, "prog_id_skb", "prog_id not available\n")) in serial_test_xdp_info()
59 err = bpf_xdp_query_id(IFINDEX_LO, XDP_FLAGS_DRV_MODE, &prog_id); in serial_test_xdp_info()
62 if (CHECK(prog_id, "prog_id_drv", "unexpected prog_id=%u\n", prog_id)) in serial_test_xdp_info()