Cody Haas <chaas@xxxxxxxxxxxxx> writes: > Hey, > > Trying to utilize TX checksum offloading while running an XDP > application; We're running on Fedora 28, using Intel x710 Network > Adapters in unison with the Intel i40e drivers and we've verified that > the Fedora sees that TX checksum offloading is enabled. On the > receiving side of an XDP_TX we don't see a proper checksum in the > transmitted packet. Is this due to XDP bypassing the Linux network > stack? If so, is there a way to have XDP instruct the driver to > conduct the TX checksum? Or is this intended behavior? You are quite right that this is because XDP bypasses the stack entirely. There is currently no support for interacting with hardware offload features from XDP, so if you're using XDP_TX you need to fix up the checksum in your eBPF program. There's a bpf_csum_diff() helper which may be helpful in this regard. Getting better support for hardware offloads in concert with XDP is something we'd like to get to eventually, but we're not there yet, unfortunately. -Toke