All of lore.kernel.org
 help / color / mirror / Atom feed
* x710 Checksum Offloading with XDP
@ 2019-07-11 21:43 Cody Haas
  2019-07-12 10:53 ` Toke Høiland-Jørgensen
  0 siblings, 1 reply; 2+ messages in thread
From: Cody Haas @ 2019-07-11 21:43 UTC (permalink / raw)
  To: xdp-newbies

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?

Thanks,
Cody

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: x710 Checksum Offloading with XDP
  2019-07-11 21:43 x710 Checksum Offloading with XDP Cody Haas
@ 2019-07-12 10:53 ` Toke Høiland-Jørgensen
  0 siblings, 0 replies; 2+ messages in thread
From: Toke Høiland-Jørgensen @ 2019-07-12 10:53 UTC (permalink / raw)
  To: Cody Haas, xdp-newbies

Cody Haas <chaas@riotgames.com> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-07-12 10:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-11 21:43 x710 Checksum Offloading with XDP Cody Haas
2019-07-12 10:53 ` Toke Høiland-Jørgensen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.