From: Daniel Borkmann Date: Sat, 20 Jan 2018 00:24:30 +0000 (+0100) Subject: bpf: add csum_diff helper to xdp as well X-Git-Tag: Ubuntu-5.4-5.4.0-11.14~6057^2~109^2^2~7 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=205c380778d09291668da5267057a80385f89437;p=mirror_ubuntu-focal-kernel.git 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 Acked-by: Alexei Starovoitov Signed-off-by: Alexei Starovoitov --- diff --git a/net/core/filter.c b/net/core/filter.c index 30fafaaa90fa..e5178851536f 100644 --- a/net/core/filter.c +++ b/net/core/filter.c @@ -3456,6 +3456,8 @@ xdp_func_proto(enum bpf_func_id func_id) return &bpf_xdp_event_output_proto; case BPF_FUNC_get_smp_processor_id: return &bpf_get_smp_processor_id_proto; + case BPF_FUNC_csum_diff: + return &bpf_csum_diff_proto; case BPF_FUNC_xdp_adjust_head: return &bpf_xdp_adjust_head_proto; case BPF_FUNC_xdp_adjust_meta: