Home
last modified time | relevance | path

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

12345678

/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dverifier_direct_packet_access.c19 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in __retval()
39 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in direct_packet_access_test1()
73 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), 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()
131 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in pkt_end_reg_good_access()
153 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in pkt_end_reg_bad_access()
176 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in pkt_end_reg_both_accesses()
200 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in test8_double_test_variant_1()
[all …]
H A 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()
59 : __imm_const(__sk_buff_hash, offsetof(struct __sk_buff, hash)), in test_2_for_cgroup_skb()
88 : __imm_const(__sk_buff_cb_0, offsetof(struct __sk_buff, cb[0])), in test_3_for_cgroup_skb()
89 __imm_const(__sk_buff_cb_1, offsetof(struct __sk_buff, cb[1])), in test_3_for_cgroup_skb()
90 __imm_const(__sk_buff_cb_2, offsetof(struct __sk_buff, cb[2])), in test_3_for_cgroup_skb()
91 __imm_const(__sk_buff_cb_3, offsetof(struct __sk_buff, cb[3])), in test_3_for_cgroup_skb()
92 __imm_const(__sk_buff_cb_4, offsetof(struct __sk_buff, cb[4])), in test_3_for_cgroup_skb()
[all …]
H A Dverifier_helper_packet_access.c157 __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), 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()
230 __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), 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()
279 __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in test11_cls_unsuitable_helper_1()
302 __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in test12_cls_unsuitable_helper_2()
329 __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in packet_test13_cls_helper_ok()
356 __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in test14_cls_helper_ok_sub()
383 __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in test15_cls_helper_fail_sub()
[all …]
H A 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()
103 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in packet_read_for_lwt_out()
123 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in packet_read_for_lwt_xmit()
146 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in checks_for_direct_packet_access()
[all …]
H A 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()
H A 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()
319 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in addr_offset_to_skb_data()
353 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in scalar_offset_to_skb_data_2()
[all …]
H A 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()
287 __imm_const(__sk_buff_sk, offsetof(struct __sk_buff, sk)) in dst_port_half_load_invalid_1()
[all …]
H A 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()
H A 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()
256 int reject_untrusted_xchg(struct __sk_buff *ctx) in reject_untrusted_xchg()
276 int reject_bad_type_xchg(struct __sk_buff *ctx) in reject_bad_type_xchg()
349 int kptr_xchg_ref_state(struct __sk_buff *ctx) in kptr_xchg_ref_state()
[all …]
H A 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()
H A 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()
H A 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()
H A 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()
H A 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()
H A 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()
H A 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()
H A 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()
H A 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()
H A 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()
H A Dtest_tc_tunnel.c432 int __encap_ipip_none(struct __sk_buff *skb) in __encap_ipip_none()
441 int __encap_gre_none(struct __sk_buff *skb) in __encap_gre_none()
450 int __encap_gre_mpls(struct __sk_buff *skb) in __encap_gre_mpls()
459 int __encap_gre_eth(struct __sk_buff *skb) in __encap_gre_eth()
468 int __encap_udp_none(struct __sk_buff *skb) in __encap_udp_none()
477 int __encap_udp_mpls(struct __sk_buff *skb) in __encap_udp_mpls()
486 int __encap_udp_eth(struct __sk_buff *skb) in __encap_udp_eth()
495 int __encap_vxlan_eth(struct __sk_buff *skb) in __encap_vxlan_eth()
506 int __encap_sit_none(struct __sk_buff *skb) in __encap_sit_none()
666 static int decap_ipv4(struct __sk_buff *skb) in decap_ipv4()
[all …]
H A 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()
/openbmc/linux/tools/testing/selftests/bpf/verifier/
H A Dctx_skb.c5 offsetof(struct __sk_buff, len)),
8 offsetof(struct __sk_buff, mark)),
11 offsetof(struct __sk_buff, pkt_type)),
17 offsetof(struct __sk_buff, protocol)),
23 offsetof(struct __sk_buff, vlan_tci)),
26 offsetof(struct __sk_buff, napi_id)),
89 offsetof(struct __sk_buff, len)),
274 offsetof(struct __sk_buff, mark)),
286 offsetof(struct __sk_buff, mark)),
319 offsetof(struct __sk_buff, data)),
[all …]
/openbmc/linux/samples/bpf/
H A Dtcbpf1_kern.c16 static inline void set_dst_mac(struct __sk_buff *skb, char *mac) in set_dst_mac()
24 static inline void set_ip_tos(struct __sk_buff *skb, __u8 new_tos) in set_ip_tos()
37 static inline void set_tcp_ip_src(struct __sk_buff *skb, __u32 new_ip) in set_tcp_ip_src()
47 static inline void set_tcp_dest_port(struct __sk_buff *skb, __u16 new_port) in set_tcp_dest_port()
56 int bpf_prog1(struct __sk_buff *skb) in bpf_prog1()
70 int _redirect_xmit(struct __sk_buff *skb) in _redirect_xmit()
75 int _redirect_recv(struct __sk_buff *skb) in _redirect_recv()
80 int _clone_redirect_xmit(struct __sk_buff *skb) in _clone_redirect_xmit()
86 int _clone_redirect_recv(struct __sk_buff *skb) in _clone_redirect_recv()
H A Dtest_lwt_bpf.c29 int do_nop(struct __sk_buff *skb) in do_nop()
36 int do_test_ctx(struct __sk_buff *skb) in do_test_ctx()
49 int do_test_cb(struct __sk_buff *skb) in do_test_cb()
60 int do_test_data(struct __sk_buff *skb) in do_test_data()
141 int do_test_rewrite(struct __sk_buff *skb) in do_test_rewrite()
185 int do_push_ll_and_redirect_silent(struct __sk_buff *skb) in do_push_ll_and_redirect_silent()
191 int do_push_ll_and_redirect(struct __sk_buff *skb) in do_push_ll_and_redirect()
202 static inline void __fill_garbage(struct __sk_buff *skb) in __fill_garbage()
221 int do_fill_garbage(struct __sk_buff *skb) in do_fill_garbage()
229 int do_fill_garbage_and_redirect(struct __sk_buff *skb) in do_fill_garbage_and_redirect()
[all …]
/openbmc/linux/include/linux/
H A Dbpf_types.h6 struct __sk_buff, struct sk_buff)
8 struct __sk_buff, struct sk_buff)
10 struct __sk_buff, struct sk_buff)
15 struct __sk_buff, struct sk_buff)
22 struct __sk_buff, struct sk_buff)
24 struct __sk_buff, struct sk_buff)
26 struct __sk_buff, struct sk_buff)
28 struct __sk_buff, struct sk_buff)
32 struct __sk_buff, struct sk_buff)
36 struct __sk_buff, struct bpf_flow_dissector)

12345678