Searched refs:filter_res (Results 1 - 5 of 5) sorted by relevance
/kernel/linux/linux-5.10/net/sched/ |
H A D | act_bpf.c | 41 int action, filter_res; in tcf_bpf_act() local 51 filter_res = BPF_PROG_RUN(filter, skb); in tcf_bpf_act() 55 filter_res = BPF_PROG_RUN(filter, skb); in tcf_bpf_act() 57 if (skb_sk_is_prefetched(skb) && filter_res != TC_ACT_OK) in tcf_bpf_act() 62 * Similarly as in cls_bpf, if filter_res == -1 we use the in tcf_bpf_act() 71 switch (filter_res) { in tcf_bpf_act() 76 action = filter_res; in tcf_bpf_act() 79 action = filter_res; in tcf_bpf_act()
|
H A D | cls_bpf.c | 91 int filter_res; in cls_bpf_classify() local 96 filter_res = prog->exts_integrated ? TC_ACT_UNSPEC : 0; in cls_bpf_classify() 101 filter_res = BPF_PROG_RUN(prog->filter, skb); in cls_bpf_classify() 105 filter_res = BPF_PROG_RUN(prog->filter, skb); in cls_bpf_classify() 113 ret = cls_bpf_exec_opcode(filter_res); in cls_bpf_classify() 119 if (filter_res == 0) in cls_bpf_classify() 121 if (filter_res != -1) { in cls_bpf_classify() 123 res->classid = filter_res; in cls_bpf_classify()
|
/kernel/linux/linux-6.6/net/sched/ |
H A D | act_bpf.c | 42 int action, filter_res; in tcf_bpf_act() local 51 filter_res = bpf_prog_run(filter, skb); in tcf_bpf_act() 55 filter_res = bpf_prog_run(filter, skb); in tcf_bpf_act() 59 if (skb_sk_is_prefetched(skb) && filter_res != TC_ACT_OK) in tcf_bpf_act() 63 * Similarly as in cls_bpf, if filter_res == -1 we use the in tcf_bpf_act() 72 switch (filter_res) { in tcf_bpf_act() 77 action = filter_res; in tcf_bpf_act() 80 action = filter_res; in tcf_bpf_act()
|
H A D | cls_bpf.c | 91 int filter_res; in cls_bpf_classify() local 96 filter_res = prog->exts_integrated ? TC_ACT_UNSPEC : 0; in cls_bpf_classify() 101 filter_res = bpf_prog_run(prog->filter, skb); in cls_bpf_classify() 105 filter_res = bpf_prog_run(prog->filter, skb); in cls_bpf_classify() 115 ret = cls_bpf_exec_opcode(filter_res); in cls_bpf_classify() 121 if (filter_res == 0) in cls_bpf_classify() 123 if (filter_res != -1) { in cls_bpf_classify() 125 res->classid = filter_res; in cls_bpf_classify()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | xdpwall.c | 326 bool filter_res; in edgewall() local 353 filter_res = filter_transport_hdr(transport_hdr, data_end, in edgewall() 355 if (!filter_res) in edgewall()
|
Completed in 5 milliseconds