On Tue, Jul 24, 2018 at 1:54 AM, François <fser@...> wrote:
On Mon, Jul 23, 2018 at 10:08:08PM +0200, Paul Chaignon wrote:bpf_csum_diff only accesses packet data and can be used in both cls_act and xdp.On Mon, Jul 23, 2018 at 02:21:05PM -0400, Andrew Wang wrote:I was thinking maybe those helpers were not available because no skbHiXDP programs cannot use bpf_l4_csum_replace, but they can use
bpf_l4_csum_replace accesses skb data structure, e.g., it needs to
replace the csum
and hence needs to test whether skb is writable. It also different
calculation based on
the existing checksum state (skb->ip_summed), so bpf_l4_csum_replace cannot be
used in xdp.