Home
last modified time | relevance | path

Searched defs:skb (Results 1 – 25 of 101) sorted by relevance

12345

/tools/testing/selftests/bpf/progs/
Dtest_global_func3.c8 int f1(struct __sk_buff *skb) in f1()
14 int f2(int val, struct __sk_buff *skb) in f2()
20 int f3(int val, struct __sk_buff *skb, int var) in f3()
26 int f4(struct __sk_buff *skb) in f4()
32 int f5(struct __sk_buff *skb) in f5()
38 int f6(struct __sk_buff *skb) in f6()
44 int f7(struct __sk_buff *skb) in f7()
51 int f8(struct __sk_buff *skb) in f8()
58 int test_cls(struct __sk_buff *skb) in test_cls()
Dtest_tc_tunnel.c87 static __always_inline int __encap_ipv4(struct __sk_buff *skb, __u8 encap_proto, in __encap_ipv4()
249 static __always_inline int encap_ipv4(struct __sk_buff *skb, __u8 encap_proto, in encap_ipv4()
255 static __always_inline int __encap_ipv6(struct __sk_buff *skb, __u8 encap_proto, in __encap_ipv6()
366 static __always_inline int encap_ipv6(struct __sk_buff *skb, __u8 encap_proto, in encap_ipv6()
373 int __encap_ipip_none(struct __sk_buff *skb) in __encap_ipip_none()
382 int __encap_gre_none(struct __sk_buff *skb) in __encap_gre_none()
391 int __encap_gre_mpls(struct __sk_buff *skb) in __encap_gre_mpls()
400 int __encap_gre_eth(struct __sk_buff *skb) in __encap_gre_eth()
409 int __encap_udp_none(struct __sk_buff *skb) in __encap_udp_none()
418 int __encap_udp_mpls(struct __sk_buff *skb) in __encap_udp_mpls()
[all …]
Dtest_tunnel_kern.c63 int gre_set_tunnel(struct __sk_buff *skb) in gre_set_tunnel()
85 int gre_get_tunnel(struct __sk_buff *skb) in gre_get_tunnel()
101 int ip6gretap_set_tunnel(struct __sk_buff *skb) in ip6gretap_set_tunnel()
125 int ip6gretap_get_tunnel(struct __sk_buff *skb) in ip6gretap_get_tunnel()
144 int erspan_set_tunnel(struct __sk_buff *skb) in erspan_set_tunnel()
187 int erspan_get_tunnel(struct __sk_buff *skb) in erspan_get_tunnel()
223 int ip4ip6erspan_set_tunnel(struct __sk_buff *skb) in ip4ip6erspan_set_tunnel()
267 int ip4ip6erspan_get_tunnel(struct __sk_buff *skb) in ip4ip6erspan_get_tunnel()
304 int vxlan_set_tunnel_dst(struct __sk_buff *skb) in vxlan_set_tunnel_dst()
343 int vxlan_set_tunnel_src(struct __sk_buff *skb) in vxlan_set_tunnel_src()
[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_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()
124 int err_modify_sk_or_null_pointer(struct __sk_buff *skb) in err_modify_sk_or_null_pointer()
138 int err_no_release(struct __sk_buff *skb) in err_no_release()
147 int err_release_twice(struct __sk_buff *skb) in err_release_twice()
159 int err_release_unchecked(struct __sk_buff *skb) in err_release_unchecked()
169 void lookup_no_release(struct __sk_buff *skb) in lookup_no_release()
176 int err_no_release_subcall(struct __sk_buff *skb) in err_no_release_subcall()
Dtest_pkt_access.c36 int test_pkt_access_subprog1(volatile struct __sk_buff *skb) in test_pkt_access_subprog1()
42 int test_pkt_access_subprog2(int val, volatile struct __sk_buff *skb) in test_pkt_access_subprog2()
50 int get_skb_len(struct __sk_buff *skb) in get_skb_len()
66 int test_pkt_access_subprog3(int val, struct __sk_buff *skb) in test_pkt_access_subprog3()
72 int get_skb_ifindex(int val, struct __sk_buff *skb, int var) in get_skb_ifindex()
80 int test_pkt_write_access_subprog(struct __sk_buff *skb, __u32 off) in test_pkt_write_access_subprog()
98 int test_pkt_access(struct __sk_buff *skb) in test_pkt_access()
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()
Dtailcall_bpf2bpf3.c14 int subprog_tail2(struct __sk_buff *skb) in subprog_tail2()
27 int subprog_tail(struct __sk_buff *skb) in subprog_tail()
37 int classifier_0(struct __sk_buff *skb) in classifier_0()
45 int classifier_1(struct __sk_buff *skb) in classifier_1()
53 int entry(struct __sk_buff *skb) in entry()
Dtest_global_func1.c12 int f0(int var, struct __sk_buff *skb) in f0()
18 int f1(struct __sk_buff *skb) in f1()
28 int f2(int val, struct __sk_buff *skb) in f2()
34 int f3(int val, struct __sk_buff *skb, int var) in f3()
42 int test_cls(struct __sk_buff *skb) in test_cls()
Dtest_global_func5.c8 int f1(struct __sk_buff *skb) in f1()
16 int f2(int val, struct __sk_buff *skb) in f2()
22 int f3(int val, struct __sk_buff *skb) in f3()
28 int test_cls(struct __sk_buff *skb) in test_cls()
Dtest_global_func6.c8 int f1(struct __sk_buff *skb) in f1()
16 int f2(int val, struct __sk_buff *skb) in f2()
22 int f3(int val, struct __sk_buff *skb) in f3()
28 int test_cls(struct __sk_buff *skb) in test_cls()
Dtest_tc_neigh_fib.c24 static __always_inline int fill_fib_params_v4(struct __sk_buff *skb, in fill_fib_params_v4()
50 static __always_inline int fill_fib_params_v6(struct __sk_buff *skb, in fill_fib_params_v6()
79 int tc_chk(struct __sk_buff *skb) in tc_chk()
91 static __always_inline int tc_redir(struct __sk_buff *skb) in tc_redir()
147 int tc_dst(struct __sk_buff *skb) in tc_dst()
153 int tc_src(struct __sk_buff *skb) in tc_src()
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()
Dfexit_bpf2bpf.c18 int BPF_PROG(test_main, struct sk_buff *skb, int ret) in BPF_PROG()
33 int BPF_PROG(test_subprog1, struct sk_buff *skb, int ret) in BPF_PROG()
68 struct sk_buff *skb = (void *)ctx->args[0]; in test_subprog2() local
90 int BPF_PROG(test_subprog3, int val, struct sk_buff *skb, int ret) in BPF_PROG()
105 int new_get_skb_len(struct __sk_buff *skb) in new_get_skb_len()
117 int new_get_skb_ifindex(int val, struct __sk_buff *skb, int var) in new_get_skb_ifindex()
159 int new_test_pkt_write_access_subprog(struct __sk_buff *skb, __u32 off) in new_test_pkt_write_access_subprog()
Dtest_tc_neigh.c39 static __always_inline bool is_remote_ep_v4(struct __sk_buff *skb, in is_remote_ep_v4()
56 static __always_inline bool is_remote_ep_v6(struct __sk_buff *skb, in is_remote_ep_v6()
74 int tc_chk(struct __sk_buff *skb) in tc_chk()
87 int tc_dst(struct __sk_buff *skb) in tc_dst()
112 int tc_src(struct __sk_buff *skb) in tc_src()
Dkfunc_call_test.c21 int kfunc_call_test2(struct __sk_buff *skb) in kfunc_call_test2()
36 int kfunc_call_test1(struct __sk_buff *skb) in kfunc_call_test1()
57 int kfunc_call_test_ref_btf_id(struct __sk_buff *skb) in kfunc_call_test_ref_btf_id()
73 int kfunc_call_test_pass(struct __sk_buff *skb) in kfunc_call_test_pass()
136 int kfunc_call_test_get_mem(struct __sk_buff *skb) in kfunc_call_test_get_mem()
Dkfunc_call_fail.c46 int kfunc_call_test_get_mem_fail_rdonly(struct __sk_buff *skb) in kfunc_call_test_get_mem_fail_rdonly()
67 int kfunc_call_test_get_mem_fail_use_after_free(struct __sk_buff *skb) in kfunc_call_test_get_mem_fail_use_after_free()
93 int kfunc_call_test_get_mem_fail_oob(struct __sk_buff *skb) in kfunc_call_test_get_mem_fail_oob()
116 int kfunc_call_test_get_mem_fail_not_const(struct __sk_buff *skb) in kfunc_call_test_get_mem_fail_not_const()
137 int kfunc_call_test_mem_acquire_fail(struct __sk_buff *skb) in kfunc_call_test_mem_acquire_fail()
Dtailcall_bpf2bpf2.c14 int subprog_tail(struct __sk_buff *skb) in subprog_tail()
26 int classifier_0(struct __sk_buff *skb) in classifier_0()
33 int entry(struct __sk_buff *skb) in entry()
Dtest_tc_edt.c27 static inline int throttle_flow(struct __sk_buff *skb) in throttle_flow()
65 static inline int handle_tcp(struct __sk_buff *skb, struct tcphdr *tcp) in handle_tcp()
79 static inline int handle_ipv4(struct __sk_buff *skb) in handle_ipv4()
102 SEC("cls_test") int tc_prog(struct __sk_buff *skb) in tc_prog()
Dcg_storage_multi_isolated.c24 int egress1(struct __sk_buff *skb) in egress1()
36 int egress2(struct __sk_buff *skb) in egress2()
48 int ingress(struct __sk_buff *skb) in ingress()
Dcg_storage_multi_shared.c24 int egress1(struct __sk_buff *skb) in egress1()
36 int egress2(struct __sk_buff *skb) in egress2()
48 int ingress(struct __sk_buff *skb) in ingress()
Dtest_tc_dtime.c137 static int skb_get_type(struct __sk_buff *skb) in skb_get_type()
214 int egress_host(struct __sk_buff *skb) in egress_host()
245 int ingress_host(struct __sk_buff *skb) in ingress_host()
266 int ingress_fwdns_prio100(struct __sk_buff *skb) in ingress_fwdns_prio100()
290 int egress_fwdns_prio100(struct __sk_buff *skb) in egress_fwdns_prio100()
316 int ingress_fwdns_prio101(struct __sk_buff *skb) in ingress_fwdns_prio101()
362 int egress_fwdns_prio101(struct __sk_buff *skb) in egress_fwdns_prio101()
Dtest_lwt_seg6local.c53 static __always_inline struct ip6_srh_t *get_srh(struct __sk_buff *skb) in get_srh()
88 int update_tlv_pad(struct __sk_buff *skb, uint32_t new_pad, in update_tlv_pad()
118 int is_valid_tlv_boundary(struct __sk_buff *skb, struct ip6_srh_t *srh, in is_valid_tlv_boundary()
177 int add_tlv(struct __sk_buff *skb, struct ip6_srh_t *srh, uint32_t tlv_off, in add_tlv()
221 int delete_tlv(struct __sk_buff *skb, struct ip6_srh_t *srh, in delete_tlv()
259 int has_egr_tlv(struct __sk_buff *skb, struct ip6_srh_t *srh) in has_egr_tlv()
286 int __encap_srh(struct __sk_buff *skb) in __encap_srh()
322 int __add_egr_x(struct __sk_buff *skb) in __add_egr_x()
360 int __pop_egr(struct __sk_buff *skb) in __pop_egr()
399 int __inspect_t(struct __sk_buff *skb) in __inspect_t()
Dskb_pkt_end.c9 #define skb_shorter(skb, len) ((void *)(long)(skb)->data + (len) > (void *)(long)skb->data_end) argument
13 static INLINE struct iphdr *get_iphdr(struct __sk_buff *skb) in get_iphdr()
29 int main_prog(struct __sk_buff *skb) in main_prog()

12345