Home
last modified time | relevance | path

Searched refs:__sk_buff (Results 1 – 25 of 166) sorted by relevance

1234567

/tools/testing/selftests/bpf/progs/
Dverifier_cgroup_skb.c32 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in test_1_for_cgroup_skb()
33 __imm_const(__sk_buff_data_end, offsetof(struct __sk_buff, data_end)), in test_1_for_cgroup_skb()
34 __imm_const(__sk_buff_len, offsetof(struct __sk_buff, len)), in test_1_for_cgroup_skb()
35 __imm_const(__sk_buff_mark, offsetof(struct __sk_buff, mark)), in test_1_for_cgroup_skb()
36 __imm_const(__sk_buff_pkt_type, offsetof(struct __sk_buff, pkt_type)), in test_1_for_cgroup_skb()
37 __imm_const(__sk_buff_protocol, offsetof(struct __sk_buff, protocol)), in test_1_for_cgroup_skb()
38 __imm_const(__sk_buff_queue_mapping, offsetof(struct __sk_buff, queue_mapping)), in test_1_for_cgroup_skb()
39 __imm_const(__sk_buff_vlan_present, offsetof(struct __sk_buff, vlan_present)) in test_1_for_cgroup_skb()
59 : __imm_const(__sk_buff_hash, offsetof(struct __sk_buff, hash)), in test_2_for_cgroup_skb()
60 __imm_const(__sk_buff_ingress_ifindex, offsetof(struct __sk_buff, ingress_ifindex)), in test_2_for_cgroup_skb()
[all …]
Dverifier_direct_packet_access.c19 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in __retval()
20 __imm_const(__sk_buff_data_end, offsetof(struct __sk_buff, data_end)) in __retval()
39 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in direct_packet_access_test1()
40 __imm_const(__sk_buff_data_end, offsetof(struct __sk_buff, data_end)) in direct_packet_access_test1()
73 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in direct_packet_access_test2()
74 __imm_const(__sk_buff_data_end, offsetof(struct __sk_buff, data_end)), in direct_packet_access_test2()
75 __imm_const(__sk_buff_len, offsetof(struct __sk_buff, len)) in direct_packet_access_test2()
90 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)) in direct_packet_access_test3()
109 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in direct_packet_access_test4_write()
110 __imm_const(__sk_buff_data_end, offsetof(struct __sk_buff, data_end)) in direct_packet_access_test4_write()
[all …]
Dverifier_lwt.c23 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in packet_write_for_lwt_in()
24 __imm_const(__sk_buff_data_end, offsetof(struct __sk_buff, data_end)) in packet_write_for_lwt_in()
43 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in packet_write_for_lwt_out()
44 __imm_const(__sk_buff_data_end, offsetof(struct __sk_buff, data_end)) in packet_write_for_lwt_out()
63 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in packet_write_for_lwt_xmit()
64 __imm_const(__sk_buff_data_end, offsetof(struct __sk_buff, data_end)) in packet_write_for_lwt_xmit()
83 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in packet_read_for_lwt_in()
84 __imm_const(__sk_buff_data_end, offsetof(struct __sk_buff, data_end)) in packet_read_for_lwt_in()
103 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in packet_read_for_lwt_out()
104 __imm_const(__sk_buff_data_end, offsetof(struct __sk_buff, data_end)) in packet_read_for_lwt_out()
[all …]
Dverifier_helper_packet_access.c157 __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in cls_valid_packet_ptr_range()
158 __imm_const(__sk_buff_data_end, offsetof(struct __sk_buff, data_end)) in cls_valid_packet_ptr_range()
176 __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)) in test7_cls_unchecked_packet_ptr()
205 __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in packet_test8_cls_variable_add()
206 __imm_const(__sk_buff_data_end, offsetof(struct __sk_buff, data_end)) in packet_test8_cls_variable_add()
230 __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in packet_ptr_with_bad_range_2()
231 __imm_const(__sk_buff_data_end, offsetof(struct __sk_buff, data_end)) in packet_ptr_with_bad_range_2()
254 __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in ptr_with_too_short_range_2()
255 __imm_const(__sk_buff_data_end, offsetof(struct __sk_buff, data_end)) in ptr_with_too_short_range_2()
279 __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in test11_cls_unsuitable_helper_1()
[all …]
Dtest_global_func3.c9 int f1(struct __sk_buff *skb) in f1()
15 int f2(int val, struct __sk_buff *skb) in f2()
21 int f3(int val, struct __sk_buff *skb, int var) in f3()
27 int f4(struct __sk_buff *skb) in f4()
33 int f5(struct __sk_buff *skb) in f5()
39 int f6(struct __sk_buff *skb) in f6()
45 int f7(struct __sk_buff *skb) in f7()
51 int f8(struct __sk_buff *skb) in f8()
58 int global_func3(struct __sk_buff *skb) in global_func3()
Dtest_global_func4.c9 int f1(struct __sk_buff *skb) in f1()
15 int f2(int val, struct __sk_buff *skb) in f2()
21 int f3(int val, struct __sk_buff *skb, int var) in f3()
27 int f4(struct __sk_buff *skb) in f4()
33 int f5(struct __sk_buff *skb) in f5()
39 int f6(struct __sk_buff *skb) in f6()
45 int f7(struct __sk_buff *skb) in f7()
52 int global_func4(struct __sk_buff *skb) in global_func4()
Dverifier_spill_fill.c43 : __imm_const(__sk_buff_mark, offsetof(struct __sk_buff, mark)) in valid_spill_fill_skb_mark()
194 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in scalar_offset_to_skb_data_1()
195 __imm_const(__sk_buff_data_end, offsetof(struct __sk_buff, data_end)) in scalar_offset_to_skb_data_1()
238 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in u16_offset_to_skb_data()
239 __imm_const(__sk_buff_data_end, offsetof(struct __sk_buff, data_end)) in u16_offset_to_skb_data()
266 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in u64_offset_to_skb_data()
267 __imm_const(__sk_buff_data_end, offsetof(struct __sk_buff, data_end)) in u64_offset_to_skb_data()
292 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in _6_offset_to_skb_data()
293 __imm_const(__sk_buff_data_end, offsetof(struct __sk_buff, data_end)) in _6_offset_to_skb_data()
319 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in addr_offset_to_skb_data()
[all …]
Dtest_tc_link.c17 int tc1(struct __sk_buff *skb) in tc1()
24 int tc2(struct __sk_buff *skb) in tc2()
31 int tc3(struct __sk_buff *skb) in tc3()
38 int tc4(struct __sk_buff *skb) in tc4()
45 int tc5(struct __sk_buff *skb) in tc5()
52 int tc6(struct __sk_buff *skb) in tc6()
Dverifier_sock.c65 : __imm_const(__sk_buff_sk, offsetof(struct __sk_buff, sk)) in skb_sk_no_null_check()
83 : __imm_const(__sk_buff_sk, offsetof(struct __sk_buff, sk)), in sk_family_non_fullsock_field_1()
103 : __imm_const(__sk_buff_sk, offsetof(struct __sk_buff, sk)), in sk_sk_type_fullsock_field_1()
121 __imm_const(__sk_buff_sk, offsetof(struct __sk_buff, sk)) in sk_no_skb_sk_check_1()
142 __imm_const(__sk_buff_sk, offsetof(struct __sk_buff, sk)), in no_null_check_on_ret_1()
166 __imm_const(__sk_buff_sk, offsetof(struct __sk_buff, sk)), in sk_sk_type_fullsock_field_2()
189 __imm_const(__sk_buff_sk, offsetof(struct __sk_buff, sk)), in sk_family_non_fullsock_field_2()
213 __imm_const(__sk_buff_sk, offsetof(struct __sk_buff, sk)), in sk_sk_state_narrow_load()
237 __imm_const(__sk_buff_sk, offsetof(struct __sk_buff, sk)), in port_word_load_backward_compatibility()
261 __imm_const(__sk_buff_sk, offsetof(struct __sk_buff, sk)), in sk_dst_port_half_load()
[all …]
Dmap_kptr_fail.c25 int size_not_bpf_dw(struct __sk_buff *ctx) in size_not_bpf_dw()
40 int non_const_var_off(struct __sk_buff *ctx) in non_const_var_off()
59 int non_const_var_off_kptr_xchg(struct __sk_buff *ctx) in non_const_var_off_kptr_xchg()
78 int misaligned_access_write(struct __sk_buff *ctx) in misaligned_access_write()
94 int misaligned_access_read(struct __sk_buff *ctx) in misaligned_access_read()
108 int reject_var_off_store(struct __sk_buff *ctx) in reject_var_off_store()
132 int reject_bad_type_match(struct __sk_buff *ctx) in reject_bad_type_match()
153 int marked_as_untrusted_or_null(struct __sk_buff *ctx) in marked_as_untrusted_or_null()
168 int correct_btf_id_check_size(struct __sk_buff *ctx) in correct_btf_id_check_size()
186 int inherit_untrusted_on_walk(struct __sk_buff *ctx) in inherit_untrusted_on_walk()
[all …]
Dtailcall_bpf2bpf4.c31 int subprog_tail_2(struct __sk_buff *skb) in subprog_tail_2()
40 int subprog_tail_1(struct __sk_buff *skb) in subprog_tail_1()
47 int subprog_tail(struct __sk_buff *skb) in subprog_tail()
54 int classifier_1(struct __sk_buff *skb) in classifier_1()
60 int classifier_2(struct __sk_buff *skb) in classifier_2()
67 int classifier_0(struct __sk_buff *skb) in classifier_0()
73 int entry(struct __sk_buff *skb) in entry()
Dtailcall2.c14 int classifier_0(struct __sk_buff *skb) in classifier_0()
21 int classifier_1(struct __sk_buff *skb) in classifier_1()
28 int classifier_2(struct __sk_buff *skb) in classifier_2()
34 int classifier_3(struct __sk_buff *skb) in classifier_3()
41 int classifier_4(struct __sk_buff *skb) in classifier_4()
48 int entry(struct __sk_buff *skb) in entry()
Dtest_global_func1.c11 int f0(int var, struct __sk_buff *skb) in f0()
19 int f1(struct __sk_buff *skb) in f1()
28 int f3(int, struct __sk_buff *skb, int);
31 int f2(int val, struct __sk_buff *skb) in f2()
37 int f3(int val, struct __sk_buff *skb, int var) in f3()
48 int global_func1(struct __sk_buff *skb) in global_func1()
Dtest_global_func2.c11 int f0(int var, struct __sk_buff *skb) in f0()
17 int f1(struct __sk_buff *skb) in f1()
26 int f3(int, struct __sk_buff *skb, int);
29 int f2(int val, struct __sk_buff *skb) in f2()
35 int f3(int val, struct __sk_buff *skb, int var) in f3()
46 int global_func2(struct __sk_buff *skb) in global_func2()
Dtest_global_func5.c9 int f1(struct __sk_buff *skb) in f1()
14 int f3(int, struct __sk_buff *skb);
17 int f2(int val, struct __sk_buff *skb) in f2()
23 int f3(int val, struct __sk_buff *skb) in f3()
30 int global_func5(struct __sk_buff *skb) in global_func5()
Dtest_global_func6.c9 int f1(struct __sk_buff *skb) in f1()
14 int f3(int, struct __sk_buff *skb);
17 int f2(int val, struct __sk_buff *skb) in f2()
23 int f3(int val, struct __sk_buff *skb) in f3()
30 int global_func6(struct __sk_buff *skb) in global_func6()
Dtest_lwt_redirect.c12 static int prepend_dummy_mac(struct __sk_buff *skb) in prepend_dummy_mac()
27 static int get_redirect_target(struct __sk_buff *skb) in get_redirect_target()
41 int test_lwt_redirect_in(struct __sk_buff *skb) in test_lwt_redirect_in()
55 int test_lwt_redirect_out(struct __sk_buff *skb) in test_lwt_redirect_out()
69 int test_lwt_redirect_out_nomac(struct __sk_buff *skb) in test_lwt_redirect_out_nomac()
80 int test_lwt_redirect_in_nomac(struct __sk_buff *skb) in test_lwt_redirect_in_nomac()
Dtest_bpf_nf_fail.c16 struct nf_conn *bpf_skb_ct_alloc(struct __sk_buff *, struct bpf_sock_tuple *, u32,
18 struct nf_conn *bpf_skb_ct_lookup(struct __sk_buff *, struct bpf_sock_tuple *, u32,
28 int alloc_release(struct __sk_buff *ctx) in alloc_release()
42 int insert_insert(struct __sk_buff *ctx) in insert_insert()
59 int lookup_insert(struct __sk_buff *ctx) in lookup_insert()
73 int write_not_allowlisted_field(struct __sk_buff *ctx) in write_not_allowlisted_field()
87 int set_timeout_after_insert(struct __sk_buff *ctx) in set_timeout_after_insert()
104 int set_status_after_insert(struct __sk_buff *ctx) in set_status_after_insert()
121 int change_timeout_after_alloc(struct __sk_buff *ctx) in change_timeout_after_alloc()
135 int change_status_after_alloc(struct __sk_buff *ctx) in change_status_after_alloc()
Dtest_tc_peer.c20 int tc_chk(struct __sk_buff *skb) in tc_chk()
26 int tc_dst(struct __sk_buff *skb) in tc_dst()
32 int tc_src(struct __sk_buff *skb) in tc_src()
38 int tc_dst_l3(struct __sk_buff *skb) in tc_dst_l3()
44 int tc_src_l3(struct __sk_buff *skb) in tc_src_l3()
Dtest_sk_lookup_kern.c56 int sk_lookup_success(struct __sk_buff *skb) in sk_lookup_success()
82 int sk_lookup_success_simple(struct __sk_buff *skb) in sk_lookup_success_simple()
94 int err_use_after_free(struct __sk_buff *skb) in err_use_after_free()
109 int err_modify_sk_pointer(struct __sk_buff *skb) in err_modify_sk_pointer()
123 int err_modify_sk_or_null_pointer(struct __sk_buff *skb) in err_modify_sk_or_null_pointer()
136 int err_no_release(struct __sk_buff *skb) in err_no_release()
145 int err_release_twice(struct __sk_buff *skb) in err_release_twice()
157 int err_release_unchecked(struct __sk_buff *skb) in err_release_unchecked()
167 void lookup_no_release(struct __sk_buff *skb) in lookup_no_release()
174 int err_no_release_subcall(struct __sk_buff *skb) in err_no_release_subcall()
Dtest_pkt_access.c37 int test_pkt_access_subprog1(volatile struct __sk_buff *skb) in test_pkt_access_subprog1()
43 int test_pkt_access_subprog2(int val, volatile struct __sk_buff *skb) in test_pkt_access_subprog2()
51 int get_skb_len(struct __sk_buff *skb) in get_skb_len()
66 int get_skb_ifindex(int, struct __sk_buff *skb, int);
69 int test_pkt_access_subprog3(int val, struct __sk_buff *skb) in test_pkt_access_subprog3()
75 int get_skb_ifindex(int val, struct __sk_buff *skb, int var) in get_skb_ifindex()
85 int test_pkt_write_access_subprog(struct __sk_buff *skb, __u32 off) in test_pkt_write_access_subprog()
103 int test_pkt_access(struct __sk_buff *skb) in test_pkt_access()
Dempty_skb.c12 int redirect_ingress(struct __sk_buff *skb) in redirect_ingress()
19 int redirect_egress(struct __sk_buff *skb) in redirect_egress()
26 int tc_redirect_ingress(struct __sk_buff *skb) in tc_redirect_ingress()
33 int tc_redirect_egress(struct __sk_buff *skb) in tc_redirect_egress()
Dtailcall_bpf2bpf3.c15 int subprog_tail2(struct __sk_buff *skb) in subprog_tail2()
30 int subprog_tail(struct __sk_buff *skb) in subprog_tail()
42 int classifier_0(struct __sk_buff *skb) in classifier_0()
52 int classifier_1(struct __sk_buff *skb) in classifier_1()
62 int entry(struct __sk_buff *skb) in entry()
Dverifier_raw_stack.c146 __imm_const(__sk_buff_mark, offsetof(struct __sk_buff, mark)), in bytes_spilled_regs_around_bounds()
147 __imm_const(__sk_buff_priority, offsetof(struct __sk_buff, priority)) in bytes_spilled_regs_around_bounds()
170 __imm_const(__sk_buff_mark, offsetof(struct __sk_buff, mark)) in __flag()
201 __imm_const(__sk_buff_mark, offsetof(struct __sk_buff, mark)), in __flag()
202 __imm_const(__sk_buff_pkt_type, offsetof(struct __sk_buff, pkt_type)), in __flag()
203 __imm_const(__sk_buff_priority, offsetof(struct __sk_buff, priority)) in __flag()
232 __imm_const(__sk_buff_mark, offsetof(struct __sk_buff, mark)), in load_bytes_spilled_regs_data()
233 __imm_const(__sk_buff_priority, offsetof(struct __sk_buff, priority)) in load_bytes_spilled_regs_data()
/tools/testing/selftests/bpf/verifier/
Dctx_skb.c5 offsetof(struct __sk_buff, len)),
8 offsetof(struct __sk_buff, mark)),
11 offsetof(struct __sk_buff, pkt_type)),
14 offsetof(struct __sk_buff, queue_mapping)),
17 offsetof(struct __sk_buff, protocol)),
20 offsetof(struct __sk_buff, vlan_present)),
23 offsetof(struct __sk_buff, vlan_tci)),
26 offsetof(struct __sk_buff, napi_id)),
54 offsetof(struct __sk_buff, pkt_type)),
67 offsetof(struct __sk_buff, pkt_type)),
[all …]

1234567