Home
last modified time | relevance | path

Searched refs:SK_DROP (Results 1 – 24 of 24) sorted by relevance

/linux/tools/testing/selftests/bpf/progs/
H A Dtest_sk_lookup.c84 return SK_DROP; in lookup_drop()
91 return SK_DROP; in check_ifindex()
104 return SK_DROP; in reuseport_drop()
123 return err ? SK_DROP : SK_PASS; in redir_port()
146 return err ? SK_DROP : SK_PASS; in redir_ip4()
172 return err ? SK_DROP : SK_PASS; in redir_ip6()
187 return err ? SK_DROP : SK_PASS; in select_sock_a()
198 return SK_DROP; in select_sock_a_no_reuseport()
202 return err ? SK_DROP : SK_PASS; in select_sock_a_no_reuseport()
212 return err ? SK_DROP : SK_PASS; in select_sock_b()
[all …]
H A Dtest_assign_reuse.c40 return SK_DROP; in reuse_accept()
43 return SK_DROP; in reuse_accept()
46 return SK_DROP; in reuse_accept()
49 return SK_DROP; in reuse_accept()
51 return SK_DROP; in reuse_accept()
63 return SK_DROP; in reuse_drop()
H A Dtest_sockmap_kern.h169 return SK_DROP; in bpf_prog3()
172 return SK_DROP; in bpf_prog3()
182 return SK_DROP; in bpf_prog3()
254 return SK_DROP; in bpf_prog4()
288 return SK_DROP; in bpf_prog6()
319 return SK_DROP; in bpf_prog8()
321 return SK_DROP; in bpf_prog8()
343 return SK_DROP; in bpf_prog9()
375 return SK_DROP; in bpf_prog10()
H A Ddynptr_fail.c264 return SK_DROP; in data_slice_out_of_bounds_skb()
1084 return SK_DROP; in skb_invalid_slice_write()
1105 return SK_DROP; in skb_invalid_data_slice1()
1110 return SK_DROP; in skb_invalid_data_slice1()
1131 return SK_DROP; in skb_invalid_data_slice2()
1136 return SK_DROP; in skb_invalid_data_slice2()
1158 return SK_DROP; in skb_invalid_data_slice3()
1183 return SK_DROP; in skb_invalid_data_slice4()
1207 return SK_DROP; in xdp_invalid_data_slice1()
1232 return SK_DROP; in xdp_invalid_data_slice2()
[all …]
H A Dsockmap_parse_prog.c16 return SK_DROP; in bpf_prog1()
21 return SK_DROP; in bpf_prog1()
H A Dtest_sockmap_update.c36 return SK_DROP; in copy_sock_map()
45 return failed ? SK_DROP : SK_PASS; in copy_sock_map()
H A Dtest_skmsg_load_helpers.c37 return SK_DROP; in prog_msg_verdict_common()
41 verdict = SK_DROP; in prog_msg_verdict_common()
H A Dtest_select_reuseport_kern.c175 return SK_DROP; in _select_by_skb_data()
181 return result < PASS ? SK_DROP : SK_PASS; in _select_by_skb_data()
H A Dtest_sockmap_skb_verdict_attach.c15 return SK_DROP; in prog_skb_verdict()
H A Dtest_sockmap_drop_prog.c29 return SK_DROP; in prog_skb_verdict()
H A Dsockmap_verdict_prog.c48 return SK_DROP; in bpf_prog2()
H A Dtest_migrate_reuseport.c111 return SK_DROP; in migrate_reuseport()
H A Dtest_sockmap_listen.c131 verdict = err ? SK_DROP : SK_PASS; in prog_reuseport()
/linux/net/core/
H A Dsock_map.c651 return SK_DROP; in BPF_CALL_4()
655 return SK_DROP; in BPF_CALL_4()
657 return SK_DROP; in BPF_CALL_4()
679 return SK_DROP; in BPF_CALL_4()
683 return SK_DROP; in BPF_CALL_4()
685 return SK_DROP; in BPF_CALL_4()
687 return SK_DROP; in BPF_CALL_4()
1257 return SK_DROP; in BPF_CALL_4()
1261 return SK_DROP; in BPF_CALL_4()
1263 return SK_DROP; in BPF_CALL_4()
[all …]
H A Dskmsg.c867 case SK_DROP: in sk_psock_map_verd()
H A Dfilter.c9290 return bpf_unclone_prologue(insn_buf, direct_write, prog, SK_DROP); in sk_skb_prologue()
/linux/Documentation/bpf/
H A Dprog_sk_lookup.rst52 The attached BPF programs must return with either ``SK_PASS`` or ``SK_DROP``
55 hashtable-based lookup, while ``SK_DROP`` causes the transport layer to drop the
72 3. If any program returned ``SK_DROP``, and no program returned ``SK_PASS`` and
H A Dmap_sockmap.rst97 Returns ``SK_PASS`` on success, or ``SK_DROP`` on error.
111 Returns ``SK_PASS`` on success, or ``SK_DROP`` on error.
177 Returns ``SK_PASS`` on success, or ``SK_DROP`` on error.
193 Returns ``SK_PASS`` on success, or ``SK_DROP`` on error.
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dsockmap_listen.c653 key = SK_DROP; in zero_verdict_count()
829 key = SK_DROP; in redir_to_listening()
1128 key = SK_DROP; in test_reuseport_select_connected()
1198 key = SK_DROP; in test_reuseport_mixed_groups()
/linux/include/linux/
H A Dfilter.h1620 } else if (_ret == SK_DROP && _all_pass) { \
1628 _all_pass || _selected_sk ? SK_PASS : SK_DROP; \
/linux/include/uapi/linux/
H A Dbpf.h6497 SK_DROP = 0, enumerator
/linux/tools/include/uapi/linux/
H A Dbpf.h6497 SK_DROP = 0, enumerator
/linux/Documentation/networking/
H A Dip-sysctl.rst836 migration by returning SK_DROP in the type of eBPF program, or
/linux/kernel/bpf/
H A Dverifier.c16519 range = retval_range(SK_DROP, SK_PASS); in check_return_code()