From: "Toke Høiland-Jørgensen" <toke@redhat.com>
To: Cody Haas <chaas@riotgames.com>, xdp-newbies@vger.kernel.org
Subject: Re: x710 Checksum Offloading with XDP
Date: Fri, 12 Jul 2019 12:53:18 +0200 [thread overview]
Message-ID: <87ims7v80x.fsf@toke.dk> (raw)
In-Reply-To: <CAH7f-UJUTUT0YKYVMCjNaQzwN3=sFh62Bx7sBO85XyjuNyy4Fg@mail.gmail.com>
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
prev parent reply other threads:[~2019-07-12 10:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-11 21:43 x710 Checksum Offloading with XDP Cody Haas
2019-07-12 10:53 ` Toke Høiland-Jørgensen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ims7v80x.fsf@toke.dk \
--to=toke@redhat.com \
--cc=chaas@riotgames.com \
--cc=xdp-newbies@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.