Helper functions available for XDP?


Andrew Wang
 

Hi

I am writing a bpf program for packet processing and have loaded my ingress function at BPF.XDP. 

I'm updating the destination IPv6 address and want to update the TCP checksum, but when I try to call the helper functions "bpf_csum_diff" or "bpf_l4_csum_replace", I get a "unknown func <function name>". Are these functions not available for XDP program types? 

Is there a way to tell what helper functions are available to what program types?

Thanks
Andrew

Join iovisor-dev@lists.iovisor.org to automatically receive all group messages.