Searched refs:pkt_out_cnt (Results 1 - 4 of 4) sorted by relevance
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
H A D | sock_fields.c | 214 struct bpf_spinlock_cnt pkt_out_cnt = {}, pkt_out_cnt10 = {}; in check_sk_pkt_out_cnt() local 217 pkt_out_cnt.cnt = ~0; in check_sk_pkt_out_cnt() 219 err = bpf_map_lookup_elem(sk_pkt_out_cnt_fd, &accept_fd, &pkt_out_cnt); in check_sk_pkt_out_cnt() 229 CHECK(err || pkt_out_cnt.cnt < 0xeB9F + 2 || in check_sk_pkt_out_cnt() 232 "err:%d errno:%d pkt_out_cnt:%u pkt_out_cnt10:%u\n", in check_sk_pkt_out_cnt() 233 err, errno, pkt_out_cnt.cnt, pkt_out_cnt10.cnt); in check_sk_pkt_out_cnt() 235 pkt_out_cnt.cnt = ~0; in check_sk_pkt_out_cnt() 237 err = bpf_map_lookup_elem(sk_pkt_out_cnt_fd, &cli_fd, &pkt_out_cnt); in check_sk_pkt_out_cnt() 247 CHECK(err || pkt_out_cnt.cnt < 0xeB9F + 4 || in check_sk_pkt_out_cnt() 250 "err:%d errno:%d pkt_out_cnt in check_sk_pkt_out_cnt() 254 init_sk_storage(int sk_fd, __u32 pkt_out_cnt) init_sk_storage() argument [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/ |
H A D | sock_fields.c | 213 struct bpf_spinlock_cnt pkt_out_cnt = {}, pkt_out_cnt10 = {}; in check_sk_pkt_out_cnt() local 216 pkt_out_cnt.cnt = ~0; in check_sk_pkt_out_cnt() 218 err = bpf_map_lookup_elem(sk_pkt_out_cnt_fd, &accept_fd, &pkt_out_cnt); in check_sk_pkt_out_cnt() 228 CHECK(err || pkt_out_cnt.cnt < 0xeB9F + 2 || in check_sk_pkt_out_cnt() 231 "err:%d errno:%d pkt_out_cnt:%u pkt_out_cnt10:%u\n", in check_sk_pkt_out_cnt() 232 err, errno, pkt_out_cnt.cnt, pkt_out_cnt10.cnt); in check_sk_pkt_out_cnt() 234 pkt_out_cnt.cnt = ~0; in check_sk_pkt_out_cnt() 236 err = bpf_map_lookup_elem(sk_pkt_out_cnt_fd, &cli_fd, &pkt_out_cnt); in check_sk_pkt_out_cnt() 246 CHECK(err || pkt_out_cnt.cnt < 0xeB9F + 4 || in check_sk_pkt_out_cnt() 249 "err:%d errno:%d pkt_out_cnt in check_sk_pkt_out_cnt() 253 init_sk_storage(int sk_fd, __u32 pkt_out_cnt) init_sk_storage() argument [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
H A D | test_sock_fields.c | 125 struct bpf_spinlock_cnt *pkt_out_cnt, *pkt_out_cnt10; in egress_read_sock_fields() local 190 pkt_out_cnt = bpf_sk_storage_get(&sk_pkt_out_cnt, ktp, 0, 0); in egress_read_sock_fields() 194 pkt_out_cnt = bpf_sk_storage_get(&sk_pkt_out_cnt, sk, in egress_read_sock_fields() 202 if (!pkt_out_cnt || !pkt_out_cnt10) in egress_read_sock_fields() 209 pkt_out_cnt->cnt += 1; in egress_read_sock_fields()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | test_sock_fields.c | 125 struct bpf_spinlock_cnt *pkt_out_cnt, *pkt_out_cnt10; in egress_read_sock_fields() local 190 pkt_out_cnt = bpf_sk_storage_get(&sk_pkt_out_cnt, ktp, 0, 0); in egress_read_sock_fields() 194 pkt_out_cnt = bpf_sk_storage_get(&sk_pkt_out_cnt, sk, in egress_read_sock_fields() 202 if (!pkt_out_cnt || !pkt_out_cnt10) in egress_read_sock_fields() 209 pkt_out_cnt->cnt += 1; in egress_read_sock_fields()
|
Completed in 3 milliseconds