Netdev List
 help / color / mirror / Atom feed
From: Tianyi Gao <tianyi@cloudflare.com>
To: netdev-bot+sashiko@kernel.org
Cc: netdev@vger.kernel.org, intel-wired-lan@lists.osuosl.org,
	anthony.l.nguyen@intel.com, przemyslaw.kitszel@intel.com,
	andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org,
	kuba@kernel.org, pabeni@redhat.com, horms@kernel.org,
	ast@kernel.org, daniel@iogearbox.net, hawk@kernel.org,
	john.fastabend@gmail.com, sdf@fomichev.me,
	paul.greenwalt@intel.com, alice.michael@intel.com,
	eric.joyner@intel.com, jbrandeb@kernel.org, lorenzo@kernel.org,
	alexander.duyck@gmail.com, maciej.fijalkowski@intel.com,
	bpf@vger.kernel.org, kernel-team@cloudflare.com,
	tianyi.gao@linux.dev
Subject: Re: [PATCH net] ice: do not report CHECKSUM_COMPLETE when an XDP program is attached
Date: Wed, 25 Nov 2026 09:00:01 +0000	[thread overview]
Message-ID: <20261125090001.60782-1-tianyi@cloudflare.com> (raw)
In-Reply-To: <179557068810.3135.17964087549504688357@kernel.org>

> [Severity: Medium]
[...]
> Would CHECKSUM_NONE be a safer fallback here until the pending XDP
> checksum hint series land? If not, could the commit message describe
> this trade-off?

Yes, the inner checksum is then not checked, as on E810, on mlx5 with
XDP, and on E830 before v6.15. CHECKSUM_NONE would make the stack check
every packet in software, also the ones XDP did not change.

The discussion in [3] concluded that CHECKSUM_UNNECESSARY only is the
safe option with XDP for now, and that the decap case is a known
problem. v2 will note this in the commit message.

> [Severity: Low]
> Should this use the per-poll snapshot instead of reading ring->xdp_prog
> a second time? The program that actually ran comes from:
[...]

v2 will drop the per-packet read and set ICE_RX_FLAGS_RING_GCS in
ice_vsi_cfg_rxq() instead, as Alexander suggested [4].

[3] https://lore.kernel.org/all/20260721183256.6f49d6e1@kernel.org/
[4] https://lore.kernel.org/all/CAKgT0UeNyyXKARjKR4nVVxNe3UB16WuXqxSz0cf4ZvCdb9A4_Q@mail.gmail.com/

Thanks,
Tianyi

pw-bot: cr

      reply	other threads:[~2026-11-25  9:00 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-21  1:24 [PATCH net] ice: do not report CHECKSUM_COMPLETE when an XDP program is attached Tianyi Gao
2026-11-23 18:29 ` Maciej Fijalkowski
2026-11-23 20:50   ` Tianyi Gao
2026-11-23 18:49 ` Alexander H Duyck
2026-11-23 20:35   ` Tianyi Gao
2026-11-23 21:09     ` Alexander Duyck
2026-11-23 22:01       ` Tianyi Gao
2026-11-23 22:42         ` Alexander Duyck
2026-11-23 23:26           ` Tianyi Gao
2026-11-24  0:17             ` Alexander Duyck
2026-11-25  9:07               ` Tianyi Gao
2026-11-25  1:38 ` netdev-bot+sashiko
2026-11-25  9:00   ` Tianyi Gao [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=20261125090001.60782-1-tianyi@cloudflare.com \
    --to=tianyi@cloudflare.com \
    --cc=alexander.duyck@gmail.com \
    --cc=alice.michael@intel.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=anthony.l.nguyen@intel.com \
    --cc=ast@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=eric.joyner@intel.com \
    --cc=hawk@kernel.org \
    --cc=horms@kernel.org \
    --cc=intel-wired-lan@lists.osuosl.org \
    --cc=jbrandeb@kernel.org \
    --cc=john.fastabend@gmail.com \
    --cc=kernel-team@cloudflare.com \
    --cc=kuba@kernel.org \
    --cc=lorenzo@kernel.org \
    --cc=maciej.fijalkowski@intel.com \
    --cc=netdev-bot+sashiko@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=paul.greenwalt@intel.com \
    --cc=przemyslaw.kitszel@intel.com \
    --cc=sdf@fomichev.me \
    --cc=tianyi.gao@linux.dev \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox