Skip to content

Commit 205c380

Browse files
borkmannAlexei Starovoitov
authored andcommitted
bpf: add csum_diff helper to xdp as well
Useful for porting cls_bpf programs w/o increasing program complexity limits much at the same time, so add the helper to XDP as well. Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
1 parent 9013341 commit 205c380

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

net/core/filter.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3456,6 +3456,8 @@ xdp_func_proto(enum bpf_func_id func_id)
34563456
return &bpf_xdp_event_output_proto;
34573457
case BPF_FUNC_get_smp_processor_id:
34583458
return &bpf_get_smp_processor_id_proto;
3459+
case BPF_FUNC_csum_diff:
3460+
return &bpf_csum_diff_proto;
34593461
case BPF_FUNC_xdp_adjust_head:
34603462
return &bpf_xdp_adjust_head_proto;
34613463
case BPF_FUNC_xdp_adjust_meta:

0 commit comments

Comments
 (0)