Hi Alex,
Thank you for being so responsive, and I really appreciate it.
On Mon, 2026-11-23 at 14:42 -0800, Alexander Duyck wrote:
> In the mlx5e case they were disabling the feature via the private
> control flag if it was enabled. In the case of your change you are
> just disabling it without exposing that it is disabled.
mlx5 does not change the private flag when a program is attached. It
sets MLX5E_RQ_STATE_NO_CSUM_COMPLETE on the RQ, and
rx_no_csum_complete keeps its value ("off" by default).
> is it falling through into the CHECKSUM_UNNECESSARY path with all
> the indications that a tunnel was still there even though you
> stripped the header?
Yes, the same path as E810, and mlx5 does the same with a program
attached.
> The issue is that the driver is making a number of assumptions about
> what is there based on what the hardware parsed for headers and such.
This was discussed in the thread of [1], including the decap problem
with csum_level. The summary there was that reporting
CHECKSUM_COMPLETE on the XDP-to-skb path is unsafe, and that the
safest option for now is CHECKSUM_UNNECESSARY only [3]. The decap
case with CHECKSUM_UNNECESSARY was left open as a known problem.
I am also working on the long-term design in [2], though there is
still a long way to go. Please take a look if you are interested.
For this patch, my aim is simple: stop the "hw csum failure", and
make E830 with XDP report RX checksums the same way as E810, i.e. as
before GCS was added.
[3] https://lore.kernel.org/all/[email protected]/
Thanks,
Tianyi